{"type": "func", "start": 6443206496, "end": 6443206598, "name": "cocos2d::CCIMEDelegate::detachWithIME", "pseudocode": "// \n// cocos2d::CCIMEDelegate::detachWithIME from 0x1800b8760 to 0x1800b87c6 (102 bytes)\n// \n// 4 xrefs:\n// > cocos2d::CCTextFieldTTF::detachWithIME @ 0x1800b9206\n// > <???> @ 0x18010cdf0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2c58\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 11:22:22 +0000\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 ( !*(_QWORD *)v2\n    || !this\n    || *(cocos2d::CCIMEDelegate **)(*(_QWORD *)v2 + 16LL) != this\n    || !(*(unsigned __int8 (__fastcall **)(cocos2d::CCIMEDelegate *))(*(_QWORD *)this + 40LL))(this) )\n  {\n    return 0;\n  }\n  *(_QWORD *)(*(_QWORD *)v2 + 16LL) = 0;\n  (*(void (__fastcall **)(cocos2d::CCIMEDelegate *))(*(_QWORD *)this + 48LL))(this);\n  return 1;\n}", "assembly": "; \n; cocos2d::CCIMEDelegate::detachWithIME from 0x1800b8760 to 0x1800b87c6 (102 bytes)\n; \n; 4 xrefs:\n; > cocos2d::CCTextFieldTTF::detachWithIME @ 0x1800b9206\n; > <???> @ 0x18010cdf0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2c58\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 11:22:22 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b8760\npush    rdi                                                            ; +0x5, 0x1800b8765\nsub     rsp, 20h                                                       ; +0x6, 0x1800b8766\nmov     rbx, rcx                                                       ; +0xa, 0x1800b876a\ncall    ?sharedDispatcher@CCIMEDispatcher@cocos2d@@SAPEAV12@XZ; cocos2d::CCIMEDispatcher::sharedDispatcher(void) ; +0xd, 0x1800b876d\nmov     rdi, rax                                                       ; +0x12, 0x1800b8772\nmov     rcx, [rax]                                                     ; +0x15, 0x1800b8775\ntest    rcx, rcx                                                       ; +0x18, 0x1800b8778\njz      short loc_1800B87B9                                            ; +0x1b, 0x1800b877b\ntest    rbx, rbx                                                       ; +0x1d, 0x1800b877d\njz      short loc_1800B87B9                                            ; +0x20, 0x1800b8780\ncmp     [rcx+10h], rbx                                                 ; +0x22, 0x1800b8782\njnz     short loc_1800B87B9                                            ; +0x26, 0x1800b8786\nmov     rcx, [rbx]                                                     ; +0x28, 0x1800b8788\nmov     rdx, [rcx+28h]                                                 ; +0x2b, 0x1800b878b\nmov     rcx, rbx                                                       ; +0x2f, 0x1800b878f\ncall    rdx                                                            ; +0x32, 0x1800b8792\ntest    al, al                                                         ; +0x34, 0x1800b8794\njz      short loc_1800B87B9                                            ; +0x36, 0x1800b8796\nmov     rax, [rdi]                                                     ; +0x38, 0x1800b8798\nmov     rcx, rbx                                                       ; +0x3b, 0x1800b879b\nmov     qword ptr [rax+10h], 0                                         ; +0x3e, 0x1800b879e\nmov     rax, [rbx]                                                     ; +0x46, 0x1800b87a6\ncall    qword ptr [rax+30h]                                            ; +0x49, 0x1800b87a9\nmov     al, 1                                                          ; +0x4c, 0x1800b87ac\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x4e, 0x1800b87ae\nadd     rsp, 20h                                                       ; +0x53, 0x1800b87b3\npop     rdi                                                            ; +0x57, 0x1800b87b7\nretn                                                                   ; +0x58, 0x1800b87b8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x59, 0x1800b87b9\nxor     al, al                                                         ; +0x5e, 0x1800b87be\nadd     rsp, 20h                                                       ; +0x60, 0x1800b87c0\npop     rdi                                                            ; +0x64, 0x1800b87c4\nretn                                                                   ; +0x65, 0x1800b87c5", "xrefs": ["cocos2d::CCTextFieldTTF::detachWithIME @ 0x1800b9206", "<???> @ 0x18010cdf0", "<???> @ 0x18014cf68", "<???> @ 0x1801c2c58"], "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"}