{"type": "func", "start": 5694208, "end": 5694372, "name": "BoomScrollLayer::selectPage", "pseudocode": "// \n// BoomScrollLayer::selectPage from 0x56e300 to 0x56e3a4 (164 bytes)\n// \n// 2 xrefs:\n// > BoomScrollLayer::ccTouchCancelled @ 0x56e3c4\n// > <???> @ 0xa3080\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::selectPage(BoomScrollLayer *a1, int a2)\n{\n  ExtendedLayer *m_extendedLayer; // x23\n  void (__fastcall *setPosition)(ExtendedLayer *__hidden, const cocos2d::CCPoint *); // x24\n  _BYTE v6[8]; // [xsp+40h] [xbp+40h] BYREF\n  cocos2d::CCPoint v7; // 0:kr00_8.8\n\n  if ( (a2 & 0x80000000) == 0 && a2 < BoomScrollLayer::getTotalPages(a1) )\n  {\n    m_extendedLayer = a1->m_extendedLayer;\n    setPosition = m_extendedLayer->setPosition;\n    v7 = BoomScrollLayer::positionForPageWithNumber(a1, a2);\n    ((void (__fastcall *)(ExtendedLayer *, _BYTE *, float, float))setPosition)(m_extendedLayer, v6, v7.x, v7.y);\n    a1->m_slowPage = a1->m_page;\n    a1->m_page = a2;\n  }\n}", "assembly": "; \n; BoomScrollLayer::selectPage from 0x56e300 to 0x56e3a4 (164 bytes)\n; \n; 2 xrefs:\n; > BoomScrollLayer::ccTouchCancelled @ 0x56e3c4\n; > <???> @ 0xa3080\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_50]!                                ; +0x0, 0x56e300\nMOV             X29, SP                                                ; +0x4, 0x56e304\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x56e308\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x56e30c\nMOV             W20, W1                                                ; +0x10, 0x56e310\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x56e314\nSTP             X23, X24, [SP,#0x50+var_20]                            ; +0x18, 0x56e318\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x56e31c\nMOV             X21, X0                                                ; +0x20, 0x56e320\nLDR             X1, [X1]                                               ; +0x24, 0x56e324\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x28, 0x56e328\nTBNZ            W20, #0x1F, loc_56E33C                                 ; +0x2c, 0x56e32c\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x30, 0x56e330\nCMP             W20, W0                                                ; +0x34, 0x56e334\nB.LT            loc_56E364                                             ; +0x38, 0x56e338\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x56e33c\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x40, 0x56e340\nLDR             X0, [X19]                                              ; +0x44, 0x56e344\nCMP             X1, X0                                                 ; +0x48, 0x56e348\nB.NE            loc_56E3A0                                             ; +0x4c, 0x56e34c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x50, 0x56e350\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x54, 0x56e354\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0x58, 0x56e358\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x5c, 0x56e35c\nRET                                                                    ; +0x60, 0x56e360\nLDR             X23, [X21,#0x1F0]                                      ; +0x64, 0x56e364\nADD             X22, X29, #0x50+var_10                                 ; +0x68, 0x56e368\nMOV             X8, X22                                                ; +0x6c, 0x56e36c\nMOV             X0, X21; this                                          ; +0x70, 0x56e370\nMOV             W1, W20; int                                           ; +0x74, 0x56e374\nLDR             X2, [X23]                                              ; +0x78, 0x56e378\nLDR             X24, [X2,#0xB8]                                        ; +0x7c, 0x56e37c\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x80, 0x56e380\nMOV             X0, X23                                                ; +0x84, 0x56e384\nMOV             X1, X22                                                ; +0x88, 0x56e388\nBLR             X24                                                    ; +0x8c, 0x56e38c\nLDR             W0, [X21,#0x244]                                       ; +0x90, 0x56e390\nSTR             W0, [X21,#0x1A0]                                       ; +0x94, 0x56e394\nSTR             W20, [X21,#0x244]                                      ; +0x98, 0x56e398\nB               loc_56E33C                                             ; +0x9c, 0x56e39c\nBL              .__stack_chk_fail                                      ; +0xa0, 0x56e3a0", "xrefs": ["BoomScrollLayer::ccTouchCancelled @ 0x56e3c4", "<???> @ 0xa3080"], "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"}