{"type": "func", "start": 6443190736, "end": 6443190830, "name": "cocos2d::CCIMEDispatcher::detachDelegateWithIME", "pseudocode": "// \n// cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x1800b49d0 to 0x1800b4a2e (94 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8958\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nchar __fastcall cocos2d::CCIMEDispatcher::detachDelegateWithIME(\n        cocos2d::CCIMEDispatcher *this,\n        struct cocos2d::CCIMEDelegate *a2)\n{\n  if ( !this->m_pImpl\n    || !a2\n    || *((struct cocos2d::CCIMEDelegate **)this->m_pImpl + 2) != a2\n    || !((unsigned __int8 (__fastcall *)(struct cocos2d::CCIMEDelegate *))a2->canDetachWithIME)(a2) )\n  {\n    return 0;\n  }\n  *((_QWORD *)this->m_pImpl + 2) = 0;\n  ((void (__fastcall *)(struct cocos2d::CCIMEDelegate *))a2->didDetachWithIME)(a2);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCIMEDispatcher::detachDelegateWithIME from 0x1800b49d0 to 0x1800b4a2e (94 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8958\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b49d0\npush    rdi                                                            ; +0x5, 0x1800b49d5\nsub     rsp, 20h                                                       ; +0x6, 0x1800b49d6\nmov     rax, [rcx]                                                     ; +0xa, 0x1800b49da\nmov     rbx, rdx                                                       ; +0xd, 0x1800b49dd\nmov     rdi, rcx                                                       ; +0x10, 0x1800b49e0\ntest    rax, rax                                                       ; +0x13, 0x1800b49e3\njz      short loc_1800B4A21                                            ; +0x16, 0x1800b49e6\ntest    rdx, rdx                                                       ; +0x18, 0x1800b49e8\njz      short loc_1800B4A21                                            ; +0x1b, 0x1800b49eb\ncmp     [rax+10h], rdx                                                 ; +0x1d, 0x1800b49ed\njnz     short loc_1800B4A21                                            ; +0x21, 0x1800b49f1\nmov     rax, [rdx]                                                     ; +0x23, 0x1800b49f3\nmov     rcx, rdx                                                       ; +0x26, 0x1800b49f6\ncall    qword ptr [rax+28h]                                            ; +0x29, 0x1800b49f9\ntest    al, al                                                         ; +0x2c, 0x1800b49fc\njz      short loc_1800B4A21                                            ; +0x2e, 0x1800b49fe\nmov     rax, [rdi]                                                     ; +0x30, 0x1800b4a00\nmov     rcx, rbx                                                       ; +0x33, 0x1800b4a03\nmov     qword ptr [rax+10h], 0                                         ; +0x36, 0x1800b4a06\nmov     rax, [rbx]                                                     ; +0x3e, 0x1800b4a0e\ncall    qword ptr [rax+30h]                                            ; +0x41, 0x1800b4a11\nmov     al, 1                                                          ; +0x44, 0x1800b4a14\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x46, 0x1800b4a16\nadd     rsp, 20h                                                       ; +0x4b, 0x1800b4a1b\npop     rdi                                                            ; +0x4f, 0x1800b4a1f\nretn                                                                   ; +0x50, 0x1800b4a20\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x51, 0x1800b4a21\nxor     al, al                                                         ; +0x56, 0x1800b4a26\nadd     rsp, 20h                                                       ; +0x58, 0x1800b4a28\npop     rdi                                                            ; +0x5c, 0x1800b4a2c\nretn                                                                   ; +0x5d, 0x1800b4a2d", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b8958"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}