{"type": "func", "start": 3025424, "end": 3025824, "name": "BoomScrollLayer::ccTouchMoved", "pseudocode": "// \n// BoomScrollLayer::ccTouchMoved from 0x2e2a10 to 0x2e2ba0 (400 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x2e2bac\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 BoomScrollLayer::ccTouchMoved(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCTouch *m_touch; // r8\n  cocos2d::CCDirector *v6; // r0\n  float x; // r3\n  BoomScrollLayerDelegate *m_delegate; // r0\n  float v9; // s16\n  const cocos2d::CCSize *v10; // r0\n  float v11; // s17\n  cocos2d::CCPoint v12; // r1\n  int v13; // r7\n  float v14; // s16\n  float v15; // s16\n  ExtendedLayer *m_extendedLayer; // r4\n  void (__fastcall *setPosition)(ExtendedLayer *__hidden, const cocos2d::CCPoint *); // r7\n  float m_width; // s18\n  cocos2d::CCDirector *v19; // r0\n  cocos2d::CCPoint v20; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v21; // [sp+Ch] [bp-Ch] BYREF\n\n  m_touch = a1->m_touch;\n  if ( m_touch == a2 && !*((_BYTE *)&a1->m_clippingRect + 16) )\n  {\n    cocos2d::CCTouch::getLocationInView(&v20, a2);\n    v6 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::convertToGL(&v21, v6, &v20);\n    cocos2d::CCPoint::operator=(&v20, &v21);\n    if ( a1->m_touchType != 1 && fabsf(v20.x - a1->m_touchX) >= a1->m_minimumTouchLengthToSlide )\n    {\n      cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n      a1->m_touchType = 1;\n      x = v20.x;\n      a1->m_pageMoving = 0;\n      a1->m_touchX = x;\n      if ( a1->m_cancelAndStealTouch )\n        BoomScrollLayer::cancelAndStoleTouch(a1, m_touch, a3);\n      m_delegate = a1->m_delegate;\n      if ( m_delegate )\n        m_delegate->scrollLayerScrollingStarted(m_delegate, a1);\n    }\n    if ( a1->m_touchType == 1 )\n    {\n      v9 = (float)-a1->m_page;\n      v10 = a1->getContentSize(a1);\n      v11 = (float)(v20.x + (float)(v9 * (float)(v10->width - a1->m_pageOffset))) - a1->m_touchX;\n      cocos2d::CCPoint::CCPoint(&v21, v11, 0.0);\n      LODWORD(v12.x) = &v21;\n      v13 = BoomScrollLayer::pageNumberForPosition(a1, v12);\n      BoomScrollLayer::positionForPageWithNumber(&v21, a1, v13);\n      v14 = v11 - v21.x;\n      if ( !v13 && v14 > 0.0 || v13 == BoomScrollLayer::getTotalPages(a1) - 1 && v14 < 0.0 )\n      {\n        m_width = a1->m_width;\n        v19 = cocos2d::CCDirector::sharedDirector();\n        cocos2d::CCDirector::getWinSize((cocos2d::CCSize *)&v21, v19);\n        v15 = v14 - (float)((float)(v14 * m_width) / v21.x);\n      }\n      else\n      {\n        v15 = 0.0;\n      }\n      m_extendedLayer = a1->m_extendedLayer;\n      setPosition = m_extendedLayer->setPosition;\n      cocos2d::CCPoint::CCPoint(&v21, v11 - v15, 0.0);\n      setPosition(m_extendedLayer, &v21);\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::ccTouchMoved from 0x2e2a10 to 0x2e2ba0 (400 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x2e2bac\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-R10,LR}                                            ; +0x0, 0x2e2a10\nMOV             R10, R2                                                ; +0x4, 0x2e2a14\nLDR             R2, =(__stack_chk_guard_ptr - 0x2E2A22)                ; +0x6, 0x2e2a16\nMOV             R4, R0                                                 ; +0x8, 0x2e2a18\nVPUSH           {D8-D9}                                                ; +0xa, 0x2e2a1a\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e2a1e\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x10, 0x2e2a20\nLDR.W           R8, [R0,#0x164]                                        ; +0x12, 0x2e2a22\nLDR             R3, [R2]                                               ; +0x16, 0x2e2a26\nCMP             R8, R1                                                 ; +0x18, 0x2e2a28\nSUB             SP, SP, #0x18                                          ; +0x1a, 0x2e2a2a\nMOV             R6, R2                                                 ; +0x1c, 0x2e2a2c\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1e, 0x2e2a2e\nBNE.W           loc_2E2B8A                                             ; +0x20, 0x2e2a30\nLDRB.W          R9, [R0,#0x1EC]                                        ; +0x24, 0x2e2a34\nCMP.W           R9, #0                                                 ; +0x28, 0x2e2a38\nBNE.W           loc_2E2B8A                                             ; +0x2c, 0x2e2a3c\nADD             R7, SP, #0x18+var_14                                   ; +0x30, 0x2e2a40\nADD             R5, SP, #0x18+var_C                                    ; +0x32, 0x2e2a42\nMOV             R0, R7; this                                           ; +0x34, 0x2e2a44\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x36, 0x2e2a46\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3a, 0x2e2a4a\nMOV             R2, R7                                                 ; +0x3e, 0x2e2a4e\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x40, 0x2e2a50\nMOV             R0, R5; this                                           ; +0x42, 0x2e2a52\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x44, 0x2e2a54\nMOV             R0, R7                                                 ; +0x48, 0x2e2a58\nMOV             R1, R5                                                 ; +0x4a, 0x2e2a5a\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x4c, 0x2e2a5c\nLDR.W           R3, [R4,#0x15C]                                        ; +0x50, 0x2e2a60\nCMP             R3, #1                                                 ; +0x54, 0x2e2a64\nBEQ             loc_2E2ABE                                             ; +0x56, 0x2e2a66\nVLDR            S14, [R4,#0x144]                                       ; +0x58, 0x2e2a68\nVLDR            S15, [SP,#0x18+var_14]                                 ; +0x5c, 0x2e2a6c\nVSUB.F32        S15, S15, S14                                          ; +0x60, 0x2e2a70\nVLDR            S14, [R4,#0x1AC]                                       ; +0x64, 0x2e2a74\nVABS.F32        S15, S15                                               ; +0x68, 0x2e2a78\nVCMPE.F32       S15, S14                                               ; +0x6c, 0x2e2a7c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x70, 0x2e2a80\nBLT             loc_2E2ABE                                             ; +0x74, 0x2e2a84\nLDR.W           R0, [R4,#0x180]; this                                  ; +0x76, 0x2e2a86\nMOVS            R1, #2; int                                            ; +0x7a, 0x2e2a8a\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x7c, 0x2e2a8c\nMOVS            R3, #1                                                 ; +0x80, 0x2e2a90\nSTR.W           R3, [R4,#0x15C]                                        ; +0x82, 0x2e2a92\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x86, 0x2e2a96\nSTRB.W          R9, [R4,#0x1A8]                                        ; +0x88, 0x2e2a98\nSTR.W           R3, [R4,#0x144]                                        ; +0x8c, 0x2e2a9c\nLDRB.W          R3, [R4,#0x1B8]                                        ; +0x90, 0x2e2aa0\nCBZ             R3, loc_2E2AB0                                         ; +0x94, 0x2e2aa4\nMOV             R0, R4                                                 ; +0x96, 0x2e2aa6\nMOV             R1, R8                                                 ; +0x98, 0x2e2aa8\nMOV             R2, R10                                                ; +0x9a, 0x2e2aaa\nBL              _ZN15BoomScrollLayer19cancelAndStoleTouchEPN7cocos2d7CCTouchEPNS0_7CCEventE; BoomScrollLayer::cancelAndStoleTouch(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x9c, 0x2e2aac\nLDR.W           R0, [R4,#0x1A4]                                        ; +0xa0, 0x2e2ab0\nCBZ             R0, loc_2E2ABE                                         ; +0xa4, 0x2e2ab4\nLDR             R3, [R0]                                               ; +0xa6, 0x2e2ab6\nMOV             R1, R4                                                 ; +0xa8, 0x2e2ab8\nLDR             R3, [R3]                                               ; +0xaa, 0x2e2aba\nBLX             R3                                                     ; +0xac, 0x2e2abc\nLDR.W           R3, [R4,#0x15C]                                        ; +0xae, 0x2e2abe\nCMP             R3, #1                                                 ; +0xb2, 0x2e2ac2\nBNE             loc_2E2B8A                                             ; +0xb4, 0x2e2ac4\nLDR.W           R3, [R4,#0x1CC]                                        ; +0xb6, 0x2e2ac6\nMOV             R0, R4                                                 ; +0xba, 0x2e2aca\nNEGS            R3, R3                                                 ; +0xbc, 0x2e2acc\nVMOV            S15, R3                                                ; +0xbe, 0x2e2ace\nLDR             R3, [R4]                                               ; +0xc2, 0x2e2ad2\nVCVT.F32.S32    S16, S15                                               ; +0xc4, 0x2e2ad4\nLDR.W           R3, [R3,#0x9C]                                         ; +0xc8, 0x2e2ad8\nBLX             R3                                                     ; +0xcc, 0x2e2adc\nVLDR            S14, [R4,#0x1D0]                                       ; +0xce, 0x2e2ade\nMOVS            R2, #0; float                                          ; +0xd2, 0x2e2ae2\nVLDR            S17, [SP,#0x18+var_14]                                 ; +0xd4, 0x2e2ae4\nVLDR            S15, [R0]                                              ; +0xd8, 0x2e2ae8\nMOV             R0, R5; this                                           ; +0xdc, 0x2e2aec\nVSUB.F32        S15, S15, S14                                          ; +0xde, 0x2e2aee\nVMLA.F32        S17, S16, S15                                          ; +0xe2, 0x2e2af2\nVLDR            S15, [R4,#0x144]                                       ; +0xe6, 0x2e2af6\nVSUB.F32        S17, S17, S15                                          ; +0xea, 0x2e2afa\nVMOV            R1, S17; float                                         ; +0xee, 0x2e2afe\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf2, 0x2e2b02\nMOV             R1, R5                                                 ; +0xf6, 0x2e2b06\nMOV             R0, R4                                                 ; +0xf8, 0x2e2b08\nBL              _ZN15BoomScrollLayer21pageNumberForPositionEN7cocos2d7CCPointE; BoomScrollLayer::pageNumberForPosition(cocos2d::CCPoint) ; +0xfa, 0x2e2b0a\nMOV             R1, R4; int                                            ; +0xfe, 0x2e2b0e\nMOV             R7, R0                                                 ; +0x100, 0x2e2b10\nMOV             R0, R5; this                                           ; +0x102, 0x2e2b12\nMOV             R2, R7                                                 ; +0x104, 0x2e2b14\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x106, 0x2e2b16\nVLDR            S16, [SP,#0x18+var_C]                                  ; +0x10a, 0x2e2b1a\nVSUB.F32        S16, S17, S16                                          ; +0x10e, 0x2e2b1e\nCBNZ            R7, loc_2E2B2E                                         ; +0x112, 0x2e2b22\nVCMPE.F32       S16, #0.0                                              ; +0x114, 0x2e2b24\nVMRS            APSR_nzcv, FPSCR                                       ; +0x118, 0x2e2b28\nBGT             loc_2E2B68                                             ; +0x11c, 0x2e2b2c\nMOV             R0, R4; this                                           ; +0x11e, 0x2e2b2e\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x120, 0x2e2b30\nSUBS            R0, #1                                                 ; +0x124, 0x2e2b34\nCMP             R7, R0                                                 ; +0x126, 0x2e2b36\nBNE             loc_2E2B44                                             ; +0x128, 0x2e2b38\nVCMPE.F32       S16, #0.0                                              ; +0x12a, 0x2e2b3a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x12e, 0x2e2b3e\nBMI             loc_2E2B68                                             ; +0x132, 0x2e2b42\nVLDR            S16, =0.0                                              ; +0x134, 0x2e2b44\nLDR.W           R4, [R4,#0x180]                                        ; +0x138, 0x2e2b48\nMOV             R0, R5; this                                           ; +0x13c, 0x2e2b4c\nMOVS            R2, #0; float                                          ; +0x13e, 0x2e2b4e\nVSUB.F32        S15, S17, S16                                          ; +0x140, 0x2e2b50\nLDR             R3, [R4]                                               ; +0x144, 0x2e2b54\nLDR             R7, [R3,#0x5C]                                         ; +0x146, 0x2e2b56\nVMOV            R1, S15; float                                         ; +0x148, 0x2e2b58\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x14c, 0x2e2b5c\nMOV             R0, R4                                                 ; +0x150, 0x2e2b60\nMOV             R1, R5                                                 ; +0x152, 0x2e2b62\nBLX             R7                                                     ; +0x154, 0x2e2b64\nB               loc_2E2B8A                                             ; +0x156, 0x2e2b66\nVLDR            S18, [R4,#0x1B4]                                       ; +0x158, 0x2e2b68\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x15c, 0x2e2b6c\nVMUL.F32        S18, S16, S18                                          ; +0x160, 0x2e2b70\nMOV             R1, R0                                                 ; +0x164, 0x2e2b74\nMOV             R0, R5; this                                           ; +0x166, 0x2e2b76\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x168, 0x2e2b78\nVLDR            S15, [SP,#0x18+var_C]                                  ; +0x16c, 0x2e2b7c\nVDIV.F32        S18, S18, S15                                          ; +0x170, 0x2e2b80\nVSUB.F32        S16, S16, S18                                          ; +0x174, 0x2e2b84\nB               loc_2E2B48                                             ; +0x178, 0x2e2b88\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x17a, 0x2e2b8a\nLDR             R3, [R6]                                               ; +0x17c, 0x2e2b8c\nCMP             R2, R3                                                 ; +0x17e, 0x2e2b8e\nBEQ             loc_2E2B96                                             ; +0x180, 0x2e2b90\nBLX             __stack_chk_fail                                       ; +0x182, 0x2e2b92\nADD             SP, SP, #0x18                                          ; +0x186, 0x2e2b96\nVPOP            {D8-D9}                                                ; +0x188, 0x2e2b98\nPOP.W           {R4-R10,PC}                                            ; +0x18c, 0x2e2b9c", "xrefs": ["`non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x2e2bac"], "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"}