{"type": "func", "start": 6443187728, "end": 6443187814, "name": "cocos2d::CCTouchHandler::initWithDelegate", "pseudocode": "// \n// cocos2d::CCTouchHandler::initWithDelegate from 0x1800b3e10 to 0x1800b3e66 (86 bytes)\n// \n// 7 xrefs:\n// > cocos2d::CCStandardTouchHandler::handlerWithDelegate @ 0x1800b3be5\n// > cocos2d::CCTouchHandler::handlerWithDelegate @ 0x1800b3d85\n// > <???> @ 0x180106590\n// > <???> @ 0x1801065e8\n// > <???> @ 0x180106640\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b87cc\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// Alternative name is '?initWithDelegate@CCStandardTouchHandler@cocos2d@@UEAA_NPEAVCCTouchDelegate@2@H@Z'\nchar __fastcall cocos2d::CCTouchHandler::initWithDelegate(\n        cocos2d::CCTouchHandler *this,\n        struct cocos2d::CCTouchDelegate *a2,\n        int a3)\n{\n  cocos2d::CCObject *v5; // rax\n\n  this->m_pDelegate = a2;\n  v5 = (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(v5);\n  this->m_nPriority = a3;\n  this->m_nEnabledSelectors = 0;\n  return 1;\n}", "assembly": "; \n; cocos2d::CCTouchHandler::initWithDelegate from 0x1800b3e10 to 0x1800b3e66 (86 bytes)\n; \n; 7 xrefs:\n; > cocos2d::CCStandardTouchHandler::handlerWithDelegate @ 0x1800b3be5\n; > cocos2d::CCTouchHandler::handlerWithDelegate @ 0x1800b3d85\n; > <???> @ 0x180106590\n; > <???> @ 0x1801065e8\n; > <???> @ 0x180106640\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b87cc\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, 0x1800b3e10\npush    rdi                                                            ; +0x5, 0x1800b3e15\nsub     rsp, 30h                                                       ; +0x6, 0x1800b3e16\nmov     rax, rdx                                                       ; +0xa, 0x1800b3e1a\nmov     [rcx+38h], rdx                                                 ; +0xd, 0x1800b3e1d\nmov     edi, r8d                                                       ; +0x11, 0x1800b3e21\nmov     [rsp+38h+var_18], 0                                            ; +0x14, 0x1800b3e24\nmov     rbx, rcx                                                       ; +0x1c, 0x1800b3e2c\nlea     r9, ??_R0?AVCCObject@cocos2d@@@8; cocos2d::CCObject `RTTI Type Descriptor' ; +0x1f, 0x1800b3e2f\nmov     rcx, rax                                                       ; +0x26, 0x1800b3e36\nlea     r8, ??_R0?AVCCTouchDelegate@cocos2d@@@8; cocos2d::CCTouchDelegate `RTTI Type Descriptor' ; +0x29, 0x1800b3e39\nxor     edx, edx                                                       ; +0x30, 0x1800b3e40\ncall    __RTDynamicCast                                                ; +0x32, 0x1800b3e42\nmov     rcx, rax; this                                                 ; +0x37, 0x1800b3e47\ncall    ?retain@CCObject@cocos2d@@QEAAXXZ; cocos2d::CCObject::retain(void) ; +0x3a, 0x1800b3e4a\nmov     [rbx+40h], edi                                                 ; +0x3f, 0x1800b3e4f\nmov     al, 1                                                          ; +0x42, 0x1800b3e52\nmov     dword ptr [rbx+44h], 0                                         ; +0x44, 0x1800b3e54\nmov     rbx, [rsp+38h+arg_0]                                           ; +0x4b, 0x1800b3e5b\nadd     rsp, 30h                                                       ; +0x50, 0x1800b3e60\npop     rdi                                                            ; +0x54, 0x1800b3e64\nretn                                                                   ; +0x55, 0x1800b3e65", "xrefs": ["cocos2d::CCStandardTouchHandler::handlerWithDelegate @ 0x1800b3be5", "cocos2d::CCTouchHandler::handlerWithDelegate @ 0x1800b3d85", "<???> @ 0x180106590", "<???> @ 0x1801065e8", "<???> @ 0x180106640", "<???> @ 0x1801438a8", "<???> @ 0x1801b87cc"], "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"}