{"type": "func", "start": 6442783312, "end": 6442783390, "name": "cocos2d::CCLayer::ccTouchBegan", "pseudocode": "// \n// cocos2d::CCLayer::ccTouchBegan from 0x180051250 to 0x18005129e (78 bytes)\n// \n// 7 xrefs:\n// > <???> @ 0x1800f3458\n// > <???> @ 0x1800f3938\n// > <???> @ 0x1800f3ea8\n// > <???> @ 0x1800f44a0\n// > <???> @ 0x1800f4a10\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bc028\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:21:45 +0000\n// \n\nbool __fastcall cocos2d::CCLayer::ccTouchBegan(\n        cocos2d::CCLayer *this,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  char *v3; // rbx\n  struct cocos2d::CCScriptEngineManager *v5; // rax\n\n  v3 = (char *)this - 320;\n  if ( !*((_DWORD *)this - 5) )\n    return 1;\n  v5 = cocos2d::CCScriptEngineManager::sharedManager();\n  return (*(unsigned int (__fastcall **)(_QWORD, char *, _QWORD, struct cocos2d::CCTouch *))(**(_QWORD **)v5 + 112LL))(\n           *(_QWORD *)v5,\n           v3,\n           0,\n           a2) != 0;\n}", "assembly": "; \n; cocos2d::CCLayer::ccTouchBegan from 0x180051250 to 0x18005129e (78 bytes)\n; \n; 7 xrefs:\n; > <???> @ 0x1800f3458\n; > <???> @ 0x1800f3938\n; > <???> @ 0x1800f3ea8\n; > <???> @ 0x1800f44a0\n; > <???> @ 0x1800f4a10\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bc028\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:21:45 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180051250\npush    rdi                                                            ; +0x5, 0x180051255\nsub     rsp, 20h                                                       ; +0x6, 0x180051256\ncmp     dword ptr [rcx-14h], 0                                         ; +0xa, 0x18005125a\nlea     rbx, [rcx-140h]                                                ; +0xe, 0x18005125e\nmov     rdi, rdx                                                       ; +0x15, 0x180051265\njz      short loc_180051291                                            ; +0x18, 0x180051268\ncall    ?sharedManager@CCScriptEngineManager@cocos2d@@SAPEAV12@XZ; cocos2d::CCScriptEngineManager::sharedManager(void) ; +0x1a, 0x18005126a\nmov     r9, rdi                                                        ; +0x1f, 0x18005126f\nxor     r8d, r8d                                                       ; +0x22, 0x180051272\nmov     rdx, rbx                                                       ; +0x25, 0x180051275\nmov     rcx, [rax]                                                     ; +0x28, 0x180051278\nmov     rax, [rcx]                                                     ; +0x2b, 0x18005127b\ncall    qword ptr [rax+70h]                                            ; +0x2e, 0x18005127e\ntest    eax, eax                                                       ; +0x31, 0x180051281\nsetnz   al                                                             ; +0x33, 0x180051283\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x36, 0x180051286\nadd     rsp, 20h                                                       ; +0x3b, 0x18005128b\npop     rdi                                                            ; +0x3f, 0x18005128f\nretn                                                                   ; +0x40, 0x180051290\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x41, 0x180051291\nmov     al, 1                                                          ; +0x46, 0x180051296\nadd     rsp, 20h                                                       ; +0x48, 0x180051298\npop     rdi                                                            ; +0x4c, 0x18005129c\nretn                                                                   ; +0x4d, 0x18005129d", "xrefs": ["<???> @ 0x1800f3458", "<???> @ 0x1800f3938", "<???> @ 0x1800f3ea8", "<???> @ 0x1800f44a0", "<???> @ 0x1800f4a10", "<???> @ 0x18014cf68", "<???> @ 0x1801bc028"], "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"}