{"type": "func", "start": 5739804, "end": 5740108, "name": "CCScrollLayerExt::ccTouchBegan", "pseudocode": "// \n// CCScrollLayerExt::ccTouchBegan from 0x57951c to 0x57964c (304 bytes)\n// \n// 4 xrefs:\n// > `non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x579650\n// > TableView::ccTouchBegan @ 0x57ccec\n// > <???> @ 0x2f4c0\n// > <???> @ 0x113a7c0\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  bool result; // w0\n  cocos2d::CCDirector *v5; // x0\n  float v6; // s0\n  float v7; // s1\n  float v8; // s0\n  float v9; // s1\n  const cocos2d::CCSize *v10; // x0\n  bool m_disableMovement; // w0\n  cocos2d::CCPoint v12; // [xsp+40h] [xbp+40h] BYREF\n  cocos2d::CCRect v13; // [xsp+48h] [xbp+48h] BYREF\n  cocos2d::CCPoint v14; // 0:kr08_8.8\n  cocos2d::CCPoint v15; // 0:kr10_8.8\n\n  result = 0;\n  if ( !a1->m_disableMovement )\n  {\n    a1->m_touch = a2;\n    cocos2d::CCTouch::getLocationInView(a2);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    v14 = cocos2d::CCDirector::convertToGL(v5, &v12);\n    cocos2d::CCPoint::operator=(&a1->m_touchPosition, v14.x, v14.y);\n    cocos2d::CCPoint::operator=(&a1->m_touchStartPosition, v6, v7);\n    v15 = cocos2d::CCNode::convertToNodeSpace(a1, &a1->m_touchPosition);\n    cocos2d::CCPoint::operator=(&v12, v15.x, v15.y);\n    cocos2d::CCRect::CCRect(&v13);\n    cocos2d::CCPoint::operator=(&v13, v8, v9);\n    v10 = a1->getContentSize(a1);\n    cocos2d::CCSize::operator=(&v13.size, v10);\n    result = cocos2d::CCRect::containsPoint(&v13, &v12);\n    if ( result )\n    {\n      cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n      cocos2d::CCTime::gettimeofdayCocos2d(&a1->m_timeValue, nullptr);\n      m_disableMovement = a1->m_disableMovement;\n      a1->m_touchDown = 1;\n      return !m_disableMovement;\n    }\n  }\n  return result;\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchBegan from 0x57951c to 0x57964c (304 bytes)\n; \n; 4 xrefs:\n; > `non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x579650\n; > TableView::ccTouchBegan @ 0x57ccec\n; > <???> @ 0x2f4c0\n; > <???> @ 0x113a7c0\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\nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x57951c\nMOV             X29, SP                                                ; +0x4, 0x579520\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x579524\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x579528\nMOV             X20, X0                                                ; +0x10, 0x57952c\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x14, 0x579530\nSTR             X23, [SP,#0x60+var_30]                                 ; +0x18, 0x579534\nMOV             W0, #0                                                 ; +0x1c, 0x579538\nLDR             X3, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x57953c\nLDRB            W2, [X20,#0x1ED]                                       ; +0x24, 0x579540\nLDR             X3, [X3]                                               ; +0x28, 0x579544\nSTR             X3, [X29,#0x60+var_8]                                  ; +0x2c, 0x579548\nCBZ             W2, loc_579578                                         ; +0x30, 0x57954c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x34, 0x579550\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x38, 0x579554\nLDR             X1, [X19]                                              ; +0x3c, 0x579558\nCMP             X2, X1                                                 ; +0x40, 0x57955c\nB.NE            loc_579648                                             ; +0x44, 0x579560\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x48, 0x579564\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x4c, 0x579568\nLDR             X23, [SP,#0x60+var_30]                                 ; +0x50, 0x57956c\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x54, 0x579570\nRET                                                                    ; +0x58, 0x579574\nADD             X22, X29, #0x60+var_20                                 ; +0x5c, 0x579578\nMOV             X0, X1; this                                           ; +0x60, 0x57957c\nMOV             X8, X22                                                ; +0x64, 0x579580\nSTR             X1, [X20,#0x198]                                       ; +0x68, 0x579584\nADD             X21, X29, #0x60+var_18                                 ; +0x6c, 0x579588\nADD             X23, X20, #0x1A0                                       ; +0x70, 0x57958c\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x74, 0x579590\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x78, 0x579594\nMOV             X8, X21                                                ; +0x7c, 0x579598\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x80, 0x57959c\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x84, 0x5795a0\nMOV             X1, X21                                                ; +0x88, 0x5795a4\nMOV             X0, X23                                                ; +0x8c, 0x5795a8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x90, 0x5795ac\nMOV             X1, X0                                                 ; +0x94, 0x5795b0\nADD             X0, X20, #0x1A8                                        ; +0x98, 0x5795b4\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x9c, 0x5795b8\nMOV             X8, X21                                                ; +0xa0, 0x5795bc\nMOV             X0, X20; this                                          ; +0xa4, 0x5795c0\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0xa8, 0x5795c4\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0xac, 0x5795c8\nMOV             X1, X21                                                ; +0xb0, 0x5795cc\nMOV             X0, X22                                                ; +0xb4, 0x5795d0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xb8, 0x5795d4\nMOV             X0, X21; this                                          ; +0xbc, 0x5795d8\nBL              _ZN7cocos2d6CCRectC1Ev; cocos2d::CCRect::CCRect(void)  ; +0xc0, 0x5795dc\nADRP            X1, #stru_12416F0@PAGE                                 ; +0xc4, 0x5795e0\nMOV             X0, X21                                                ; +0xc8, 0x5795e4\nADD             X1, X1, #stru_12416F0@PAGEOFF                          ; +0xcc, 0x5795e8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xd0, 0x5795ec\nLDR             X1, [X20]                                              ; +0xd4, 0x5795f0\nMOV             X0, X20                                                ; +0xd8, 0x5795f4\nLDR             X1, [X1,#0x138]                                        ; +0xdc, 0x5795f8\nBLR             X1                                                     ; +0xe0, 0x5795fc\nMOV             X1, X0                                                 ; +0xe4, 0x579600\nADD             X0, X21, #8                                            ; +0xe8, 0x579604\nBL              _ZN7cocos2d6CCSizeaSERKS0_; cocos2d::CCSize::operator=(cocos2d::CCSize const&) ; +0xec, 0x579608\nMOV             X0, X21; this                                          ; +0xf0, 0x57960c\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0xf4, 0x579610\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0xf8, 0x579614\nUXTB            W0, W0                                                 ; +0xfc, 0x579618\nCBZ             W0, loc_579550                                         ; +0x100, 0x57961c\nLDR             X0, [X20,#0x1E0]; this                                 ; +0x104, 0x579620\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x108, 0x579624\nMOV             X1, #0                                                 ; +0x10c, 0x579628\nADD             X0, X20, #0x1B0                                        ; +0x110, 0x57962c\nBL              _ZN7cocos2d6CCTime19gettimeofdayCocos2dEPNS_10cc_timevalEPv; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0x114, 0x579630\nLDRB            W0, [X20,#0x1ED]                                       ; +0x118, 0x579634\nMOV             W1, #1                                                 ; +0x11c, 0x579638\nSTRB            W1, [X20,#0x1C0]                                       ; +0x120, 0x57963c\nEOR             W0, W0, #1                                             ; +0x124, 0x579640\nB               loc_579550                                             ; +0x128, 0x579644\nBL              .__stack_chk_fail                                      ; +0x12c, 0x579648", "xrefs": ["`non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x579650", "TableView::ccTouchBegan @ 0x57ccec", "<???> @ 0x2f4c0", "<???> @ 0x113a7c0"], "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"}