{"type": "func", "start": 6443197584, "end": 6443197730, "name": "cocos2d::CCTouchDispatcher::addStandardDelegate", "pseudocode": "// \n// cocos2d::CCTouchDispatcher::addStandardDelegate from 0x1800b6490 to 0x1800b6522 (146 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCLayer::registerWithTouchDispatcher @ 0x18005278b\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c28ec\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:21 +0000\n// \n\nvoid __fastcall cocos2d::CCTouchDispatcher::addStandardDelegate(\n        cocos2d::CCTouchDispatcher *this,\n        struct cocos2d::CCTouchDelegate *a2,\n        int a3)\n{\n  struct cocos2d::CCTouchHandler *v5; // rax\n  struct cocos2d::CCObject *v6; // rsi\n\n  v5 = cocos2d::CCStandardTouchHandler::handlerWithDelegate(a2, a3);\n  v6 = v5;\n  if ( *((_BYTE *)this + 80) )\n  {\n    if ( sub_1800A1E40(*((_QWORD *)this + 12), (__int64)a2) )\n    {\n      sub_1800A1F90(*((_QWORD *)this + 12), (__int64)a2);\n    }\n    else\n    {\n      cocos2d::CCArray::addObject(*((cocos2d::CCArray **)this + 11), v6);\n      *((_BYTE *)this + 81) = 1;\n    }\n  }\n  else\n  {\n    cocos2d::CCTouchDispatcher::forceAddHandler(this, v5, *((struct cocos2d::CCArray **)this + 9));\n  }\n}", "assembly": "; \n; cocos2d::CCTouchDispatcher::addStandardDelegate from 0x1800b6490 to 0x1800b6522 (146 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCLayer::registerWithTouchDispatcher @ 0x18005278b\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c28ec\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:21 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800b6490\nmov     [rsp+arg_8], rsi                                               ; +0x5, 0x1800b6495\npush    rdi                                                            ; +0xa, 0x1800b649a\nsub     rsp, 20h                                                       ; +0xb, 0x1800b649b\nmov     rdi, rdx                                                       ; +0xf, 0x1800b649f\nmov     rbx, rcx                                                       ; +0x12, 0x1800b64a2\nmov     rcx, rdi; struct cocos2d::CCTouchDelegate *                    ; +0x15, 0x1800b64a5\nmov     edx, r8d; int                                                  ; +0x18, 0x1800b64a8\ncall    ?handlerWithDelegate@CCStandardTouchHandler@cocos2d@@SAPEAV12@PEAVCCTouchDelegate@2@H@Z; cocos2d::CCStandardTouchHandler::handlerWithDelegate(cocos2d::CCTouchDelegate *,int) ; +0x1b, 0x1800b64ab\ncmp     byte ptr [rbx+50h], 0                                          ; +0x20, 0x1800b64b0\nmov     rsi, rax                                                       ; +0x24, 0x1800b64b4\njnz     short loc_1800B64D7                                            ; +0x27, 0x1800b64b7\nmov     r8, [rbx+48h]; struct cocos2d::CCArray *                       ; +0x29, 0x1800b64b9\nmov     rdx, rax; struct cocos2d::CCTouchHandler *                     ; +0x2d, 0x1800b64bd\nmov     rcx, rbx; this                                                 ; +0x30, 0x1800b64c0\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x33, 0x1800b64c3\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x38, 0x1800b64c8\nadd     rsp, 20h                                                       ; +0x3d, 0x1800b64cd\npop     rdi                                                            ; +0x41, 0x1800b64d1\njmp     ?forceAddHandler@CCTouchDispatcher@cocos2d@@IEAAXPEAVCCTouchHandler@2@PEAVCCArray@2@@Z; cocos2d::CCTouchDispatcher::forceAddHandler(cocos2d::CCTouchHandler *,cocos2d::CCArray *) ; +0x42, 0x1800b64d2\nmov     rcx, [rbx+60h]                                                 ; +0x47, 0x1800b64d7\nmov     rdx, rdi                                                       ; +0x4b, 0x1800b64db\ncall    sub_1800A1E40                                                  ; +0x4e, 0x1800b64de\ntest    al, al                                                         ; +0x53, 0x1800b64e3\njz      short loc_1800B6502                                            ; +0x55, 0x1800b64e5\nmov     rcx, [rbx+60h]                                                 ; +0x57, 0x1800b64e7\nmov     rdx, rdi                                                       ; +0x5b, 0x1800b64eb\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x5e, 0x1800b64ee\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x63, 0x1800b64f3\nadd     rsp, 20h                                                       ; +0x68, 0x1800b64f8\npop     rdi                                                            ; +0x6c, 0x1800b64fc\njmp     sub_1800A1F90                                                  ; +0x6d, 0x1800b64fd\nmov     rcx, [rbx+58h]; this                                           ; +0x72, 0x1800b6502\nmov     rdx, rsi; struct cocos2d::CCObject *                           ; +0x76, 0x1800b6506\ncall    ?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x79, 0x1800b6509\nmov     rsi, [rsp+28h+arg_8]                                           ; +0x7e, 0x1800b650e\nmov     byte ptr [rbx+51h], 1                                          ; +0x83, 0x1800b6513\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x87, 0x1800b6517\nadd     rsp, 20h                                                       ; +0x8c, 0x1800b651c\npop     rdi                                                            ; +0x90, 0x1800b6520\nretn                                                                   ; +0x91, 0x1800b6521", "xrefs": ["cocos2d::CCLayer::registerWithTouchDispatcher @ 0x18005278b", "<???> @ 0x18014cf68", "<???> @ 0x1801c28ec"], "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"}