{"type": "func", "start": 3024864, "end": 3024956, "name": "BoomScrollLayer::selectPage", "pseudocode": "// \n// BoomScrollLayer::selectPage from 0x2e27e0 to 0x2e283c (92 bytes)\n// \n// 1 xrefs:\n// > BoomScrollLayer::ccTouchCancelled @ 0x2e285c\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; // r8\n  void (__fastcall *setPosition)(ExtendedLayer *__hidden, const cocos2d::CCPoint *); // r9\n  int m_page; // r3\n  cocos2d::CCPoint v7; // [sp+4h] [bp-10h] BYREF\n\n  if ( a2 >= 0 && a2 < BoomScrollLayer::getTotalPages(a1) )\n  {\n    m_extendedLayer = a1->m_extendedLayer;\n    setPosition = m_extendedLayer->setPosition;\n    BoomScrollLayer::positionForPageWithNumber(&v7, a1, a2);\n    setPosition(m_extendedLayer, &v7);\n    m_page = a1->m_page;\n    a1->m_page = a2;\n    a1->m_slowPage = m_page;\n  }\n}", "assembly": "; \n; BoomScrollLayer::selectPage from 0x2e27e0 to 0x2e283c (92 bytes)\n; \n; 1 xrefs:\n; > BoomScrollLayer::ccTouchCancelled @ 0x2e285c\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             R3, =(__stack_chk_guard_ptr - 0x2E27EA)                ; +0x0, 0x2e27e0\nPUSH.W          {R4-R9,LR}                                             ; +0x2, 0x2e27e2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2e27e6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2e27e8\nSUB             SP, SP, #0x14                                          ; +0xa, 0x2e27ea\nSUBS            R6, R1, #0                                             ; +0xc, 0x2e27ec\nLDR             R2, [R3]                                               ; +0xe, 0x2e27ee\nMOV             R4, R0                                                 ; +0x10, 0x2e27f0\nMOV             R5, R3                                                 ; +0x12, 0x2e27f2\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x2e27f4\nBLT             loc_2E282A                                             ; +0x16, 0x2e27f6\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x18, 0x2e27f8\nCMP             R6, R0                                                 ; +0x1c, 0x2e27fc\nBGE             loc_2E282A                                             ; +0x1e, 0x2e27fe\nLDR.W           R8, [R4,#0x180]                                        ; +0x20, 0x2e2800\nADD             R7, SP, #0x14+var_10                                   ; +0x24, 0x2e2804\nMOV             R1, R4; int                                            ; +0x26, 0x2e2806\nMOV             R2, R6                                                 ; +0x28, 0x2e2808\nMOV             R0, R7; this                                           ; +0x2a, 0x2e280a\nLDR.W           R3, [R8]                                               ; +0x2c, 0x2e280c\nLDR.W           R9, [R3,#0x5C]                                         ; +0x30, 0x2e2810\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x34, 0x2e2814\nMOV             R0, R8                                                 ; +0x38, 0x2e2818\nMOV             R1, R7                                                 ; +0x3a, 0x2e281a\nBLX             R9                                                     ; +0x3c, 0x2e281c\nLDR.W           R3, [R4,#0x1CC]                                        ; +0x3e, 0x2e281e\nSTR.W           R6, [R4,#0x1CC]                                        ; +0x42, 0x2e2822\nSTR.W           R3, [R4,#0x140]                                        ; +0x46, 0x2e2826\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x4a, 0x2e282a\nLDR             R3, [R5]                                               ; +0x4c, 0x2e282c\nCMP             R2, R3                                                 ; +0x4e, 0x2e282e\nBEQ             loc_2E2836                                             ; +0x50, 0x2e2830\nBLX             __stack_chk_fail                                       ; +0x52, 0x2e2832\nADD             SP, SP, #0x14                                          ; +0x56, 0x2e2836\nPOP.W           {R4-R9,PC}                                             ; +0x58, 0x2e2838", "xrefs": ["BoomScrollLayer::ccTouchCancelled @ 0x2e285c"], "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"}