{"type": "func", "start": 5695160, "end": 5695708, "name": "BoomScrollLayer::ccTouchMoved", "pseudocode": "// \n// BoomScrollLayer::ccTouchMoved from 0x56e6b8 to 0x56e8dc (548 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x56e8e0\n// > <???> @ 0xab6a8\n// > <???> @ 0x1135768\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; // x21\n  cocos2d::CCDirector *v5; // x0\n  float x; // w1\n  _BOOL4 m_cancelAndStealTouch; // w0\n  BoomScrollLayerDelegate *m_delegate; // x0\n  float v9; // s8\n  const cocos2d::CCSize *v10; // x0\n  float v11; // s8\n  int v12; // w21\n  float v13; // s9\n  float v14; // s10\n  cocos2d::CCDirector *v15; // x0\n  float v16; // s0\n  ExtendedLayer *m_extendedLayer; // x20\n  void (__fastcall *setPosition)(ExtendedLayer *__hidden, const cocos2d::CCPoint *); // x21\n  cocos2d::CCPoint v20; // [xsp+68h] [xbp+68h] BYREF\n  cocos2d::CCPoint v21; // [xsp+70h] [xbp+70h] BYREF\n  cocos2d::CCPoint v22; // 0:kr08_8.8\n  cocos2d::CCPoint v23; // 0:s0.4,4:s1.4\n\n  m_touch = a1->m_touch;\n  if ( m_touch == a2 && !*((_BYTE *)&a1->m_clippingRect + 16) )\n  {\n    cocos2d::CCTouch::getLocationInView(m_touch);\n    v5 = cocos2d::CCDirector::sharedDirector();\n    v22 = cocos2d::CCDirector::convertToGL(v5, &v20);\n    cocos2d::CCPoint::operator=(&v20, v22.x, v22.y);\n    if ( a1->m_touchType == 1 )\n      goto LABEL_11;\n    if ( vabds_f32(v20.x, a1->m_touchX) >= a1->m_minimumTouchLengthToSlide )\n    {\n      cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n      a1->m_pageMoving = 0;\n      x = v20.x;\n      m_cancelAndStealTouch = a1->m_cancelAndStealTouch;\n      a1->m_touchType = 1;\n      a1->m_touchX = x;\n      if ( 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      if ( a1->m_touchType == 1 )\n      {\nLABEL_11:\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        v12 = BoomScrollLayer::pageNumberForPosition(a1, v23);\n        BoomScrollLayer::positionForPageWithNumber(a1, v12);\n        v13 = v11 - v21.x;\n        if ( !v12 && v13 > 0.0 || v12 == BoomScrollLayer::getTotalPages(a1) - 1 && v13 < 0.0 )\n        {\n          v14 = v13 * a1->m_width;\n          v15 = cocos2d::CCDirector::sharedDirector();\n          cocos2d::CCDirector::getWinSize(v15);\n          v16 = v13 - (float)(v14 / v21.x);\n        }\n        else\n        {\n          v16 = 0.0;\n        }\n        m_extendedLayer = a1->m_extendedLayer;\n        setPosition = m_extendedLayer->setPosition;\n        cocos2d::CCPoint::CCPoint(&v21, v11 - v16, 0.0);\n        setPosition(m_extendedLayer, &v21);\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::ccTouchMoved from 0x56e6b8 to 0x56e8dc (548 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x56e8e0\n; > <???> @ 0xab6a8\n; > <???> @ 0x1135768\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_80]!                                ; +0x0, 0x56e6b8\nMOV             X29, SP                                                ; +0x4, 0x56e6bc\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x56e6c0\nSTP             D8, D9, [SP,#0x80+var_48]                              ; +0xc, 0x56e6c4\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x56e6c8\nMOV             X20, X0                                                ; +0x14, 0x56e6cc\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x18, 0x56e6d0\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x1c, 0x56e6d4\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x56e6d8\nLDR             X21, [X20,#0x1D0]                                      ; +0x24, 0x56e6dc\nSTR             D10, [SP,#0x80+var_38]                                 ; +0x28, 0x56e6e0\nLDR             X0, [X0]                                               ; +0x2c, 0x56e6e4\nCMP             X21, X1                                                ; +0x30, 0x56e6e8\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x34, 0x56e6ec\nB.EQ            loc_56E724                                             ; +0x38, 0x56e6f0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x56e6f4\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x40, 0x56e6f8\nLDR             X0, [X19]                                              ; +0x44, 0x56e6fc\nCMP             X1, X0                                                 ; +0x48, 0x56e700\nB.NE            loc_56E8D8                                             ; +0x4c, 0x56e704\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x50, 0x56e708\nLDP             D8, D9, [SP,#0x80+var_48]                              ; +0x54, 0x56e70c\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x58, 0x56e710\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x5c, 0x56e714\nLDR             D10, [SP,#0x80+var_38]                                 ; +0x60, 0x56e718\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x64, 0x56e71c\nRET                                                                    ; +0x68, 0x56e720\nLDRB            W0, [X20,#0x26C]                                       ; +0x6c, 0x56e724\nCBNZ            W0, loc_56E6F4                                         ; +0x70, 0x56e728\nADD             X23, X29, #0x80+var_18                                 ; +0x74, 0x56e72c\nMOV             X0, X21; this                                          ; +0x78, 0x56e730\nMOV             X8, X23                                                ; +0x7c, 0x56e734\nSTR             X2, [X29,#0x80+var_28]                                 ; +0x80, 0x56e738\nADD             X22, X29, #0x80+var_10                                 ; +0x84, 0x56e73c\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x88, 0x56e740\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x8c, 0x56e744\nMOV             X8, X22                                                ; +0x90, 0x56e748\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x94, 0x56e74c\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x98, 0x56e750\nMOV             X0, X23                                                ; +0x9c, 0x56e754\nMOV             X1, X22                                                ; +0xa0, 0x56e758\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xa4, 0x56e75c\nLDR             W0, [X20,#0x1C4]                                       ; +0xa8, 0x56e760\nLDR             X2, [X29,#0x80+var_28]                                 ; +0xac, 0x56e764\nCMP             W0, #1                                                 ; +0xb0, 0x56e768\nB.EQ            loc_56E7DC                                             ; +0xb4, 0x56e76c\nLDR             S2, [X20,#0x1A4]                                       ; +0xb8, 0x56e770\nLDR             S0, [X29,#0x80+var_18]                                 ; +0xbc, 0x56e774\nLDR             S1, [X20,#0x224]                                       ; +0xc0, 0x56e778\nFABD            S0, S0, S2                                             ; +0xc4, 0x56e77c\nFCMPE           S0, S1                                                 ; +0xc8, 0x56e780\nB.LT            loc_56E6F4                                             ; +0xcc, 0x56e784\nLDR             X0, [X20,#0x1F0]; this                                 ; +0xd0, 0x56e788\nMOV             W1, #2; int                                            ; +0xd4, 0x56e78c\nSTR             X2, [X29,#0x80+var_28]                                 ; +0xd8, 0x56e790\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0xdc, 0x56e794\nSTRB            WZR, [X20,#0x220]                                      ; +0xe0, 0x56e798\nLDR             W1, [X23]                                              ; +0xe4, 0x56e79c\nLDRB            W0, [X20,#0x230]                                       ; +0xe8, 0x56e7a0\nMOV             W3, #1                                                 ; +0xec, 0x56e7a4\nSTR             W3, [X20,#0x1C4]                                       ; +0xf0, 0x56e7a8\nLDR             X2, [X29,#0x80+var_28]                                 ; +0xf4, 0x56e7ac\nSTR             W1, [X20,#0x1A4]                                       ; +0xf8, 0x56e7b0\nCBNZ            W0, loc_56E8C8                                         ; +0xfc, 0x56e7b4\nLDR             X0, [X20,#0x218]                                       ; +0x100, 0x56e7b8\nCBZ             X0, loc_56E7D0                                         ; +0x104, 0x56e7bc\nLDR             X2, [X0]                                               ; +0x108, 0x56e7c0\nMOV             X1, X20                                                ; +0x10c, 0x56e7c4\nLDR             X2, [X2]                                               ; +0x110, 0x56e7c8\nBLR             X2                                                     ; +0x114, 0x56e7cc\nLDR             W0, [X20,#0x1C4]                                       ; +0x118, 0x56e7d0\nCMP             W0, #1                                                 ; +0x11c, 0x56e7d4\nB.NE            loc_56E6F4                                             ; +0x120, 0x56e7d8\nLDR             W1, [X20,#0x244]                                       ; +0x124, 0x56e7dc\nMOV             X0, X20                                                ; +0x128, 0x56e7e0\nLDR             X2, [X20]                                              ; +0x12c, 0x56e7e4\nNEG             W1, W1                                                 ; +0x130, 0x56e7e8\nSCVTF           S8, W1                                                 ; +0x134, 0x56e7ec\nLDR             X2, [X2,#0x138]                                        ; +0x138, 0x56e7f0\nBLR             X2                                                     ; +0x13c, 0x56e7f4\nLDR             S1, [X20,#0x248]                                       ; +0x140, 0x56e7f8\nLDR             S0, [X0]                                               ; +0x144, 0x56e7fc\nMOV             X0, X22; this                                          ; +0x148, 0x56e800\nLDR             S3, [X29,#0x80+var_18]                                 ; +0x14c, 0x56e804\nFSUB            S0, S0, S1                                             ; +0x150, 0x56e808\nLDR             S2, [X20,#0x1A4]                                       ; +0x154, 0x56e80c\nFMOV            S1, WZR; float                                         ; +0x158, 0x56e810\nFMADD           S8, S8, S0, S3                                         ; +0x15c, 0x56e814\nFSUB            S8, S8, S2                                             ; +0x160, 0x56e818\nFMOV            S0, S8; float                                          ; +0x164, 0x56e81c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x168, 0x56e820\nMOV             X1, X22                                                ; +0x16c, 0x56e824\nMOV             X0, X20                                                ; +0x170, 0x56e828\nBL              _ZN15BoomScrollLayer21pageNumberForPositionEN7cocos2d7CCPointE; BoomScrollLayer::pageNumberForPosition(cocos2d::CCPoint) ; +0x174, 0x56e82c\nMOV             W21, W0                                                ; +0x178, 0x56e830\nMOV             X8, X22                                                ; +0x17c, 0x56e834\nMOV             X0, X20; this                                          ; +0x180, 0x56e838\nMOV             W1, W21; int                                           ; +0x184, 0x56e83c\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x188, 0x56e840\nLDR             S9, [X29,#0x80+var_10]                                 ; +0x18c, 0x56e844\nFSUB            S9, S8, S9                                             ; +0x190, 0x56e848\nCBNZ            W21, loc_56E8A4                                        ; +0x194, 0x56e84c\nFCMPE           S9, #0.0                                               ; +0x198, 0x56e850\nB.LE            loc_56E8A4                                             ; +0x19c, 0x56e854\nLDR             S0, [X20,#0x22C]                                       ; +0x1a0, 0x56e858\nFMUL            S10, S9, S0                                            ; +0x1a4, 0x56e85c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1a8, 0x56e860\nMOV             X8, X22                                                ; +0x1ac, 0x56e864\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x1b0, 0x56e868\nLDR             S0, [X29,#0x80+var_10]                                 ; +0x1b4, 0x56e86c\nFDIV            S0, S10, S0                                            ; +0x1b8, 0x56e870\nFSUB            S0, S9, S0                                             ; +0x1bc, 0x56e874\nLDR             X20, [X20,#0x1F0]                                      ; +0x1c0, 0x56e878\nMOV             X0, X22; this                                          ; +0x1c4, 0x56e87c\nFSUB            S0, S8, S0; float                                      ; +0x1c8, 0x56e880\nFMOV            S1, WZR; float                                         ; +0x1cc, 0x56e884\nLDR             X1, [X20]                                              ; +0x1d0, 0x56e888\nLDR             X21, [X1,#0xB8]                                        ; +0x1d4, 0x56e88c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1d8, 0x56e890\nMOV             X0, X20                                                ; +0x1dc, 0x56e894\nMOV             X1, X22                                                ; +0x1e0, 0x56e898\nBLR             X21                                                    ; +0x1e4, 0x56e89c\nB               loc_56E6F4                                             ; +0x1e8, 0x56e8a0\nMOV             X0, X20; this                                          ; +0x1ec, 0x56e8a4\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x1f0, 0x56e8a8\nSUB             W0, W0, #1                                             ; +0x1f4, 0x56e8ac\nCMP             W21, W0                                                ; +0x1f8, 0x56e8b0\nB.NE            loc_56E8C0                                             ; +0x1fc, 0x56e8b4\nFCMPE           S9, #0.0                                               ; +0x200, 0x56e8b8\nB.MI            loc_56E858                                             ; +0x204, 0x56e8bc\nFMOV            S0, WZR                                                ; +0x208, 0x56e8c0\nB               loc_56E878                                             ; +0x20c, 0x56e8c4\nMOV             X0, X20                                                ; +0x210, 0x56e8c8\nMOV             X1, X21                                                ; +0x214, 0x56e8cc\nBL              _ZN15BoomScrollLayer19cancelAndStoleTouchEPN7cocos2d7CCTouchEPNS0_7CCEventE; BoomScrollLayer::cancelAndStoleTouch(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x218, 0x56e8d0\nB               loc_56E7B8                                             ; +0x21c, 0x56e8d4\nBL              .__stack_chk_fail                                      ; +0x220, 0x56e8d8", "xrefs": ["`non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x56e8e0", "<???> @ 0xab6a8", "<???> @ 0x1135768"], "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"}