{"type": "func", "start": 6442469168, "end": 6442469271, "name": "cocos2d::extension::CCControl::removeHandleOfControlEvent", "pseudocode": "// \n// cocos2d::extension::CCControl::removeHandleOfControlEvent from 0x180004730 to 0x180004797 (103 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b420\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:35 +0000\n// \n\nvoid __fastcall cocos2d::extension::CCControl::removeHandleOfControlEvent(cocos2d::extension::CCControl *this, int a2)\n{\n  char *v2; // r9\n  __int64 *v4; // rcx\n  __int64 *v5; // rdx\n  __int64 *i; // rax\n  void *v7; // rax\n\n  v2 = (char *)this + 456;\n  v4 = *((__int64 **)this + 57);\n  v5 = v4;\n  for ( i = (__int64 *)v4[1]; !*((_BYTE *)i + 25); i = (__int64 *)*i )\n  {\n    if ( *((_DWORD *)i + 7) >= a2 )\n      v5 = i;\n    else\n      i += 2;\n  }\n  if ( !*((_BYTE *)v5 + 25) && a2 >= *((_DWORD *)v5 + 7) && v4 != v5 )\n  {\n    v7 = (void *)sub_180004A50(v2);\n    j_j_free(v7);\n  }\n}", "assembly": "; \n; cocos2d::extension::CCControl::removeHandleOfControlEvent from 0x180004730 to 0x180004797 (103 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b420\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:35 +0000\n; \nsub     rsp, 28h                                                       ; +0x0, 0x180004730\nlea     r9, [rcx+1C8h]                                                 ; +0x4, 0x180004734\nmov     r8d, edx                                                       ; +0xb, 0x18000473b\nmov     rcx, [r9]                                                      ; +0xe, 0x18000473e\nmov     rdx, rcx                                                       ; +0x11, 0x180004741\nmov     rax, [rcx+8]                                                   ; +0x14, 0x180004744\ncmp     byte ptr [rax+19h], 0                                          ; +0x18, 0x180004748\njnz     short loc_180004768                                            ; +0x1c, 0x18000474c\nxchg    ax, ax                                                         ; +0x1e, 0x18000474e\ncmp     [rax+1Ch], r8d                                                 ; +0x20, 0x180004750\njge     short loc_18000475C                                            ; +0x24, 0x180004754\nadd     rax, 10h                                                       ; +0x26, 0x180004756\njmp     short loc_18000475F                                            ; +0x2a, 0x18000475a\nmov     rdx, rax                                                       ; +0x2c, 0x18000475c\nmov     rax, [rax]                                                     ; +0x2f, 0x18000475f\ncmp     byte ptr [rax+19h], 0                                          ; +0x32, 0x180004762\njz      short loc_180004750                                            ; +0x36, 0x180004766\ncmp     byte ptr [rdx+19h], 0                                          ; +0x38, 0x180004768\njnz     short loc_180004792                                            ; +0x3c, 0x18000476c\ncmp     r8d, [rdx+1Ch]                                                 ; +0x3e, 0x18000476e\njl      short loc_180004792                                            ; +0x42, 0x180004772\ncmp     rcx, rdx                                                       ; +0x44, 0x180004774\njz      short loc_180004792                                            ; +0x47, 0x180004777\nmov     rcx, r9                                                        ; +0x49, 0x180004779\ncall    sub_180004A50                                                  ; +0x4c, 0x18000477c\nmov     edx, 28h ; '('                                                 ; +0x51, 0x180004781\nmov     rcx, rax; Block                                                ; +0x56, 0x180004786\nadd     rsp, 28h                                                       ; +0x59, 0x180004789\njmp     j_j_free                                                       ; +0x5d, 0x18000478d\nadd     rsp, 28h                                                       ; +0x62, 0x180004792\nretn                                                                   ; +0x66, 0x180004796", "xrefs": ["<???> @ 0x180032408", "<???> @ 0x18004b420"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}