{"type": "func", "start": 6443206160, "end": 6443206362, "name": "cocos2d::CCIMEDispatcher::attachDelegateWithIME", "pseudocode": "// \n// cocos2d::CCIMEDispatcher::attachDelegateWithIME from 0x1800b8610 to 0x1800b86da (202 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCIMEDelegate::attachWithIME @ 0x1800b86f9\n// > <???> @ 0x18014a5ec\n// > <???> @ 0x18014a5fc\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2c1c\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\n__int64 __fastcall cocos2d::CCIMEDispatcher::attachDelegateWithIME(\n        cocos2d::CCIMEDispatcher *this,\n        struct cocos2d::CCIMEDelegate *a2)\n{\n  unsigned __int8 v3; // si\n  __int64 ***v4; // rcx\n  __int64 **v6; // rax\n  __int64 **v7; // rbx\n  __int64 **v8; // rcx\n  __int64 v9; // rcx\n\n  v3 = 0;\n  v4 = *(__int64 ****)this;\n  if ( v4 )\n  {\n    if ( a2 )\n    {\n      v6 = *v4;\n      v7 = (__int64 **)**v4;\n      if ( *v6 != (__int64 *)v6 )\n      {\n        while ( a2 != (struct cocos2d::CCIMEDelegate *)v7[2] )\n        {\n          v7 = (__int64 **)*v7;\n          if ( v7 == v6 )\n            return v3;\n        }\n        if ( v6 != v7 )\n        {\n          v8 = v4[2];\n          if ( v8 )\n          {\n            if ( ((unsigned __int8 (__fastcall *)(__int64 **))(*v8)[5])(v8)\n              && (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCIMEDelegate *))(*(_QWORD *)a2 + 24LL))(a2) )\n            {\n              v9 = *(_QWORD *)(*(_QWORD *)this + 16LL);\n              *(_QWORD *)(*(_QWORD *)this + 16LL) = 0;\n              (*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 48LL))(v9);\nLABEL_13:\n              *(_QWORD *)(*(_QWORD *)this + 16LL) = v7[2];\n              (*(void (__fastcall **)(struct cocos2d::CCIMEDelegate *))(*(_QWORD *)a2 + 32LL))(a2);\n              return 1;\n            }\n          }\n          else if ( (*(unsigned __int8 (__fastcall **)(struct cocos2d::CCIMEDelegate *))(*(_QWORD *)a2 + 24LL))(a2) )\n          {\n            goto LABEL_13;\n          }\n        }\n      }\n    }\n  }\n  return v3;\n}", "assembly": "; \n; cocos2d::CCIMEDispatcher::attachDelegateWithIME from 0x1800b8610 to 0x1800b86da (202 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCIMEDelegate::attachWithIME @ 0x1800b86f9\n; > <???> @ 0x18014a5ec\n; > <???> @ 0x18014a5fc\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2c1c\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_8], rsi                                               ; +0x0, 0x1800b8610\nmov     [rsp+arg_10], rdi                                              ; +0x5, 0x1800b8615\npush    r14                                                            ; +0xa, 0x1800b861a\nsub     rsp, 20h                                                       ; +0xc, 0x1800b861c\nmov     r14, rcx                                                       ; +0x10, 0x1800b8620\nxor     sil, sil                                                       ; +0x13, 0x1800b8623\nmov     rcx, [rcx]                                                     ; +0x16, 0x1800b8626\nmov     rdi, rdx                                                       ; +0x19, 0x1800b8629\ntest    rcx, rcx                                                       ; +0x1c, 0x1800b862c\njz      loc_1800B86C5                                                  ; +0x1f, 0x1800b862f\ntest    rdx, rdx                                                       ; +0x25, 0x1800b8635\njz      loc_1800B86C5                                                  ; +0x28, 0x1800b8638\nmov     rax, [rcx]                                                     ; +0x2e, 0x1800b863e\nmov     [rsp+28h+arg_0], rbx                                           ; +0x31, 0x1800b8641\nmov     rbx, [rax]                                                     ; +0x36, 0x1800b8646\ncmp     rbx, rax                                                       ; +0x39, 0x1800b8649\njz      short loc_1800B86C0                                            ; +0x3c, 0x1800b864c\nxchg    ax, ax                                                         ; +0x3e, 0x1800b864e\ncmp     rdi, [rbx+10h]                                                 ; +0x40, 0x1800b8650\njz      short loc_1800B8660                                            ; +0x44, 0x1800b8654\nmov     rbx, [rbx]                                                     ; +0x46, 0x1800b8656\ncmp     rbx, rax                                                       ; +0x49, 0x1800b8659\njnz     short loc_1800B8650                                            ; +0x4c, 0x1800b865c\njmp     short loc_1800B86C0                                            ; +0x4e, 0x1800b865e\ncmp     rax, rbx                                                       ; +0x50, 0x1800b8660\njz      short loc_1800B86C0                                            ; +0x53, 0x1800b8663\nmov     rcx, [rcx+10h]                                                 ; +0x55, 0x1800b8665\ntest    rcx, rcx                                                       ; +0x59, 0x1800b8669\njz      short loc_1800B869C                                            ; +0x5c, 0x1800b866c\nmov     rax, [rcx]                                                     ; +0x5e, 0x1800b866e\ncall    qword ptr [rax+28h]                                            ; +0x61, 0x1800b8671\ntest    al, al                                                         ; +0x64, 0x1800b8674\njz      short loc_1800B86C0                                            ; +0x66, 0x1800b8676\nmov     rax, [rdi]                                                     ; +0x68, 0x1800b8678\nmov     rcx, rdi                                                       ; +0x6b, 0x1800b867b\ncall    qword ptr [rax+18h]                                            ; +0x6e, 0x1800b867e\ntest    al, al                                                         ; +0x71, 0x1800b8681\njz      short loc_1800B86C0                                            ; +0x73, 0x1800b8683\nmov     rax, [r14]                                                     ; +0x75, 0x1800b8685\nmov     rcx, [rax+10h]                                                 ; +0x78, 0x1800b8688\nmov     qword ptr [rax+10h], 0                                         ; +0x7c, 0x1800b868c\nmov     rax, [rcx]                                                     ; +0x84, 0x1800b8694\ncall    qword ptr [rax+30h]                                            ; +0x87, 0x1800b8697\njmp     short loc_1800B86A9                                            ; +0x8a, 0x1800b869a\nmov     rax, [rdx]                                                     ; +0x8c, 0x1800b869c\nmov     rcx, rdi                                                       ; +0x8f, 0x1800b869f\ncall    qword ptr [rax+18h]                                            ; +0x92, 0x1800b86a2\ntest    al, al                                                         ; +0x95, 0x1800b86a5\njz      short loc_1800B86C0                                            ; +0x97, 0x1800b86a7\nmov     rcx, [r14]                                                     ; +0x99, 0x1800b86a9\nmov     rax, [rbx+10h]                                                 ; +0x9c, 0x1800b86ac\nmov     [rcx+10h], rax                                                 ; +0xa0, 0x1800b86b0\nmov     rcx, rdi                                                       ; +0xa4, 0x1800b86b4\nmov     rax, [rdi]                                                     ; +0xa7, 0x1800b86b7\ncall    qword ptr [rax+20h]                                            ; +0xaa, 0x1800b86ba\nmov     sil, 1                                                         ; +0xad, 0x1800b86bd\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xb0, 0x1800b86c0\nmov     rdi, [rsp+28h+arg_10]                                          ; +0xb5, 0x1800b86c5\nmovzx   eax, sil                                                       ; +0xba, 0x1800b86ca\nmov     rsi, [rsp+28h+arg_8]                                           ; +0xbe, 0x1800b86ce\nadd     rsp, 20h                                                       ; +0xc3, 0x1800b86d3\npop     r14                                                            ; +0xc7, 0x1800b86d7\nretn                                                                   ; +0xc9, 0x1800b86d9", "xrefs": ["cocos2d::CCIMEDelegate::attachWithIME @ 0x1800b86f9", "<???> @ 0x18014a5ec", "<???> @ 0x18014a5fc", "<???> @ 0x18014cf68", "<???> @ 0x1801c2c1c"], "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"}