{"type": "func", "start": 4296197596, "end": 4296198140, "name": "BoomScrollLayer::ccTouchMoved", "pseudocode": "// \n// BoomScrollLayer::ccTouchMoved from 0x10012c5dc to 0x10012c7fc (544 bytes)\n// \n// 2 xrefs:\n// > sub_10012C7FC @ 0x10012c800\n// > <???> @ 0x100791c90\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 __fastcall BoomScrollLayer::ccTouchMoved(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCPoint v3; // x29\n  cocos2d::CCPoint v4; // x30\n  cocos2d::CCPoint v5; // d8\n  cocos2d::CCPoint v6; // d9\n  cocos2d::CCPoint v7; // d10\n  cocos2d::CCPoint v8; // d11\n  cocos2d::CCDirector *v12; // x0\n  __n128 v13; // q0\n  BoomScrollLayerDelegate *m_delegate; // x0\n  float v15; // s8\n  float *v16; // x0\n  float v17; // s8\n  float v18; // s9\n  __n128 v19; // q1\n  __n128 v20; // q0\n  int v21; // w20\n  __n128 v22; // q0\n  __n128 v23; // q1\n  float v24; // s10\n  __int64 v25; // x8\n  __n128 v26; // q0\n  __n128 v27; // q1\n  float v28; // s9\n  cocos2d::CCDirector *v29; // x0\n  ExtendedLayer *m_extendedLayer; // x19\n  double v31; // [xsp+0h] [xbp-60h] BYREF\n  cocos2d::CCPoint v32[11]; // [xsp+8h] [xbp-58h] BYREF\n  cocos2d::CCPoint v33; // 0:s0.4,4:s1.4\n\n  if ( a1->m_touch == a2 )\n  {\n    v32[1] = v8;\n    v32[2] = v7;\n    v32[3] = v6;\n    v32[4] = v5;\n    v32[9] = v3;\n    v32[10] = v4;\n    if ( (*(_BYTE *)(&a1->m_clippingRect + 1) & 1) == 0 )\n    {\n      cocos2d::CCTouch::getLocationInView(a2);\n      v12 = cocos2d::CCDirector::sharedDirector();\n      cocos2d::CCDirector::convertToGL(v12, v32);\n      v13.n128_f64[0] = sub_1000229D0(v32, &v31);\n      if ( a1->m_touchType == 1 )\n        goto LABEL_10;\n      v13.n128_f32[0] = vabds_f32(v32[0].x, a1->m_touchX);\n      if ( v13.n128_f32[0] >= a1->m_minimumTouchLengthToSlide )\n      {\n        cocos2d::CCNode::stopActionByTag(a1->m_extendedLayer, 2);\n        a1->m_pageMoving = 0;\n        a1->m_touchType = 1;\n        v13.n128_u32[0] = LODWORD(v32[0].x);\n        a1->m_touchX = v32[0].x;\n        if ( a1->m_cancelAndStealTouch )\n          BoomScrollLayer::cancelAndStoleTouch(a1, a2, a3);\n        m_delegate = a1->m_delegate;\n        if ( m_delegate )\n          ((void (__fastcall *)(BoomScrollLayerDelegate *, BoomScrollLayer *))m_delegate->scrollLayerScrollingStarted)(\n            m_delegate,\n            a1);\n      }\n      if ( a1->m_touchType == 1 )\n      {\nLABEL_10:\n        v15 = (float)-a1->m_page;\n        v16 = (float *)((__int64 (__fastcall *)(BoomScrollLayer *, __n128))a1->getContentSize)(a1, v13);\n        v17 = (float)(v32[0].x + (float)(v15 * (float)(*v16 - a1->m_pageOffset))) - a1->m_touchX;\n        v18 = 0.0;\n        v19.n128_u32[0] = 0;\n        v20.n128_f32[0] = v17;\n        sub_100022980(v20, v19, &v31);\n        v21 = BoomScrollLayer::pageNumberForPosition(a1, v33);\n        v22.n128_f32[0] = (float)(*(float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1)\n                                - a1->m_pageOffset)\n                        * (float)-v21;\n        v23.n128_u32[0] = 0;\n        sub_100022980(v22, v23, &v31);\n        v24 = v17 - *(float *)&v31;\n        if ( !v21 && v24 > 0.0 )\n          goto LABEL_16;\n        v25 = 472;\n        if ( a1->m_dynamic )\n          v25 = 440;\n        if ( v21 == (unsigned int)sub_10024A36C(*(BoomScrollLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                                         + v25))\n                  - 1\n          && v24 < 0.0 )\n        {\nLABEL_16:\n          v28 = v24 * a1->m_width;\n          v29 = cocos2d::CCDirector::sharedDirector();\n          cocos2d::CCDirector::getWinSize(v29);\n          v18 = v24 - (float)(v28 / *(float *)&v31);\n        }\n        m_extendedLayer = a1->m_extendedLayer;\n        v26.n128_f32[0] = v17 - v18;\n        v27.n128_u32[0] = 0;\n        sub_100022980(v26, v27, &v31);\n        ((void (__fastcall *)(ExtendedLayer *, double *))m_extendedLayer->setPosition)(m_extendedLayer, &v31);\n      }\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::ccTouchMoved from 0x10012c5dc to 0x10012c7fc (544 bytes)\n; \n; 2 xrefs:\n; > sub_10012C7FC @ 0x10012c800\n; > <???> @ 0x100791c90\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\nLDR             X8, [X0,#0x1D0]                                        ; +0x0, 0x10012c5dc\nCMP             X8, X1                                                 ; +0x4, 0x10012c5e0\nB.EQ            loc_10012C5EC                                          ; +0x8, 0x10012c5e4\nRET                                                                    ; +0xc, 0x10012c5e8\nSUB             SP, SP, #0x60 ; '`'                                    ; +0x10, 0x10012c5ec\nSTP             D11, D10, [SP,#0x60+var_50]                            ; +0x14, 0x10012c5f0\nSTP             D9, D8, [SP,#0x60+var_40]                              ; +0x18, 0x10012c5f4\nSTP             X22, X21, [SP,#0x60+var_30]                            ; +0x1c, 0x10012c5f8\nSTP             X20, X19, [SP,#0x60+var_20]                            ; +0x20, 0x10012c5fc\nSTP             X29, X30, [SP,#0x60+var_10]                            ; +0x24, 0x10012c600\nADD             X29, SP, #0x60+var_10                                  ; +0x28, 0x10012c604\nMOV             X19, X0                                                ; +0x2c, 0x10012c608\nLDRB            W8, [X0,#0x26C]                                        ; +0x30, 0x10012c60c\nTBNZ            W8, #0, loc_10012C7E0                                  ; +0x34, 0x10012c610\nMOV             X20, X2                                                ; +0x38, 0x10012c614\nMOV             X21, X1                                                ; +0x3c, 0x10012c618\nADD             X8, SP, #0x60+var_58                                   ; +0x40, 0x10012c61c\nMOV             X0, X1                                                 ; +0x44, 0x10012c620\nBL              cocos2d__CCTouch__getLocationInView                    ; +0x48, 0x10012c624\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x4c, 0x10012c628\nMOV             X8, SP                                                 ; +0x50, 0x10012c62c\nADD             X1, SP, #0x60+var_58                                   ; +0x54, 0x10012c630\nBL              cocos2d__CCDirector__convertToGL                       ; +0x58, 0x10012c634\nADD             X0, SP, #0x60+var_58                                   ; +0x5c, 0x10012c638\nMOV             X1, SP                                                 ; +0x60, 0x10012c63c\nBL              sub_1000229D0                                          ; +0x64, 0x10012c640\nLDR             W8, [X19,#0x1C4]                                       ; +0x68, 0x10012c644\nCMP             W8, #1                                                 ; +0x6c, 0x10012c648\nB.EQ            loc_10012C6C8                                          ; +0x70, 0x10012c64c\nLDR             S0, [SP,#0x60+var_58]                                  ; +0x74, 0x10012c650\nLDR             S1, [X19,#0x1A4]                                       ; +0x78, 0x10012c654\nFABD            S0, S0, S1                                             ; +0x7c, 0x10012c658\nLDR             S1, [X19,#0x224]                                       ; +0x80, 0x10012c65c\nFCMP            S0, S1                                                 ; +0x84, 0x10012c660\nB.LT            loc_10012C6BC                                          ; +0x88, 0x10012c664\nLDR             X0, [X19,#0x1F0]                                       ; +0x8c, 0x10012c668\nMOV             W1, #2                                                 ; +0x90, 0x10012c66c\nBL              cocos2d__CCNode__stopActionByTag                       ; +0x94, 0x10012c670\nSTRB            WZR, [X19,#0x220]                                      ; +0x98, 0x10012c674\nMOV             W8, #1                                                 ; +0x9c, 0x10012c678\nSTR             W8, [X19,#0x1C4]                                       ; +0xa0, 0x10012c67c\nLDR             S0, [SP,#0x60+var_58]                                  ; +0xa4, 0x10012c680\nSTR             S0, [X19,#0x1A4]                                       ; +0xa8, 0x10012c684\nLDRB            W8, [X19,#0x230]                                       ; +0xac, 0x10012c688\nCMP             W8, #1                                                 ; +0xb0, 0x10012c68c\nB.NE            loc_10012C6A4                                          ; +0xb4, 0x10012c690\nMOV             X0, X19                                                ; +0xb8, 0x10012c694\nMOV             X1, X21                                                ; +0xbc, 0x10012c698\nMOV             X2, X20                                                ; +0xc0, 0x10012c69c\nBL              BoomScrollLayer__cancelAndStoleTouch                   ; +0xc4, 0x10012c6a0\nLDR             X0, [X19,#0x218]                                       ; +0xc8, 0x10012c6a4\nCBZ             X0, loc_10012C6BC                                      ; +0xcc, 0x10012c6a8\nLDR             X8, [X0]                                               ; +0xd0, 0x10012c6ac\nLDR             X8, [X8]                                               ; +0xd4, 0x10012c6b0\nMOV             X1, X19                                                ; +0xd8, 0x10012c6b4\nBLR             X8                                                     ; +0xdc, 0x10012c6b8\nLDR             W8, [X19,#0x1C4]                                       ; +0xe0, 0x10012c6bc\nCMP             W8, #1                                                 ; +0xe4, 0x10012c6c0\nB.NE            loc_10012C7E0                                          ; +0xe8, 0x10012c6c4\nLDR             W8, [X19,#0x244]                                       ; +0xec, 0x10012c6c8\nNEG             W8, W8                                                 ; +0xf0, 0x10012c6cc\nSCVTF           S8, W8                                                 ; +0xf4, 0x10012c6d0\nLDR             X8, [X19]                                              ; +0xf8, 0x10012c6d4\nLDR             X8, [X8,#0x138]                                        ; +0xfc, 0x10012c6d8\nMOV             X0, X19                                                ; +0x100, 0x10012c6dc\nBLR             X8                                                     ; +0x104, 0x10012c6e0\nLDR             S0, [X0]                                               ; +0x108, 0x10012c6e4\nLDR             S1, [X19,#0x248]                                       ; +0x10c, 0x10012c6e8\nFSUB            S0, S0, S1                                             ; +0x110, 0x10012c6ec\nLDR             S1, [SP,#0x60+var_58]                                  ; +0x114, 0x10012c6f0\nFMADD           S0, S8, S0, S1                                         ; +0x118, 0x10012c6f4\nLDR             S1, [X19,#0x1A4]                                       ; +0x11c, 0x10012c6f8\nFSUB            S8, S0, S1                                             ; +0x120, 0x10012c6fc\nFMOV            S9, WZR                                                ; +0x124, 0x10012c700\nMOV             X0, SP                                                 ; +0x128, 0x10012c704\nFMOV            S1, WZR                                                ; +0x12c, 0x10012c708\nFMOV            S0, S8                                                 ; +0x130, 0x10012c70c\nBL              sub_100022980                                          ; +0x134, 0x10012c710\nMOV             X0, X19                                                ; +0x138, 0x10012c714\nBL              BoomScrollLayer__pageNumberForPosition                 ; +0x13c, 0x10012c718\nMOV             X20, X0                                                ; +0x140, 0x10012c71c\nNEG             W8, W0                                                 ; +0x144, 0x10012c720\nSCVTF           S10, W8                                                ; +0x148, 0x10012c724\nLDR             X8, [X19]                                              ; +0x14c, 0x10012c728\nLDR             X8, [X8,#0x138]                                        ; +0x150, 0x10012c72c\nMOV             X0, X19                                                ; +0x154, 0x10012c730\nBLR             X8                                                     ; +0x158, 0x10012c734\nLDR             S0, [X0]                                               ; +0x15c, 0x10012c738\nLDR             S1, [X19,#0x248]                                       ; +0x160, 0x10012c73c\nFSUB            S0, S0, S1                                             ; +0x164, 0x10012c740\nFMUL            S0, S0, S10                                            ; +0x168, 0x10012c744\nMOV             X0, SP                                                 ; +0x16c, 0x10012c748\nFMOV            S1, WZR                                                ; +0x170, 0x10012c74c\nBL              sub_100022980                                          ; +0x174, 0x10012c750\nLDR             S0, [SP,#0x60+var_60]                                  ; +0x178, 0x10012c754\nFSUB            S10, S8, S0                                            ; +0x17c, 0x10012c758\nCBNZ            W20, loc_10012C768                                     ; +0x180, 0x10012c75c\nFCMP            S10, #0.0                                              ; +0x184, 0x10012c760\nB.GT            loc_10012C798                                          ; +0x188, 0x10012c764\nLDRB            W8, [X19,#0x1C0]                                       ; +0x18c, 0x10012c768\nCMP             W8, #0                                                 ; +0x190, 0x10012c76c\nMOV             W8, #0x1D8                                             ; +0x194, 0x10012c770\nMOV             W9, #0x1B8                                             ; +0x198, 0x10012c774\nCSEL            X8, X9, X8, NE                                         ; +0x19c, 0x10012c778\nLDR             X0, [X19,X8]                                           ; +0x1a0, 0x10012c77c\nBL              sub_10024A36C                                          ; +0x1a4, 0x10012c780\nSUB             W8, W0, #1                                             ; +0x1a8, 0x10012c784\nCMP             W20, W8                                                ; +0x1ac, 0x10012c788\nB.NE            loc_10012C7B8                                          ; +0x1b0, 0x10012c78c\nFCMP            S10, #0.0                                              ; +0x1b4, 0x10012c790\nB.PL            loc_10012C7B8                                          ; +0x1b8, 0x10012c794\nLDR             S0, [X19,#0x22C]                                       ; +0x1bc, 0x10012c798\nFMUL            S9, S10, S0                                            ; +0x1c0, 0x10012c79c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x1c4, 0x10012c7a0\nMOV             X8, SP                                                 ; +0x1c8, 0x10012c7a4\nBL              cocos2d__CCDirector__getWinSize                        ; +0x1cc, 0x10012c7a8\nLDR             S0, [SP,#0x60+var_60]                                  ; +0x1d0, 0x10012c7ac\nFDIV            S0, S9, S0                                             ; +0x1d4, 0x10012c7b0\nFSUB            S9, S10, S0                                            ; +0x1d8, 0x10012c7b4\nLDR             X19, [X19,#0x1F0]                                      ; +0x1dc, 0x10012c7b8\nFSUB            S0, S8, S9                                             ; +0x1e0, 0x10012c7bc\nMOV             X0, SP                                                 ; +0x1e4, 0x10012c7c0\nFMOV            S1, WZR                                                ; +0x1e8, 0x10012c7c4\nBL              sub_100022980                                          ; +0x1ec, 0x10012c7c8\nLDR             X8, [X19]                                              ; +0x1f0, 0x10012c7cc\nLDR             X8, [X8,#0xB8]                                         ; +0x1f4, 0x10012c7d0\nMOV             X1, SP                                                 ; +0x1f8, 0x10012c7d4\nMOV             X0, X19                                                ; +0x1fc, 0x10012c7d8\nBLR             X8                                                     ; +0x200, 0x10012c7dc\nLDP             X29, X30, [SP,#0x60+var_10]                            ; +0x204, 0x10012c7e0\nLDP             X20, X19, [SP,#0x60+var_20]                            ; +0x208, 0x10012c7e4\nLDP             X22, X21, [SP,#0x60+var_30]                            ; +0x20c, 0x10012c7e8\nLDP             D9, D8, [SP,#0x60+var_40]                              ; +0x210, 0x10012c7ec\nLDP             D11, D10, [SP,#0x60+var_50]                            ; +0x214, 0x10012c7f0\nADD             SP, SP, #0x60 ; '`'                                    ; +0x218, 0x10012c7f4\nRET                                                                    ; +0x21c, 0x10012c7f8", "xrefs": ["sub_10012C7FC @ 0x10012c800", "<???> @ 0x100791c90"], "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"}