{"type": "func", "start": 6858816, "end": 6859364, "name": "BoomScrollLayer::ccTouchMoved", "pseudocode": "// \n// BoomScrollLayer::ccTouchMoved from 0x68a840 to 0x68aa64 (548 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x68aa68\n// > <???> @ 0xe0a10\n// > <???> @ 0x1412df8\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:50:32 +0000\n// \n\n__int64 __fastcall BoomScrollLayer::ccTouchMoved(__int64 a1, cocos2d::CCTouch *a2, __int64 a3)\n{\n  cocos2d::CCTouch *v4; // x21\n  cocos2d::CCDirector *LocationInView; // x0\n  cocos2d::CCDirector *v7; // x0\n  int v8; // w1\n  int v9; // w0\n  void (__fastcall ***v10)(_QWORD, __int64); // x0\n  float v11; // s8\n  float *v12; // x0\n  float v13; // s8\n  int v14; // w21\n  cocos2d::CCPoint *v15; // x0\n  float v16; // s9\n  float v17; // s10\n  cocos2d::CCDirector *v18; // x0\n  float v19; // s0\n  __int64 v20; // x20\n  void (__fastcall *v21)(__int64, __int64 *); // x21\n  __int64 v23; // [xsp+68h] [xbp+68h] BYREF\n  __int64 v24; // [xsp+70h] [xbp+70h] BYREF\n\n  v4 = *(cocos2d::CCTouch **)(a1 + 472);\n  if ( v4 == a2 && !*(_BYTE *)(a1 + 628) )\n  {\n    LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v23, v4);\n    v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView);\n    cocos2d::CCDirector::convertToGL(v7, (const cocos2d::CCPoint *)&v23);\n    cocos2d::CCPoint::operator=(&v23, &v24);\n    if ( *(_DWORD *)(a1 + 460) == 1 )\n      goto LABEL_11;\n    if ( vabds_f32(*(float *)&v23, *(float *)(a1 + 428)) >= *(float *)(a1 + 556) )\n    {\n      cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(a1 + 504), 2);\n      *(_BYTE *)(a1 + 552) = 0;\n      v8 = v23;\n      v9 = *(unsigned __int8 *)(a1 + 568);\n      *(_DWORD *)(a1 + 460) = 1;\n      *(_DWORD *)(a1 + 428) = v8;\n      if ( v9 )\n        BoomScrollLayer::cancelAndStoleTouch((BoomScrollLayer *)a1, v4, a3);\n      v10 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 544);\n      if ( v10 )\n        (**v10)(v10, a1);\n      if ( *(_DWORD *)(a1 + 460) == 1 )\n      {\nLABEL_11:\n        v11 = (float)-*(_DWORD *)(a1 + 588);\n        v12 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);\n        v13 = (float)(*(float *)&v23 + (float)(v11 * (float)(*v12 - *(float *)(a1 + 592)))) - *(float *)(a1 + 428);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, v13, 0.0);\n        v14 = BoomScrollLayer::pageNumberForPosition((cocos2d::CCArray **)a1);\n        v15 = BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)a1, v14, (cocos2d::CCPoint *)&v24);\n        v16 = v13 - *(float *)&v24;\n        if ( !v14 && v16 > 0.0\n          || (v15 = (cocos2d::CCPoint *)((unsigned int)BoomScrollLayer::getTotalPages((cocos2d::CCArray **)a1) - 1),\n              v14 == (_DWORD)v15)\n          && v16 < 0.0 )\n        {\n          v17 = v16 * *(float *)(a1 + 564);\n          v18 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v15);\n          cocos2d::CCDirector::getWinSize(&v24, v18);\n          v19 = v16 - (float)(v17 / *(float *)&v24);\n        }\n        else\n        {\n          v19 = 0.0;\n        }\n        v20 = *(_QWORD *)(a1 + 504);\n        v21 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v20 + 184LL);\n        cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v24, v13 - v19, 0.0);\n        v21(v20, &v24);\n      }\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchMoved from 0x68a840 to 0x68aa64 (548 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x68aa68\n; > <???> @ 0xe0a10\n; > <???> @ 0x1412df8\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:50:32 +0000\n; \nSTP             X29, X30, [SP,#var_80]!                                ; +0x0, 0x68a840\nMOV             X29, SP                                                ; +0x4, 0x68a844\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x8, 0x68a848\nSTP             D8, D9, [SP,#0x80+var_48]                              ; +0xc, 0x68a84c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x68a850\nMOV             X20, X0                                                ; +0x14, 0x68a854\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x18, 0x68a858\nSTR             X23, [SP,#0x80+var_50]                                 ; +0x1c, 0x68a85c\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x68a860\nSTR             D10, [SP,#0x80+var_38]                                 ; +0x24, 0x68a864\nLDR             X21, [X20,#0x1D8]                                      ; +0x28, 0x68a868\nLDR             X0, [X0]                                               ; +0x2c, 0x68a86c\nCMP             X21, X1                                                ; +0x30, 0x68a870\nSTR             X0, [X29,#0x80+var_8]                                  ; +0x34, 0x68a874\nB.EQ            loc_68A8AC                                             ; +0x38, 0x68a878\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x68a87c\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x40, 0x68a880\nLDR             X0, [X19]                                              ; +0x44, 0x68a884\nCMP             X1, X0                                                 ; +0x48, 0x68a888\nB.NE            loc_68AA60                                             ; +0x4c, 0x68a88c\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x50, 0x68a890\nLDP             D8, D9, [SP,#0x80+var_48]                              ; +0x54, 0x68a894\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x58, 0x68a898\nLDR             X23, [SP,#0x80+var_50]                                 ; +0x5c, 0x68a89c\nLDR             D10, [SP,#0x80+var_38]                                 ; +0x60, 0x68a8a0\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x64, 0x68a8a4\nRET                                                                    ; +0x68, 0x68a8a8\nLDRB            W0, [X20,#0x274]                                       ; +0x6c, 0x68a8ac\nCBNZ            W0, loc_68A87C                                         ; +0x70, 0x68a8b0\nADD             X23, X29, #0x80+var_18                                 ; +0x74, 0x68a8b4\nMOV             X0, X21; this                                          ; +0x78, 0x68a8b8\nMOV             X8, X23                                                ; +0x7c, 0x68a8bc\nSTR             X2, [X29,#0x80+var_28]                                 ; +0x80, 0x68a8c0\nADD             X22, X29, #0x80+var_10                                 ; +0x84, 0x68a8c4\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x88, 0x68a8c8\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x8c, 0x68a8cc\nMOV             X8, X22                                                ; +0x90, 0x68a8d0\nMOV             X1, X23; cocos2d::CCPoint *                            ; +0x94, 0x68a8d4\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x98, 0x68a8d8\nMOV             X0, X23                                                ; +0x9c, 0x68a8dc\nMOV             X1, X22                                                ; +0xa0, 0x68a8e0\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xa4, 0x68a8e4\nLDR             W0, [X20,#0x1CC]                                       ; +0xa8, 0x68a8e8\nLDR             X2, [X29,#0x80+var_28]                                 ; +0xac, 0x68a8ec\nCMP             W0, #1                                                 ; +0xb0, 0x68a8f0\nB.EQ            loc_68A964                                             ; +0xb4, 0x68a8f4\nLDR             S2, [X20,#0x1AC]                                       ; +0xb8, 0x68a8f8\nLDR             S0, [X29,#0x80+var_18]                                 ; +0xbc, 0x68a8fc\nLDR             S1, [X20,#0x22C]                                       ; +0xc0, 0x68a900\nFABD            S0, S0, S2                                             ; +0xc4, 0x68a904\nFCMPE           S0, S1                                                 ; +0xc8, 0x68a908\nB.LT            loc_68A87C                                             ; +0xcc, 0x68a90c\nLDR             X0, [X20,#0x1F8]; this                                 ; +0xd0, 0x68a910\nMOV             W1, #2; int                                            ; +0xd4, 0x68a914\nSTR             X2, [X29,#0x80+var_28]                                 ; +0xd8, 0x68a918\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0xdc, 0x68a91c\nSTRB            WZR, [X20,#0x228]                                      ; +0xe0, 0x68a920\nLDR             W1, [X23]                                              ; +0xe4, 0x68a924\nLDRB            W0, [X20,#0x238]                                       ; +0xe8, 0x68a928\nMOV             W3, #1                                                 ; +0xec, 0x68a92c\nSTR             W3, [X20,#0x1CC]                                       ; +0xf0, 0x68a930\nLDR             X2, [X29,#0x80+var_28]                                 ; +0xf4, 0x68a934\nSTR             W1, [X20,#0x1AC]                                       ; +0xf8, 0x68a938\nCBNZ            W0, loc_68AA50                                         ; +0xfc, 0x68a93c\nLDR             X0, [X20,#0x220]                                       ; +0x100, 0x68a940\nCBZ             X0, loc_68A958                                         ; +0x104, 0x68a944\nLDR             X2, [X0]                                               ; +0x108, 0x68a948\nMOV             X1, X20                                                ; +0x10c, 0x68a94c\nLDR             X2, [X2]                                               ; +0x110, 0x68a950\nBLR             X2                                                     ; +0x114, 0x68a954\nLDR             W0, [X20,#0x1CC]                                       ; +0x118, 0x68a958\nCMP             W0, #1                                                 ; +0x11c, 0x68a95c\nB.NE            loc_68A87C                                             ; +0x120, 0x68a960\nLDR             W1, [X20,#0x24C]                                       ; +0x124, 0x68a964\nMOV             X0, X20                                                ; +0x128, 0x68a968\nLDR             X2, [X20]                                              ; +0x12c, 0x68a96c\nNEG             W1, W1                                                 ; +0x130, 0x68a970\nSCVTF           S8, W1                                                 ; +0x134, 0x68a974\nLDR             X2, [X2,#0x148]                                        ; +0x138, 0x68a978\nBLR             X2                                                     ; +0x13c, 0x68a97c\nLDR             S1, [X20,#0x250]                                       ; +0x140, 0x68a980\nLDR             S0, [X0]                                               ; +0x144, 0x68a984\nMOV             X0, X22; this                                          ; +0x148, 0x68a988\nLDR             S3, [X29,#0x80+var_18]                                 ; +0x14c, 0x68a98c\nFSUB            S0, S0, S1                                             ; +0x150, 0x68a990\nLDR             S2, [X20,#0x1AC]                                       ; +0x154, 0x68a994\nFMOV            S1, WZR; float                                         ; +0x158, 0x68a998\nFMADD           S8, S8, S0, S3                                         ; +0x15c, 0x68a99c\nFSUB            S8, S8, S2                                             ; +0x160, 0x68a9a0\nFMOV            S0, S8; float                                          ; +0x164, 0x68a9a4\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x168, 0x68a9a8\nMOV             X1, X22                                                ; +0x16c, 0x68a9ac\nMOV             X0, X20                                                ; +0x170, 0x68a9b0\nBL              _ZN15BoomScrollLayer21pageNumberForPositionEN7cocos2d7CCPointE; BoomScrollLayer::pageNumberForPosition(cocos2d::CCPoint) ; +0x174, 0x68a9b4\nMOV             W21, W0                                                ; +0x178, 0x68a9b8\nMOV             X8, X22                                                ; +0x17c, 0x68a9bc\nMOV             X0, X20; this                                          ; +0x180, 0x68a9c0\nMOV             W1, W21; int                                           ; +0x184, 0x68a9c4\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x188, 0x68a9c8\nLDR             S9, [X29,#0x80+var_10]                                 ; +0x18c, 0x68a9cc\nFSUB            S9, S8, S9                                             ; +0x190, 0x68a9d0\nCBNZ            W21, loc_68AA2C                                        ; +0x194, 0x68a9d4\nFCMPE           S9, #0.0                                               ; +0x198, 0x68a9d8\nB.LE            loc_68AA2C                                             ; +0x19c, 0x68a9dc\nLDR             S0, [X20,#0x234]                                       ; +0x1a0, 0x68a9e0\nFMUL            S10, S9, S0                                            ; +0x1a4, 0x68a9e4\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x1a8, 0x68a9e8\nMOV             X8, X22                                                ; +0x1ac, 0x68a9ec\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x1b0, 0x68a9f0\nLDR             S0, [X29,#0x80+var_10]                                 ; +0x1b4, 0x68a9f4\nFDIV            S0, S10, S0                                            ; +0x1b8, 0x68a9f8\nFSUB            S0, S9, S0                                             ; +0x1bc, 0x68a9fc\nLDR             X20, [X20,#0x1F8]                                      ; +0x1c0, 0x68aa00\nMOV             X0, X22; this                                          ; +0x1c4, 0x68aa04\nFSUB            S0, S8, S0; float                                      ; +0x1c8, 0x68aa08\nFMOV            S1, WZR; float                                         ; +0x1cc, 0x68aa0c\nLDR             X1, [X20]                                              ; +0x1d0, 0x68aa10\nLDR             X21, [X1,#0xB8]                                        ; +0x1d4, 0x68aa14\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x1d8, 0x68aa18\nMOV             X0, X20                                                ; +0x1dc, 0x68aa1c\nMOV             X1, X22                                                ; +0x1e0, 0x68aa20\nBLR             X21                                                    ; +0x1e4, 0x68aa24\nB               loc_68A87C                                             ; +0x1e8, 0x68aa28\nMOV             X0, X20; this                                          ; +0x1ec, 0x68aa2c\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x1f0, 0x68aa30\nSUB             W0, W0, #1                                             ; +0x1f4, 0x68aa34\nCMP             W21, W0                                                ; +0x1f8, 0x68aa38\nB.NE            loc_68AA48                                             ; +0x1fc, 0x68aa3c\nFCMPE           S9, #0.0                                               ; +0x200, 0x68aa40\nB.MI            loc_68A9E0                                             ; +0x204, 0x68aa44\nFMOV            S0, WZR                                                ; +0x208, 0x68aa48\nB               loc_68AA00                                             ; +0x20c, 0x68aa4c\nMOV             X0, X20                                                ; +0x210, 0x68aa50\nMOV             X1, X21                                                ; +0x214, 0x68aa54\nBL              _ZN15BoomScrollLayer19cancelAndStoleTouchEPN7cocos2d7CCTouchEPNS0_7CCEventE; BoomScrollLayer::cancelAndStoleTouch(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x218, 0x68aa58\nB               loc_68A940                                             ; +0x21c, 0x68aa5c\nBL              .__stack_chk_fail                                      ; +0x220, 0x68aa60", "xrefs": ["`non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x68aa68", "<???> @ 0xe0a10", "<???> @ 0x1412df8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}