{"type": "func", "start": 6443190832, "end": 6443190931, "name": "cocos2d::CCIMEDelegate::detachWithIME", "pseudocode": "// \n// cocos2d::CCIMEDelegate::detachWithIME from 0x1800b4a30 to 0x1800b4a93 (99 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTextFieldTTF::detachWithIME @ 0x1800b5546\n// > <???> @ 0x180106710\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b8964\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::CCIMEDelegate::detachWithIME(cocos2d::CCIMEDelegate *this)\n{\n  struct cocos2d::CCIMEDispatcher *v2; // rdi\n\n  v2 = cocos2d::CCIMEDispatcher::sharedDispatcher();\n  if ( !v2->m_pImpl\n    || !this\n    || *((cocos2d::CCIMEDelegate **)v2->m_pImpl + 2) != this\n    || !((unsigned __int8 (__fastcall *)(cocos2d::CCIMEDelegate *))this->canDetachWithIME)(this) )\n  {\n    return 0;\n  }\n  *((_QWORD *)v2->m_pImpl + 2) = 0;\n  ((void (__fastcall *)(cocos2d::CCIMEDelegate *))this->didDetachWithIME)(this);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCIMEDelegate::detachWithIME from 0x1800b4a30 to 0x1800b4a93 (99 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTextFieldTTF::detachWithIME @ 0x1800b5546\n; > <???> @ 0x180106710\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b8964\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, 0x1800b4a30\npush    rdi                                                            ; +0x5, 0x1800b4a35\nsub     rsp, 20h                                                       ; +0x6, 0x1800b4a36\nmov     rbx, rcx                                                       ; +0xa, 0x1800b4a3a\ncall    ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0xd, 0x1800b4a3d\nmov     rdi, rax                                                       ; +0x12, 0x1800b4a42\nmov     rcx, [rax]                                                     ; +0x15, 0x1800b4a45\ntest    rcx, rcx                                                       ; +0x18, 0x1800b4a48\njz      short loc_1800B4A86                                            ; +0x1b, 0x1800b4a4b\ntest    rbx, rbx                                                       ; +0x1d, 0x1800b4a4d\njz      short loc_1800B4A86                                            ; +0x20, 0x1800b4a50\ncmp     [rcx+10h], rbx                                                 ; +0x22, 0x1800b4a52\njnz     short loc_1800B4A86                                            ; +0x26, 0x1800b4a56\nmov     rdx, [rbx]                                                     ; +0x28, 0x1800b4a58\nmov     rcx, rbx                                                       ; +0x2b, 0x1800b4a5b\ncall    qword ptr [rdx+28h]                                            ; +0x2e, 0x1800b4a5e\ntest    al, al                                                         ; +0x31, 0x1800b4a61\njz      short loc_1800B4A86                                            ; +0x33, 0x1800b4a63\nmov     rax, [rdi]                                                     ; +0x35, 0x1800b4a65\nmov     rcx, rbx                                                       ; +0x38, 0x1800b4a68\nmov     qword ptr [rax+10h], 0                                         ; +0x3b, 0x1800b4a6b\nmov     rax, [rbx]                                                     ; +0x43, 0x1800b4a73\ncall    qword ptr [rax+30h]                                            ; +0x46, 0x1800b4a76\nmov     al, 1                                                          ; +0x49, 0x1800b4a79\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4b, 0x1800b4a7b\nadd     rsp, 20h                                                       ; +0x50, 0x1800b4a80\npop     rdi                                                            ; +0x54, 0x1800b4a84\nretn                                                                   ; +0x55, 0x1800b4a85\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x56, 0x1800b4a86\nxor     al, al                                                         ; +0x5b, 0x1800b4a8b\nadd     rsp, 20h                                                       ; +0x5d, 0x1800b4a8d\npop     rdi                                                            ; +0x61, 0x1800b4a91\nretn                                                                   ; +0x62, 0x1800b4a92", "xrefs": ["cocos2d::CCTextFieldTTF::detachWithIME @ 0x1800b5546", "<???> @ 0x180106710", "<???> @ 0x1801438a8", "<???> @ 0x1801b8964"], "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"}