{"type": "func", "start": 3047940, "end": 3048132, "name": "CCScrollLayerExt::ccTouchBegan", "pseudocode": "// \n// CCScrollLayerExt::ccTouchBegan from 0x2e8204 to 0x2e82c4 (192 bytes)\n// \n// 2 xrefs:\n// > `non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x2e82d0\n// > TableView::ccTouchBegan @ 0x2ea512\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  _BOOL4 m_disableMovement; // r9\n  cocos2d::CCDirector *v5; // r0\n  int v6; // r0\n  const cocos2d::CCSize *v7; // r0\n  int v8; // r0\n  cocos2d::CCPoint v10; // [sp+4h] [bp-20h] BYREF\n  cocos2d::CCRect v11; // [sp+Ch] [bp-18h] BYREF\n\n  m_disableMovement = a1->m_disableMovement;\n  if ( a1->m_disableMovement )\n  {\n    LOBYTE(v8) = 0;\n  }\n  else\n  {\n    a1->m_touch = a2;\n    cocos2d::CCTouch::getLocationInView(&v10, a2);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::convertToGL(&v11.origin, v5, &v10);\n    v6 = cocos2d::CCPoint::operator=(&a1->m_touchPosition, &v11);\n    cocos2d::CCPoint::operator=(&a1->m_touchStartPosition, v6);\n    cocos2d::CCNode::convertToNodeSpace(&v11.origin, a1, &a1->m_touchPosition);\n    cocos2d::CCPoint::operator=(&v10, &v11);\n    cocos2d::CCRect::CCRect(&v11);\n    cocos2d::CCPoint::operator=(&v11, &stru_AC53F0);\n    v7 = a1->getContentSize(a1);\n    cocos2d::CCSize::operator=(&v11.size, v7);\n    v8 = cocos2d::CCRect::containsPoint(&v11, &v10);\n    if ( v8 )\n    {\n      cocos2d::CCNode::stopAllActions(a1->m_contentLayer);\n      cocos2d::CCTime::gettimeofdayCocos2d(&a1->m_timeValue, (void *)m_disableMovement);\n      LOBYTE(v8) = a1->m_disableMovement;\n      a1->m_touchDown = 1;\n      LOBYTE(v8) = v8 ^ 1;\n    }\n  }\n  return v8;\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchBegan from 0x2e8204 to 0x2e82c4 (192 bytes)\n; \n; 2 xrefs:\n; > `non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x2e82d0\n; > TableView::ccTouchBegan @ 0x2ea512\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.W          {R4-R9,LR}                                             ; +0x0, 0x2e8204\nSUB             SP, SP, #0x24                                          ; +0x4, 0x2e8208\nLDR             R6, =(__stack_chk_guard_ptr - 0x2E8216)                ; +0x6, 0x2e820a\nMOV             R4, R0                                                 ; +0x8, 0x2e820c\nLDRB.W          R9, [R0,#0x171]                                        ; +0xa, 0x2e820e\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e8212\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x2e8214\nLDR             R2, [R6]                                               ; +0x12, 0x2e8216\nSTR             R2, [SP,#0x24+var_8]                                   ; +0x14, 0x2e8218\nCMP.W           R9, #0                                                 ; +0x16, 0x2e821a\nBNE             loc_2E82B0                                             ; +0x1a, 0x2e821e\nADD             R7, SP, #0x24+var_20                                   ; +0x1c, 0x2e8220\nSTR.W           R1, [R4,#0x13C]                                        ; +0x1e, 0x2e8222\nADD             R5, SP, #0x24+var_18                                   ; +0x22, 0x2e8226\nADD.W           R8, R4, #0x140                                         ; +0x24, 0x2e8228\nMOV             R0, R7; this                                           ; +0x28, 0x2e822c\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x2a, 0x2e822e\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2e, 0x2e8232\nMOV             R2, R7                                                 ; +0x32, 0x2e8236\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x34, 0x2e8238\nMOV             R0, R5; this                                           ; +0x36, 0x2e823a\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x38, 0x2e823c\nMOV             R1, R5                                                 ; +0x3c, 0x2e8240\nMOV             R0, R8                                                 ; +0x3e, 0x2e8242\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x40, 0x2e8244\nMOV             R1, R0                                                 ; +0x44, 0x2e8248\nADD.W           R0, R4, #0x148                                         ; +0x46, 0x2e824a\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x4a, 0x2e824e\nMOV             R2, R8                                                 ; +0x4e, 0x2e8252\nMOV             R0, R5; this                                           ; +0x50, 0x2e8254\nMOV             R1, R4; cocos2d::CCPoint *                             ; +0x52, 0x2e8256\nBL              _ZN7cocos2d6CCNode18convertToNodeSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const&) ; +0x54, 0x2e8258\nMOV             R1, R5                                                 ; +0x58, 0x2e825c\nMOV             R0, R7                                                 ; +0x5a, 0x2e825e\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x5c, 0x2e8260\nMOV             R0, R5; this                                           ; +0x60, 0x2e8264\nBL              _ZN7cocos2d6CCRectC1Ev; cocos2d::CCRect::CCRect(void)  ; +0x62, 0x2e8266\nLDR             R1, =(stru_AC53F0 - 0x2E8272)                          ; +0x66, 0x2e826a\nMOV             R0, R5                                                 ; +0x68, 0x2e826c\nADD             R1, PC; stru_AC53F0                                    ; +0x6a, 0x2e826e\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x6c, 0x2e8270\nLDR             R3, [R4]                                               ; +0x70, 0x2e8274\nMOV             R0, R4                                                 ; +0x72, 0x2e8276\nLDR.W           R3, [R3,#0x9C]                                         ; +0x74, 0x2e8278\nBLX             R3                                                     ; +0x78, 0x2e827c\nMOV             R1, R0                                                 ; +0x7a, 0x2e827e\nADD             R0, SP, #0x24+var_10                                   ; +0x7c, 0x2e8280\nBL              _ZN7cocos2d6CCSizeaSERKS0_; cocos2d::CCSize::operator=(cocos2d::CCSize const&) ; +0x7e, 0x2e8282\nMOV             R0, R5; this                                           ; +0x82, 0x2e8286\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x84, 0x2e8288\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x86, 0x2e828a\nCBZ             R0, loc_2E82B2                                         ; +0x8a, 0x2e828e\nLDR.W           R0, [R4,#0x168]; this                                  ; +0x8c, 0x2e8290\nBL              _ZN7cocos2d6CCNode14stopAllActionsEv; cocos2d::CCNode::stopAllActions(void) ; +0x90, 0x2e8294\nADD.W           R0, R4, #0x150                                         ; +0x94, 0x2e8298\nMOV             R1, R9                                                 ; +0x98, 0x2e829c\nBL              _ZN7cocos2d6CCTime19gettimeofdayCocos2dEPNS_10cc_timevalEPv; cocos2d::CCTime::gettimeofdayCocos2d(cocos2d::cc_timeval *,void *) ; +0x9a, 0x2e829e\nLDRB.W          R0, [R4,#0x171]                                        ; +0x9e, 0x2e82a2\nMOVS            R3, #1                                                 ; +0xa2, 0x2e82a6\nSTRB.W          R3, [R4,#0x158]                                        ; +0xa4, 0x2e82a8\nEORS            R0, R3                                                 ; +0xa8, 0x2e82ac\nB               loc_2E82B2                                             ; +0xaa, 0x2e82ae\nMOVS            R0, #0                                                 ; +0xac, 0x2e82b0\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xae, 0x2e82b2\nLDR             R3, [R6]                                               ; +0xb0, 0x2e82b4\nCMP             R2, R3                                                 ; +0xb2, 0x2e82b6\nBEQ             loc_2E82BE                                             ; +0xb4, 0x2e82b8\nBLX             __stack_chk_fail                                       ; +0xb6, 0x2e82ba\nADD             SP, SP, #0x24 ; '$'                                    ; +0xba, 0x2e82be\nPOP.W           {R4-R9,PC}                                             ; +0xbc, 0x2e82c0", "xrefs": ["`non-virtual thunk to'CCScrollLayerExt::ccTouchBegan @ 0x2e82d0", "TableView::ccTouchBegan @ 0x2ea512"], "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"}