{"type": "func", "start": 3048956, "end": 3049218, "name": "CCScrollLayerExt::ccTouchMoved", "pseudocode": "// \n// CCScrollLayerExt::ccTouchMoved from 0x2e85fc to 0x2e8702 (262 bytes)\n// \n// 2 xrefs:\n// > `non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x2e870c\n// > TableView::ccTouchMoved @ 0x2ea63c\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\nvoid CCScrollLayerExt::ccTouchMoved(CCScrollLayerExt *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCDirector *v5; // r0\n  const cocos2d::CCPoint *v6; // r0\n  float v7; // s16\n  float MaxY; // r0\n  CCScrollLayerExtDelegate *m_delegate; // r0\n  cocos2d::CCPoint v10; // [sp+4h] [bp-10h] BYREF\n  _DWORD v11[2]; // [sp+Ch] [bp-8h] BYREF\n  cocos2d::CCPoint v12; // [sp+14h] [bp+0h] BYREF\n\n  a1->m_touchDown = 1;\n  cocos2d::CCTouch::getLocationInView(&v10, a2);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::convertToGL(&v12, v5, &v10);\n  cocos2d::CCPoint::operator=(&v10, &v12);\n  if ( a2 == a1->m_touch )\n  {\n    cocos2d::CCPoint::operator-(v11, &v10, &a1->m_touchPosition);\n    if ( a1->m_disableVertical )\n    {\n      v11[1] = 0;\n    }\n    else if ( a1->m_disableHorizontal )\n    {\n      v11[0] = 0;\n    }\n    v6 = a1->m_contentLayer->getPosition(a1->m_contentLayer);\n    cocos2d::CCPoint::operator+(&v12, v6, v11);\n    v7 = CCScrollLayerExt::getMinY(a1) - a1->m_peekLimitTop;\n    MaxY = CCScrollLayerExt::getMaxY(a1);\n    if ( v12.y >= v7 )\n    {\n      if ( v12.y > (float)(MaxY + a1->m_peekLimitBottom) )\n        v12.y = MaxY + a1->m_peekLimitBottom;\n    }\n    else\n    {\n      v12.y = v7;\n    }\n    a1->m_contentLayer->setPosition(a1->m_contentLayer, &v12);\n    a1->m_notAtEndOfScroll = 1;\n    cocos2d::CCPoint::operator=(&a1->m_touchPosition, &v10);\n    m_delegate = a1->m_delegate;\n    if ( m_delegate )\n      m_delegate->scrollViewTouchMoving(m_delegate, a1);\n  }\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchMoved from 0x2e85fc to 0x2e8702 (262 bytes)\n; \n; 2 xrefs:\n; > `non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x2e870c\n; > TableView::ccTouchMoved @ 0x2ea63c\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, 0x2e85fc\nMOV             R4, R0                                                 ; +0x4, 0x2e8600\nVPUSH           {D8}                                                   ; +0x6, 0x2e8602\nMOV             R8, R1                                                 ; +0xa, 0x2e8606\nLDR             R5, =(__stack_chk_guard_ptr - 0x2E860E)                ; +0xc, 0x2e8608\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e860a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x2e860c\nSUB             SP, SP, #0x24                                          ; +0x12, 0x2e860e\nLDR             R3, [R5]                                               ; +0x14, 0x2e8610\nADD             R6, SP, #0x24+var_20                                   ; +0x16, 0x2e8612\nADD             R7, SP, #0x14                                          ; +0x18, 0x2e8614\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1a, 0x2e8616\nMOVS            R3, #1                                                 ; +0x1c, 0x2e8618\nSTRB.W          R3, [R0,#0x158]                                        ; +0x1e, 0x2e861a\nMOV             R0, R6; this                                           ; +0x22, 0x2e861e\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x24, 0x2e8620\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x2e8624\nMOV             R2, R6                                                 ; +0x2c, 0x2e8628\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x2e, 0x2e862a\nMOV             R0, R7; this                                           ; +0x30, 0x2e862c\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x32, 0x2e862e\nMOV             R0, R6                                                 ; +0x36, 0x2e8632\nMOV             R1, R7                                                 ; +0x38, 0x2e8634\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x3a, 0x2e8636\nLDR.W           R3, [R4,#0x13C]                                        ; +0x3e, 0x2e863a\nCMP             R8, R3                                                 ; +0x42, 0x2e863e\nBNE             loc_2E86EC                                             ; +0x44, 0x2e8640\nADD.W           R8, R4, #0x140                                         ; +0x46, 0x2e8642\nADD.W           R9, SP, #0x24+var_18                                   ; +0x4a, 0x2e8646\nMOV             R1, R6                                                 ; +0x4e, 0x2e864a\nMOV             R0, R9                                                 ; +0x50, 0x2e864c\nMOV             R2, R8                                                 ; +0x52, 0x2e864e\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x54, 0x2e8650\nLDRB.W          R3, [R4,#0x170]                                        ; +0x58, 0x2e8654\nCBZ             R3, loc_2E8660                                         ; +0x5c, 0x2e8658\nMOVS            R3, #0                                                 ; +0x5e, 0x2e865a\nSTR             R3, [SP,#0x24+var_14]                                  ; +0x60, 0x2e865c\nB               loc_2E866A                                             ; +0x62, 0x2e865e\nLDRB.W          R3, [R4,#0x16F]                                        ; +0x64, 0x2e8660\nCBZ             R3, loc_2E866A                                         ; +0x68, 0x2e8664\nMOVS            R3, #0                                                 ; +0x6a, 0x2e8666\nSTR             R3, [SP,#0x24+var_18]                                  ; +0x6c, 0x2e8668\nLDR.W           R0, [R4,#0x168]                                        ; +0x6e, 0x2e866a\nLDR             R3, [R0]                                               ; +0x72, 0x2e866e\nLDR             R3, [R3,#0x60]                                         ; +0x74, 0x2e8670\nBLX             R3                                                     ; +0x76, 0x2e8672\nMOV             R2, R9                                                 ; +0x78, 0x2e8674\nMOV             R1, R0                                                 ; +0x7a, 0x2e8676\nMOV             R0, R7                                                 ; +0x7c, 0x2e8678\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x7e, 0x2e867a\nMOV             R0, R4; this                                           ; +0x82, 0x2e867e\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0x84, 0x2e8680\nVLDR            S16, [R4,#0x17C]                                       ; +0x88, 0x2e8684\nVMOV            S15, R0                                                ; +0x8c, 0x2e8688\nMOV             R0, R4; this                                           ; +0x90, 0x2e868c\nVSUB.F32        S16, S15, S16                                          ; +0x92, 0x2e868e\nBL              _ZN16CCScrollLayerExt7getMaxYEv; CCScrollLayerExt::getMaxY(void) ; +0x96, 0x2e8692\nVLDR            S14, [SP,#0x24+var_C]                                  ; +0x9a, 0x2e8696\nVLDR            S13, [R4,#0x180]                                       ; +0x9e, 0x2e869a\nVCMPE.F32       S14, S16                                               ; +0xa2, 0x2e869e\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa6, 0x2e86a2\nVMOV            S15, R0                                                ; +0xaa, 0x2e86a6\nBPL             loc_2E86B2                                             ; +0xae, 0x2e86aa\nVSTR            S16, [SP,#0x24+var_C]                                  ; +0xb0, 0x2e86ac\nB               loc_2E86C4                                             ; +0xb4, 0x2e86b0\nVADD.F32        S15, S15, S13                                          ; +0xb6, 0x2e86b2\nVCMPE.F32       S14, S15                                               ; +0xba, 0x2e86b6\nVMRS            APSR_nzcv, FPSCR                                       ; +0xbe, 0x2e86ba\nIT GT                                                                  ; +0xc2, 0x2e86be\nVSTRGT          S15, [SP,#0x24+var_C]                                  ; +0xc4, 0x2e86c0\nLDR.W           R0, [R4,#0x168]                                        ; +0xc8, 0x2e86c4\nMOV             R1, R7                                                 ; +0xcc, 0x2e86c8\nLDR             R3, [R0]                                               ; +0xce, 0x2e86ca\nLDR             R3, [R3,#0x5C]                                         ; +0xd0, 0x2e86cc\nBLX             R3                                                     ; +0xd2, 0x2e86ce\nMOVS            R3, #1                                                 ; +0xd4, 0x2e86d0\nMOV             R0, R8                                                 ; +0xd6, 0x2e86d2\nSTRB.W          R3, [R4,#0x159]                                        ; +0xd8, 0x2e86d4\nMOV             R1, R6                                                 ; +0xdc, 0x2e86d8\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xde, 0x2e86da\nLDR.W           R0, [R4,#0x164]                                        ; +0xe2, 0x2e86de\nCBZ             R0, loc_2E86EC                                         ; +0xe6, 0x2e86e2\nLDR             R3, [R0]                                               ; +0xe8, 0x2e86e4\nMOV             R1, R4                                                 ; +0xea, 0x2e86e6\nLDR             R3, [R3,#8]                                            ; +0xec, 0x2e86e8\nBLX             R3                                                     ; +0xee, 0x2e86ea\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xf0, 0x2e86ec\nLDR             R3, [R5]                                               ; +0xf2, 0x2e86ee\nCMP             R2, R3                                                 ; +0xf4, 0x2e86f0\nBEQ             loc_2E86F8                                             ; +0xf6, 0x2e86f2\nBLX             __stack_chk_fail                                       ; +0xf8, 0x2e86f4\nADD             SP, SP, #0x24 ; '$'                                    ; +0xfc, 0x2e86f8\nVPOP            {D8}                                                   ; +0xfe, 0x2e86fa\nPOP.W           {R4-R9,PC}                                             ; +0x102, 0x2e86fe", "xrefs": ["`non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x2e870c", "TableView::ccTouchMoved @ 0x2ea63c"], "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"}