{"type": "func", "start": 6443203504, "end": 6443203647, "name": "cocos2d::CCTargetedTouchHandler::initWithDelegate", "pseudocode": "// \n// cocos2d::CCTargetedTouchHandler::initWithDelegate from 0x1800b7bb0 to 0x1800b7c3f (143 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTargetedTouchHandler::handlerWithDelegate @ 0x1800b7a28\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c2acc\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// Hidden C++ exception states: #wind=1\nchar __fastcall cocos2d::CCTargetedTouchHandler::initWithDelegate(\n        cocos2d::CCTargetedTouchHandler *this,\n        struct cocos2d::CCTouchDelegate *a2,\n        int a3,\n        char a4)\n{\n  cocos2d::CCSet *v7; // rsi\n  cocos2d::CCObject *v8; // rax\n  cocos2d::CCSet *v9; // rax\n\n  *((_QWORD *)this + 7) = a2;\n  v7 = nullptr;\n  v8 = (cocos2d::CCObject *)_RTDynamicCast(\n                              a2,\n                              0,\n                              &cocos2d::CCTouchDelegate `RTTI Type Descriptor',\n                              &cocos2d::CCObject `RTTI Type Descriptor',\n                              0);\n  cocos2d::CCObject::retain(v8);\n  *((_DWORD *)this + 16) = a3;\n  *((_DWORD *)this + 17) = 0;\n  v9 = (cocos2d::CCSet *)sub_1800E4AC0(0x40u);\n  if ( v9 )\n    v7 = cocos2d::CCSet::CCSet(v9);\n  *((_QWORD *)this + 10) = v7;\n  *((_BYTE *)this + 72) = a4;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCTargetedTouchHandler::initWithDelegate from 0x1800b7bb0 to 0x1800b7c3f (143 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTargetedTouchHandler::handlerWithDelegate @ 0x1800b7a28\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c2acc\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], rbx                                               ; +0x0, 0x1800b7bb0\nmov     [rsp+arg_10], rbp                                              ; +0x5, 0x1800b7bb5\nmov     [rsp+arg_18], rsi                                              ; +0xa, 0x1800b7bba\npush    rdi                                                            ; +0xf, 0x1800b7bbf\nsub     rsp, 30h                                                       ; +0x10, 0x1800b7bc0\nmovzx   ebp, r9b                                                       ; +0x14, 0x1800b7bc4\nmov     ebx, r8d                                                       ; +0x18, 0x1800b7bc8\nmov     rax, rdx                                                       ; +0x1b, 0x1800b7bcb\nmov     rdi, rcx                                                       ; +0x1e, 0x1800b7bce\nmov     [rcx+38h], rdx                                                 ; +0x21, 0x1800b7bd1\nxor     esi, esi                                                       ; +0x25, 0x1800b7bd5\nmov     [rsp+38h+var_18], esi                                          ; +0x27, 0x1800b7bd7\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x2b, 0x1800b7bdb\nlea     r8, ??_R0?AVCCTouchDelegate@cocos2d@@@8; cocos2d::CCTouchDelegate `RTTI Type Descriptor' ; +0x32, 0x1800b7be2\nxor     edx, edx                                                       ; +0x39, 0x1800b7be9\nmov     rcx, rax                                                       ; +0x3b, 0x1800b7beb\ncall    __RTDynamicCast                                                ; +0x3e, 0x1800b7bee\nmov     rcx, rax; this                                                 ; +0x43, 0x1800b7bf3\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x46, 0x1800b7bf6\nmov     [rdi+40h], ebx                                                 ; +0x4b, 0x1800b7bfb\nmov     [rdi+44h], esi                                                 ; +0x4e, 0x1800b7bfe\nmov     ecx, 40h ; '@'; Size                                           ; +0x51, 0x1800b7c01\ncall    sub_1800E4AC0                                                  ; +0x56, 0x1800b7c06\nmov     [rsp+38h+arg_0], rax                                           ; +0x5b, 0x1800b7c0b\ntest    rax, rax                                                       ; +0x60, 0x1800b7c10\njz      short loc_1800B7C20                                            ; +0x63, 0x1800b7c13\nmov     rcx, rax; this                                                 ; +0x65, 0x1800b7c15\ncall    ??0CCSet@cocos2d@@QEAA@XZ; cocos2d::CCSet::CCSet(void)         ; +0x68, 0x1800b7c18\nmov     rsi, rax                                                       ; +0x6d, 0x1800b7c1d\nmov     [rdi+50h], rsi                                                 ; +0x70, 0x1800b7c20\nmov     [rdi+48h], bpl                                                 ; +0x74, 0x1800b7c24\nmov     al, 1                                                          ; +0x78, 0x1800b7c28\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x7a, 0x1800b7c2a\nmov     rbp, [rsp+38h+arg_10]                                          ; +0x7f, 0x1800b7c2f\nmov     rsi, [rsp+38h+arg_18]                                          ; +0x84, 0x1800b7c34\nadd     rsp, 30h                                                       ; +0x89, 0x1800b7c39\npop     rdi                                                            ; +0x8d, 0x1800b7c3d\nretn                                                                   ; +0x8e, 0x1800b7c3e", "xrefs": ["cocos2d::CCTargetedTouchHandler::handlerWithDelegate @ 0x1800b7a28", "<???> @ 0x18014cf68", "<???> @ 0x1801c2acc"], "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"}