{"type": "func", "start": 6857864, "end": 6858028, "name": "BoomScrollLayer::selectPage", "pseudocode": "// \n// BoomScrollLayer::selectPage from 0x68a488 to 0x68a52c (164 bytes)\n// \n// 2 xrefs:\n// > BoomScrollLayer::ccTouchCancelled @ 0x68a54c\n// > <???> @ 0xd6588\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::selectPage(BoomScrollLayer *this, int a2)\n{\n  __int64 v5; // x23\n  void (__fastcall *v6)(__int64, _BYTE *); // x24\n  _BYTE v7[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  if ( (a2 & 0x80000000) == 0 && a2 < (int)BoomScrollLayer::getTotalPages((cocos2d::CCArray **)this) )\n  {\n    v5 = *((_QWORD *)this + 63);\n    v6 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v5 + 184LL);\n    BoomScrollLayer::positionForPageWithNumber(this, a2, (cocos2d::CCPoint *)v7);\n    v6(v5, v7);\n    *((_DWORD *)this + 106) = *((_DWORD *)this + 147);\n    *((_DWORD *)this + 147) = a2;\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; BoomScrollLayer::selectPage from 0x68a488 to 0x68a52c (164 bytes)\n; \n; 2 xrefs:\n; > BoomScrollLayer::ccTouchCancelled @ 0x68a54c\n; > <???> @ 0xd6588\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_50]!                                ; +0x0, 0x68a488\nMOV             X29, SP                                                ; +0x4, 0x68a48c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x68a490\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x68a494\nMOV             W20, W1                                                ; +0x10, 0x68a498\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x14, 0x68a49c\nSTP             X23, X24, [SP,#0x50+var_20]                            ; +0x18, 0x68a4a0\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x68a4a4\nMOV             X21, X0                                                ; +0x20, 0x68a4a8\nLDR             X1, [X1]                                               ; +0x24, 0x68a4ac\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x28, 0x68a4b0\nTBNZ            W20, #0x1F, loc_68A4C4                                 ; +0x2c, 0x68a4b4\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x30, 0x68a4b8\nCMP             W20, W0                                                ; +0x34, 0x68a4bc\nB.LT            loc_68A4EC                                             ; +0x38, 0x68a4c0\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x3c, 0x68a4c4\nLDR             X1, [X29,#0x50+var_8]                                  ; +0x40, 0x68a4c8\nLDR             X0, [X19]                                              ; +0x44, 0x68a4cc\nCMP             X1, X0                                                 ; +0x48, 0x68a4d0\nB.NE            loc_68A528                                             ; +0x4c, 0x68a4d4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0x50, 0x68a4d8\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0x54, 0x68a4dc\nLDP             X23, X24, [SP,#0x50+var_20]                            ; +0x58, 0x68a4e0\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0x5c, 0x68a4e4\nRET                                                                    ; +0x60, 0x68a4e8\nLDR             X23, [X21,#0x1F8]                                      ; +0x64, 0x68a4ec\nADD             X22, X29, #0x50+var_10                                 ; +0x68, 0x68a4f0\nMOV             X8, X22                                                ; +0x6c, 0x68a4f4\nMOV             X0, X21; this                                          ; +0x70, 0x68a4f8\nMOV             W1, W20; int                                           ; +0x74, 0x68a4fc\nLDR             X2, [X23]                                              ; +0x78, 0x68a500\nLDR             X24, [X2,#0xB8]                                        ; +0x7c, 0x68a504\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x80, 0x68a508\nMOV             X0, X23                                                ; +0x84, 0x68a50c\nMOV             X1, X22                                                ; +0x88, 0x68a510\nBLR             X24                                                    ; +0x8c, 0x68a514\nLDR             W0, [X21,#0x24C]                                       ; +0x90, 0x68a518\nSTR             W0, [X21,#0x1A8]                                       ; +0x94, 0x68a51c\nSTR             W20, [X21,#0x24C]                                      ; +0x98, 0x68a520\nB               loc_68A4C4                                             ; +0x9c, 0x68a524\nBL              .__stack_chk_fail                                      ; +0xa0, 0x68a528", "xrefs": ["BoomScrollLayer::ccTouchCancelled @ 0x68a54c", "<???> @ 0xd6588"], "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"}