{"type": "func", "start": 6443189888, "end": 6443190033, "name": "cocos2d::CCIMEDelegate::~CCIMEDelegate", "pseudocode": "// \n// cocos2d::CCIMEDelegate::~CCIMEDelegate from 0x1800b4680 to 0x1800b4711 (145 bytes)\n// \n// 6 xrefs:\n// > sub_1800B47A0 @ 0x1800b47fe\n// > cocos2d::CCTextFieldTTF::~CCTextFieldTTF @ 0x1800b5070\n// > sub_1800E37C0 @ 0x1800e37ce\n// > sub_1800B47A0 @ 0x1800b47bc\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b88e0\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\nvoid __fastcall cocos2d::CCIMEDelegate::~CCIMEDelegate(cocos2d::CCIMEDelegate *this)\n{\n  struct cocos2d::CCIMEDispatcher *v2; // r9\n  cocos2d::CCIMEDispatcher::Impl *m_pImpl; // r8\n  void **v4; // rdx\n  cocos2d::CCIMEDelegate *v5; // rcx\n  cocos2d::CCIMEDelegate_vtbl *v6; // rax\n  cocos2d::CCIMEDispatcher::Impl *v7; // r8\n\n  this->__vftable = (cocos2d::CCIMEDelegate_vtbl *)&cocos2d::CCIMEDelegate::`vftable';\n  v2 = cocos2d::CCIMEDispatcher::sharedDispatcher();\n  m_pImpl = v2->m_pImpl;\n  if ( v2->m_pImpl )\n  {\n    v4 = *(void ***)m_pImpl;\n    v5 = **(cocos2d::CCIMEDelegate ***)m_pImpl;\n    if ( v5 != *(cocos2d::CCIMEDelegate **)m_pImpl )\n    {\n      while ( this != (cocos2d::CCIMEDelegate *)v5[2].__vftable )\n      {\n        v5 = (cocos2d::CCIMEDelegate *)v5->__vftable;\n        if ( v5 == (cocos2d::CCIMEDelegate *)v4 )\n          return;\n      }\n      if ( v4 != (void **)v5 )\n      {\n        v6 = *((cocos2d::CCIMEDelegate_vtbl **)m_pImpl + 2);\n        if ( v6 )\n        {\n          if ( v5[2].__vftable == v6 )\n            *((_QWORD *)m_pImpl + 2) = 0;\n        }\n        v7 = v2->m_pImpl;\n        v5[1].~CCIMEDelegate = (void (__stdcall *)(cocos2d::CCIMEDelegate *__hidden))v5->__vftable;\n        v5->attachWithIME = (bool (__stdcall *)(cocos2d::CCIMEDelegate *__hidden))v5[1].__vftable;\n        --*((_QWORD *)v7 + 1);\n        j_j_free_0(v5);\n      }\n    }\n  }\n}", "assembly": "; \n; cocos2d::CCIMEDelegate::~CCIMEDelegate from 0x1800b4680 to 0x1800b4711 (145 bytes)\n; \n; 6 xrefs:\n; > sub_1800B47A0 @ 0x1800b47fe\n; > cocos2d::CCTextFieldTTF::~CCTextFieldTTF @ 0x1800b5070\n; > sub_1800E37C0 @ 0x1800e37ce\n; > sub_1800B47A0 @ 0x1800b47bc\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b88e0\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\npush    rbx                                                            ; +0x0, 0x1800b4680\nsub     rsp, 20h                                                       ; +0x2, 0x1800b4682\nmov     rbx, rcx                                                       ; +0x6, 0x1800b4686\nlea     rax, ??_7CCIMEDelegate@cocos2d@@6B@; const cocos2d::CCIMEDelegate::`vftable' ; +0x9, 0x1800b4689\nmov     [rcx], rax                                                     ; +0x10, 0x1800b4690\ncall    ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0x13, 0x1800b4693\nmov     r9, rax                                                        ; +0x18, 0x1800b4698\nmov     r8, [rax]                                                      ; +0x1b, 0x1800b469b\ntest    r8, r8                                                         ; +0x1e, 0x1800b469e\njz      short loc_1800B470B                                            ; +0x21, 0x1800b46a1\nmov     rdx, [r8]                                                      ; +0x23, 0x1800b46a3\nmov     rcx, [rdx]; Block                                              ; +0x26, 0x1800b46a6\ncmp     rcx, rdx                                                       ; +0x29, 0x1800b46a9\njz      short loc_1800B470B                                            ; +0x2c, 0x1800b46ac\nxchg    ax, ax                                                         ; +0x2e, 0x1800b46ae\ncmp     rbx, [rcx+10h]                                                 ; +0x30, 0x1800b46b0\njz      short loc_1800B46C4                                            ; +0x34, 0x1800b46b4\nmov     rcx, [rcx]                                                     ; +0x36, 0x1800b46b6\ncmp     rcx, rdx                                                       ; +0x39, 0x1800b46b9\njnz     short loc_1800B46B0                                            ; +0x3c, 0x1800b46bc\nadd     rsp, 20h                                                       ; +0x3e, 0x1800b46be\npop     rbx                                                            ; +0x42, 0x1800b46c2\nretn                                                                   ; +0x43, 0x1800b46c3\ncmp     rdx, rcx                                                       ; +0x44, 0x1800b46c4\njz      short loc_1800B470B                                            ; +0x47, 0x1800b46c7\nmov     rax, [r8+10h]                                                  ; +0x49, 0x1800b46c9\ntest    rax, rax                                                       ; +0x4d, 0x1800b46cd\njz      short loc_1800B46E0                                            ; +0x50, 0x1800b46d0\ncmp     [rcx+10h], rax                                                 ; +0x52, 0x1800b46d2\njnz     short loc_1800B46E0                                            ; +0x56, 0x1800b46d6\nmov     qword ptr [r8+10h], 0                                          ; +0x58, 0x1800b46d8\nmov     r8, [r9]                                                       ; +0x60, 0x1800b46e0\nmov     rdx, [rcx+8]                                                   ; +0x63, 0x1800b46e3\nmov     rax, [rcx]                                                     ; +0x67, 0x1800b46e7\nmov     [rdx], rax                                                     ; +0x6a, 0x1800b46ea\nmov     rdx, [rcx]                                                     ; +0x6d, 0x1800b46ed\nmov     rax, [rcx+8]                                                   ; +0x70, 0x1800b46f0\nmov     [rdx+8], rax                                                   ; +0x74, 0x1800b46f4\ndec     qword ptr [r8+8]                                               ; +0x78, 0x1800b46f8\nmov     edx, 18h                                                       ; +0x7c, 0x1800b46fc\nadd     rsp, 20h                                                       ; +0x81, 0x1800b4701\npop     rbx                                                            ; +0x85, 0x1800b4705\njmp     j_j_free_0                                                     ; +0x86, 0x1800b4706\nadd     rsp, 20h                                                       ; +0x8b, 0x1800b470b\npop     rbx                                                            ; +0x8f, 0x1800b470f\nretn                                                                   ; +0x90, 0x1800b4710", "xrefs": ["sub_1800B47A0 @ 0x1800b47fe", "cocos2d::CCTextFieldTTF::~CCTextFieldTTF @ 0x1800b5070", "sub_1800E37C0 @ 0x1800e37ce", "sub_1800B47A0 @ 0x1800b47bc", "<???> @ 0x1801438a8", "<???> @ 0x1801b88e0"], "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"}