{"type": "func", "start": 4296196732, "end": 4296196916, "name": "BoomScrollLayer::selectPage", "pseudocode": "// \n// BoomScrollLayer::selectPage from 0x10012c27c to 0x10012c334 (184 bytes)\n// \n// 2 xrefs:\n// > BoomScrollLayer::ccTouchCancelled @ 0x10012c4e0\n// > sub_10012C4E4 @ 0x10012c50c\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::selectPage(BoomScrollLayer *a1, int a2)\n{\n  __int64 v4; // x8\n  ExtendedLayer *m_extendedLayer; // x21\n  __n128 v6; // q0\n  __n128 v7; // q1\n  int v8; // [xsp+8h] [xbp-38h] BYREF\n\n  if ( (a2 & 0x80000000) == 0 )\n  {\n    v4 = 472;\n    if ( a1->m_dynamic )\n      v4 = 440;\n    if ( (int)sub_10024A36C(*(BoomScrollLayer_vtbl **)((char *)&a1->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable\n                                                     + v4)) > a2 )\n    {\n      m_extendedLayer = a1->m_extendedLayer;\n      v6.n128_f32[0] = (float)(*(float *)((__int64 (__fastcall *)(BoomScrollLayer *))a1->getContentSize)(a1)\n                             - a1->m_pageOffset)\n                     * (float)-a2;\n      v7.n128_u32[0] = 0;\n      sub_100022980(v6, v7, &v8);\n      ((void (__fastcall *)(ExtendedLayer *, int *))m_extendedLayer->setPosition)(m_extendedLayer, &v8);\n      a1->m_slowPage = a1->m_page;\n      a1->m_page = a2;\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::selectPage from 0x10012c27c to 0x10012c334 (184 bytes)\n; \n; 2 xrefs:\n; > BoomScrollLayer::ccTouchCancelled @ 0x10012c4e0\n; > sub_10012C4E4 @ 0x10012c50c\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\nTBNZ            W1, #0x1F, locret_10012C330                            ; +0x0, 0x10012c27c\nSUB             SP, SP, #0x50                                          ; +0x4, 0x10012c280\nSTP             D9, D8, [SP,#0x40+var_30]                              ; +0x8, 0x10012c284\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0xc, 0x10012c288\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x10, 0x10012c28c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0x14, 0x10012c290\nADD             X29, SP, #0x40                                         ; +0x18, 0x10012c294\nMOV             X19, X1                                                ; +0x1c, 0x10012c298\nMOV             X20, X0                                                ; +0x20, 0x10012c29c\nLDRB            W8, [X0,#0x1C0]                                        ; +0x24, 0x10012c2a0\nCMP             W8, #0                                                 ; +0x28, 0x10012c2a4\nMOV             W8, #0x1D8                                             ; +0x2c, 0x10012c2a8\nMOV             W9, #0x1B8                                             ; +0x30, 0x10012c2ac\nCSEL            X8, X9, X8, NE                                         ; +0x34, 0x10012c2b0\nLDR             X0, [X0,X8]                                            ; +0x38, 0x10012c2b4\nBL              sub_10024A36C                                          ; +0x3c, 0x10012c2b8\nCMP             W0, W19                                                ; +0x40, 0x10012c2bc\nB.LE            loc_10012C31C                                          ; +0x44, 0x10012c2c0\nLDR             X21, [X20,#0x1F0]                                      ; +0x48, 0x10012c2c4\nNEG             W8, W19                                                ; +0x4c, 0x10012c2c8\nSCVTF           S8, W8                                                 ; +0x50, 0x10012c2cc\nLDR             X8, [X20]                                              ; +0x54, 0x10012c2d0\nLDR             X8, [X8,#0x138]                                        ; +0x58, 0x10012c2d4\nMOV             X0, X20                                                ; +0x5c, 0x10012c2d8\nBLR             X8                                                     ; +0x60, 0x10012c2dc\nLDR             S0, [X0]                                               ; +0x64, 0x10012c2e0\nLDR             S1, [X20,#0x248]                                       ; +0x68, 0x10012c2e4\nFSUB            S0, S0, S1                                             ; +0x6c, 0x10012c2e8\nFMUL            S0, S0, S8                                             ; +0x70, 0x10012c2ec\nADD             X0, SP, #0x40+var_38                                   ; +0x74, 0x10012c2f0\nFMOV            S1, WZR                                                ; +0x78, 0x10012c2f4\nBL              sub_100022980                                          ; +0x7c, 0x10012c2f8\nLDR             X8, [X21]                                              ; +0x80, 0x10012c2fc\nLDR             X8, [X8,#0xB8]                                         ; +0x84, 0x10012c300\nADD             X1, SP, #0x40+var_38                                   ; +0x88, 0x10012c304\nMOV             X0, X21                                                ; +0x8c, 0x10012c308\nBLR             X8                                                     ; +0x90, 0x10012c30c\nLDR             W8, [X20,#0x244]                                       ; +0x94, 0x10012c310\nSTR             W8, [X20,#0x1A0]                                       ; +0x98, 0x10012c314\nSTR             W19, [X20,#0x244]                                      ; +0x9c, 0x10012c318\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0xa0, 0x10012c31c\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0xa4, 0x10012c320\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0xa8, 0x10012c324\nLDP             D9, D8, [SP,#0x40+var_30]                              ; +0xac, 0x10012c328\nADD             SP, SP, #0x50 ; 'P'                                    ; +0xb0, 0x10012c32c\nRET                                                                    ; +0xb4, 0x10012c330", "xrefs": ["BoomScrollLayer::ccTouchCancelled @ 0x10012c4e0", "sub_10012C4E4 @ 0x10012c50c"], "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"}