{"type": "func", "start": 5369017360, "end": 5369017695, "name": "CCScrollLayerExt::ccTouchBegan", "pseudocode": "// \n// CCScrollLayerExt::ccTouchBegan from 0x14004b410 to 0x14004b55f (335 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14070b130\n// > <???> @ 0x14090fde8\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:25:33 +0000\n// \n\nbool __fastcall CCScrollLayerExt::ccTouchBegan(__int64 a1, __int64 a2)\n{\n  __int64 Location; // rax\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // rax\n  __int64 v8; // rax\n  __int64 v9; // rax\n  bool v10; // zf\n  _BYTE v12[8]; // [rsp+20h] [rbp-18h] BYREF\n  _BYTE v13[16]; // [rsp+28h] [rbp-10h] BYREF\n  char v14; // [rsp+40h] [rbp+8h] BYREF\n  char v15; // [rsp+58h] [rbp+20h] BYREF\n\n  if ( *(_BYTE *)(a1 + 173) )\n    return 0;\n  Location = cocos2d::CCTouch::getLocation(a2, &v15);\n  if ( sub_14004A7E0(a1 - 320, Location) )\n    return 0;\n  *(_QWORD *)(a1 + 96) = a2;\n  cocos2d::CCTouch::getLocationInView(a2, &v14);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  v6 = cocos2d::CCDirector::convertToGL(v5, &v15, &v14);\n  cocos2d::CCPoint::operator=(a1 + 104, v6);\n  cocos2d::CCPoint::operator=(a1 + 112, v7);\n  v8 = cocos2d::CCNode::convertToNodeSpace(a1 - 320, &v15, a1 + 104);\n  cocos2d::CCPoint::operator=(&v14, v8);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12);\n  cocos2d::CCPoint::operator=(v12, &unk_140909AE0);\n  v9 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 320LL))(a1 - 320);\n  cocos2d::CCSize::operator=(v13, v9);\n  if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v12, (const struct cocos2d::CCPoint *)&v14) )\n    return 0;\n  cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)(a1 + 160));\n  cocos2d::CCTime::gettimeofdayCocos2d((struct cocos2d::cc_timeval *)(a1 + 120), nullptr);\n  v10 = *(_BYTE *)(a1 + 173) == 0;\n  *(_BYTE *)(a1 + 128) = 1;\n  return v10;\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchBegan from 0x14004b410 to 0x14004b55f (335 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14070b130\n; > <???> @ 0x14090fde8\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:25:33 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14004b410\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x14004b415\npush    rdi                                                            ; +0xa, 0x14004b41a\nsub     rsp, 30h                                                       ; +0xb, 0x14004b41b\ncmp     byte ptr [rcx+0ADh], 0                                         ; +0xf, 0x14004b41f\nmov     rbx, rdx                                                       ; +0x16, 0x14004b426\nmov     rdi, rcx                                                       ; +0x19, 0x14004b429\njnz     loc_14004B54D                                                  ; +0x1c, 0x14004b42c\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x22, 0x14004b432\nmov     rcx, rbx                                                       ; +0x27, 0x14004b437\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x2a, 0x14004b43a\nmov     rdx, rax                                                       ; +0x30, 0x14004b440\nlea     rcx, [rdi-140h]                                                ; +0x33, 0x14004b443\ncall    sub_14004A7E0                                                  ; +0x3a, 0x14004b44a\ntest    al, al                                                         ; +0x3f, 0x14004b44f\njnz     loc_14004B54D                                                  ; +0x41, 0x14004b451\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x47, 0x14004b457\nmov     [rdi+60h], rbx                                                 ; +0x4c, 0x14004b45c\nmov     rcx, rbx                                                       ; +0x50, 0x14004b460\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x53, 0x14004b463\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x59, 0x14004b469\nmov     rcx, rax                                                       ; +0x5f, 0x14004b46f\nlea     r8, [rsp+38h+arg_0]                                            ; +0x62, 0x14004b472\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x67, 0x14004b477\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x6c, 0x14004b47c\nmov     rdx, rax                                                       ; +0x72, 0x14004b482\nlea     rcx, [rdi+68h]                                                 ; +0x75, 0x14004b485\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x79, 0x14004b489\nmov     rdx, rax                                                       ; +0x7f, 0x14004b48f\nlea     rcx, [rdi+70h]                                                 ; +0x82, 0x14004b492\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x86, 0x14004b496\nlea     r8, [rdi+68h]                                                  ; +0x8c, 0x14004b49c\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x90, 0x14004b4a0\nlea     rcx, [rdi-140h]                                                ; +0x95, 0x14004b4a5\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x9c, 0x14004b4ac\nmov     rdx, rax                                                       ; +0xa2, 0x14004b4b2\nlea     rcx, [rsp+38h+arg_0]                                           ; +0xa5, 0x14004b4b5\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xaa, 0x14004b4ba\nlea     rcx, [rsp+38h+var_18]                                          ; +0xb0, 0x14004b4c0\ncall    cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)   ; +0xb5, 0x14004b4c5\nlea     rdx, unk_140909AE0                                             ; +0xbb, 0x14004b4cb\nlea     rcx, [rsp+38h+var_18]                                          ; +0xc2, 0x14004b4d2\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xc7, 0x14004b4d7\nmov     rax, [rdi-140h]                                                ; +0xcd, 0x14004b4dd\nlea     rcx, [rdi-140h]                                                ; +0xd4, 0x14004b4e4\ncall    qword ptr [rax+140h]                                           ; +0xdb, 0x14004b4eb\nmov     rdx, rax                                                       ; +0xe1, 0x14004b4f1\nlea     rcx, [rsp+38h+var_10]                                          ; +0xe4, 0x14004b4f4\ncall    cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0xe9, 0x14004b4f9\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xef, 0x14004b4ff\nlea     rcx, [rsp+38h+var_18]                                          ; +0xf4, 0x14004b504\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xf9, 0x14004b509\ntest    al, al                                                         ; +0xff, 0x14004b50f\njz      short loc_14004B54D                                            ; +0x101, 0x14004b511\nmov     rcx, [rdi+0A0h]                                                ; +0x103, 0x14004b513\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0x10a, 0x14004b51a\nlea     rcx, [rdi+78h]                                                 ; +0x110, 0x14004b520\nxor     edx, edx                                                       ; +0x114, 0x14004b524\ncall    cs:?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0x116, 0x14004b526\ncmp     byte ptr [rdi+0ADh], 0                                         ; +0x11c, 0x14004b52c\nmov     byte ptr [rdi+80h], 1                                          ; +0x123, 0x14004b533\nsetz    al                                                             ; +0x12a, 0x14004b53a\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x12d, 0x14004b53d\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x132, 0x14004b542\nadd     rsp, 30h                                                       ; +0x137, 0x14004b547\npop     rdi                                                            ; +0x13b, 0x14004b54b\nretn                                                                   ; +0x13c, 0x14004b54c\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x13d, 0x14004b54d\nxor     al, al                                                         ; +0x142, 0x14004b552\nmov     rsi, [rsp+38h+arg_10]                                          ; +0x144, 0x14004b554\nadd     rsp, 30h                                                       ; +0x149, 0x14004b559\npop     rdi                                                            ; +0x14d, 0x14004b55d\nretn                                                                   ; +0x14e, 0x14004b55e", "xrefs": ["<???> @ 0x14070b130", "<???> @ 0x14090fde8"], "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"}