{"type": "func", "start": 5369001456, "end": 5369001742, "name": "CCScrollLayerExt::ccTouchBegan", "pseudocode": "// \n// CCScrollLayerExt::ccTouchBegan from 0x1400475f0 to 0x14004770e (286 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1405304a8\n// > <???> @ 0x140662da4\n// > <???> @ 0x140662db4\n// > <???> @ 0x1406c48e4\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\nbool CCScrollLayerExt::ccTouchBegan(CCScrollLayerExt *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCDirector *v4; // rax\n  struct cocos2d::CCPoint v5; // rax\n  __int64 v6; // rax\n  struct cocos2d::CCPoint v7; // rax\n  __int64 v8; // rax\n  bool v9; // zf\n  cocos2d::CCRect v11; // [rsp+20h] [rbp-18h] BYREF\n  struct cocos2d::CCPoint v12; // [rsp+40h] [rbp+8h] BYREF\n  struct cocos2d::CCPoint v13; // [rsp+58h] [rbp+20h] BYREF\n\n  if ( BYTE1(a1->m_sInverse.a) )\n    return 0;\n  *(_QWORD *)&a1->m_fSkewY = a2;\n  cocos2d::CCTouch::getLocationInView(a2);\n  v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();\n  v5 = cocos2d::CCDirector::convertToGL(v4, &v13);\n  v6 = ((__int64 (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&a1->m_obAnchorPointInPoints.y, v5);\n  cocos2d::CCPoint::operator=(&a1->m_obAnchorPoint.y, v6);\n  v7 = cocos2d::CCNode::convertToNodeSpace((CCScrollLayerExt *)((char *)a1 - 320), &v13);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v12, v7);\n  cocos2d::CCRect::CCRect(&v11);\n  cocos2d::CCPoint::operator=(&v11, &stru_1406C13A8);\n  v8 = (*(__int64 (__fastcall **)(float *))(*(_QWORD *)&a1[-1].m_sInverse.ty + 304LL))(&a1[-1].m_sInverse.ty);\n  cocos2d::CCSize::operator=(&v11.size, v8);\n  if ( !cocos2d::CCRect::containsPoint(&v11, &v12) )\n    return 0;\n  cocos2d::CCNode::stopAllActions(*(cocos2d::CCNode **)&a1->m_sTransform.d);\n  cocos2d::CCTime::gettimeofdayCocos2d((struct cocos2d::cc_timeval *)&a1->m_obContentSize.height, nullptr);\n  v9 = BYTE1(a1->m_sInverse.a) == 0;\n  LOBYTE(a1->m_sAdditionalTransform.b) = 1;\n  return v9;\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchBegan from 0x1400475f0 to 0x14004770e (286 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1405304a8\n; > <???> @ 0x140662da4\n; > <???> @ 0x140662db4\n; > <???> @ 0x1406c48e4\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\npush    rsi                                                            ; +0x0, 0x1400475f0\nsub     rsp, 30h                                                       ; +0x2, 0x1400475f2\ncmp     byte ptr [rcx+0A5h], 0                                         ; +0x6, 0x1400475f6\nmov     rax, rdx                                                       ; +0xd, 0x1400475fd\nmov     rsi, rcx                                                       ; +0x10, 0x140047600\njnz     loc_140047706                                                  ; +0x13, 0x140047603\nmov     [rcx+58h], rdx                                                 ; +0x19, 0x140047609\nlea     rdx, [rsp+38h+arg_0]                                           ; +0x1d, 0x14004760d\nmov     rcx, rax                                                       ; +0x22, 0x140047612\nmov     [rsp+38h+arg_8], rbx                                           ; +0x25, 0x140047615\nmov     [rsp+38h+arg_10], rdi                                          ; +0x2a, 0x14004761a\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x2f, 0x14004761f\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x35, 0x140047625\nmov     rcx, rax                                                       ; +0x3b, 0x14004762b\nlea     r8, [rsp+38h+arg_0]                                            ; +0x3e, 0x14004762e\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x43, 0x140047633\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x48, 0x140047638\nmov     rdx, rax                                                       ; +0x4e, 0x14004763e\nlea     rcx, [rsi+60h]                                                 ; +0x51, 0x140047641\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x55, 0x140047645\nmov     rdx, rax                                                       ; +0x5b, 0x14004764b\nlea     rcx, [rsi+68h]                                                 ; +0x5e, 0x14004764e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x62, 0x140047652\nlea     r8, [rsi+60h]                                                  ; +0x68, 0x140047658\nlea     rdx, [rsp+38h+arg_18]                                          ; +0x6c, 0x14004765c\nlea     rcx, [rsi-140h]                                                ; +0x71, 0x140047661\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0x78, 0x140047668\nmov     rdx, rax                                                       ; +0x7e, 0x14004766e\nlea     rcx, [rsp+38h+arg_0]                                           ; +0x81, 0x140047671\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x86, 0x140047676\nlea     rcx, [rsp+38h+var_18]                                          ; +0x8c, 0x14004767c\ncall    cs:??0CCRect@cocos2d@@QEAA@XZ; cocos2d::CCRect::CCRect(void)   ; +0x91, 0x140047681\nlea     rdx, stru_1406C13A8                                            ; +0x97, 0x140047687\nlea     rcx, [rsp+38h+var_18]                                          ; +0x9e, 0x14004768e\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0xa3, 0x140047693\nmov     rax, [rsi-140h]                                                ; +0xa9, 0x140047699\nlea     rcx, [rsi-140h]                                                ; +0xb0, 0x1400476a0\ncall    qword ptr [rax+130h]                                           ; +0xb7, 0x1400476a7\nmov     rdx, rax                                                       ; +0xbd, 0x1400476ad\nlea     rcx, [rsp+38h+var_10]                                          ; +0xc0, 0x1400476b0\ncall    cs:??4CCSize@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCSize::operator=(cocos2d::CCSize const &) ; +0xc5, 0x1400476b5\nlea     rdx, [rsp+38h+arg_0]                                           ; +0xcb, 0x1400476bb\nlea     rcx, [rsp+38h+var_18]                                          ; +0xd0, 0x1400476c0\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xd5, 0x1400476c5\nmov     rdi, [rsp+38h+arg_10]                                          ; +0xdb, 0x1400476cb\nmov     rbx, [rsp+38h+arg_8]                                           ; +0xe0, 0x1400476d0\ntest    al, al                                                         ; +0xe5, 0x1400476d5\njz      short loc_140047706                                            ; +0xe7, 0x1400476d7\nmov     rcx, [rsi+98h]                                                 ; +0xe9, 0x1400476d9\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xf0, 0x1400476e0\nlea     rcx, [rsi+70h]                                                 ; +0xf6, 0x1400476e6\nxor     edx, edx                                                       ; +0xfa, 0x1400476ea\ncall    cs:?gettimeofdayCocos2d@CCTime@cocos2d@@SAHPEAUcc_timeval@2@PEAX@Z; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0xfc, 0x1400476ec\ncmp     byte ptr [rsi+0A5h], 0                                         ; +0x102, 0x1400476f2\nmov     byte ptr [rsi+78h], 1                                          ; +0x109, 0x1400476f9\nsetz    al                                                             ; +0x10d, 0x1400476fd\nadd     rsp, 30h                                                       ; +0x110, 0x140047700\npop     rsi                                                            ; +0x114, 0x140047704\nretn                                                                   ; +0x115, 0x140047705\nxor     al, al                                                         ; +0x116, 0x140047706\nadd     rsp, 30h                                                       ; +0x118, 0x140047708\npop     rsi                                                            ; +0x11c, 0x14004770c\nretn                                                                   ; +0x11d, 0x14004770d", "xrefs": ["<???> @ 0x1405304a8", "<???> @ 0x140662da4", "<???> @ 0x140662db4", "<???> @ 0x1406c48e4"], "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"}