{"type": "func", "start": 6443187312, "end": 6443187482, "name": "cocos2d::CCTargetedTouchHandler::handlerWithDelegate", "pseudocode": "// \n// cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0x1800b3c70 to 0x1800b3d1a (170 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2b8e\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b87b4\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\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCTargetedTouchHandler *__fastcall cocos2d::CCTargetedTouchHandler::handlerWithDelegate(\n        struct cocos2d::CCTouchDelegate *a1,\n        int a2,\n        bool a3)\n{\n  cocos2d::CCTargetedTouchHandler *v6; // rbx\n\n  v6 = (cocos2d::CCTargetedTouchHandler *)operator new(0x58u);\n  if ( v6 )\n  {\n    *(_OWORD *)&v6->__vftable = 0;\n    *(_OWORD *)&v6->m_nTag = 0;\n    *(_OWORD *)&v6->m_uIndexInArray = 0;\n    *(_OWORD *)&v6->m_uOrderOfArrival = 0;\n    *(_OWORD *)&v6->m_nPriority = 0;\n    v6->m_pClaimedTouches = nullptr;\n    cocos2d::CCObject::CCObject(v6);\n    v6->__vftable = (cocos2d::CCTargetedTouchHandler_vtbl *)&cocos2d::CCTargetedTouchHandler::`vftable';\n  }\n  else\n  {\n    v6 = nullptr;\n  }\n  if ( !v6 )\n    return v6;\n  if ( cocos2d::CCTargetedTouchHandler::initWithDelegate(v6, a1, a2, a3) )\n  {\n    cocos2d::CCObject::autorelease(v6);\n    return v6;\n  }\n  cocos2d::CCObject::release(v6);\n  return nullptr;\n}", "assembly": "; \n; cocos2d::CCTargetedTouchHandler::handlerWithDelegate from 0x1800b3c70 to 0x1800b3d1a (170 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2b8e\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b87b4\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, 0x1800b3c70\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x1800b3c75\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x1800b3c7a\npush    rdi                                                            ; +0xf, 0x1800b3c7f\nsub     rsp, 20h                                                       ; +0x10, 0x1800b3c80\nmovzx   edi, r8b                                                       ; +0x14, 0x1800b3c84\nmov     esi, edx                                                       ; +0x18, 0x1800b3c88\nmov     rbp, rcx                                                       ; +0x1a, 0x1800b3c8a\nmov     ecx, 58h ; 'X'; Size                                           ; +0x1d, 0x1800b3c8d\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x22, 0x1800b3c92\nmov     rbx, rax                                                       ; +0x27, 0x1800b3c97\nmov     [rsp+28h+arg_18], rax                                          ; +0x2a, 0x1800b3c9a\ntest    rax, rax                                                       ; +0x2f, 0x1800b3c9f\njz      short loc_1800B3CD4                                            ; +0x32, 0x1800b3ca2\nxorps   xmm0, xmm0                                                     ; +0x34, 0x1800b3ca4\nxor     eax, eax                                                       ; +0x37, 0x1800b3ca7\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x39, 0x1800b3ca9\nmovups  xmmword ptr [rbx+10h], xmm0                                    ; +0x3c, 0x1800b3cac\nmovups  xmmword ptr [rbx+20h], xmm0                                    ; +0x40, 0x1800b3cb0\nmovups  xmmword ptr [rbx+30h], xmm0                                    ; +0x44, 0x1800b3cb4\nmovups  xmmword ptr [rbx+40h], xmm0                                    ; +0x48, 0x1800b3cb8\nmov     [rbx+50h], rax                                                 ; +0x4c, 0x1800b3cbc\nmov     rcx, rbx; this                                                 ; +0x50, 0x1800b3cc0\ncall    ??0CCObject@cocos2d@@QEAA@XZ; cocos2d::CCObject::CCObject(void) ; +0x53, 0x1800b3cc3\nlea     rax, ??_7CCTargetedTouchHandler@cocos2d@@6B@; const cocos2d::CCTargetedTouchHandler::`vftable' ; +0x58, 0x1800b3cc8\nmov     [rbx], rax                                                     ; +0x5f, 0x1800b3ccf\njmp     short loc_1800B3CD6                                            ; +0x62, 0x1800b3cd2\nxor     ebx, ebx                                                       ; +0x64, 0x1800b3cd4\ntest    rbx, rbx                                                       ; +0x66, 0x1800b3cd6\njz      short loc_1800B3CF9                                            ; +0x69, 0x1800b3cd9\nmovzx   r9d, dil; bool                                                 ; +0x6b, 0x1800b3cdb\nmov     r8d, esi; int                                                  ; +0x6f, 0x1800b3cdf\nmov     rdx, rbp; struct cocos2d::CCTouchDelegate *                    ; +0x72, 0x1800b3ce2\nmov     rcx, rbx; this                                                 ; +0x75, 0x1800b3ce5\ncall    ?initWithDelegate@CCTargetedTouchHandler@cocos2d@@QEAA_NPEAVCCTouchDelegate@2@H_N@Z; cocos2d::CCTargetedTouchHandler::initWithDelegate(cocos2d::CCTouchDelegate *,int,bool) ; +0x78, 0x1800b3ce8\nmov     rcx, rbx; this                                                 ; +0x7d, 0x1800b3ced\ntest    al, al                                                         ; +0x80, 0x1800b3cf0\njz      short loc_1800B3D11                                            ; +0x82, 0x1800b3cf2\ncall    ?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x84, 0x1800b3cf4\nmov     rax, rbx                                                       ; +0x89, 0x1800b3cf9\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x8c, 0x1800b3cfc\nmov     rbp, [rsp+28h+arg_8]                                           ; +0x91, 0x1800b3d01\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x96, 0x1800b3d06\nadd     rsp, 20h                                                       ; +0x9b, 0x1800b3d0b\npop     rdi                                                            ; +0x9f, 0x1800b3d0f\nretn                                                                   ; +0xa0, 0x1800b3d10\ncall    ?release@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::release(void) ; +0xa1, 0x1800b3d11\nxor     eax, eax                                                       ; +0xa6, 0x1800b3d16\njmp     short loc_1800B3CFC                                            ; +0xa8, 0x1800b3d18", "xrefs": ["cocos2d::CCTouchDispatcher::addTargetedDelegate @ 0x1800b2b8e", "<???> @ 0x1801438a8", "<???> @ 0x1801b87b4"], "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"}