{"type": "func", "start": 6856072, "end": 6856788, "name": "BoomScrollLayer::repositionPagesLooped", "pseudocode": "// \n// BoomScrollLayer::repositionPagesLooped from 0x689d88 to 0x68a054 (716 bytes)\n// \n// 4 xrefs:\n// > BoomScrollLayer::instantMoveToPage @ 0x68a110\n// > BoomScrollLayer::moveToPage @ 0x68a27c\n// > BoomScrollLayer::init @ 0x68adc0\n// > <???> @ 0x55900\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::repositionPagesLooped(BoomScrollLayer *this)\n{\n  unsigned int v2; // w25\n  unsigned int v3; // w24\n  unsigned int v4; // w22\n  unsigned int v5; // w23\n  unsigned int v6; // w20\n  __int64 v7; // x28\n  void (__fastcall *v8)(__int64, _BYTE *); // x26\n  __int64 v9; // x28\n  void (__fastcall *v10)(__int64, _BYTE *); // x26\n  unsigned int v11; // w1\n  __int64 v12; // x0\n  __int64 v13; // x27\n  __int64 v14; // x23\n  __int64 v15; // x20\n  __int64 v17; // x0\n  void (__fastcall ***v18)(_QWORD, __int64, __int64); // x22\n  void (__fastcall *v19)(_QWORD, __int64, __int64); // x26\n  __int64 v20; // x0\n  void (__fastcall ***v21)(_QWORD, __int64, __int64); // x22\n  unsigned int v22; // w1\n  void (__fastcall *v23)(_QWORD, __int64, __int64); // x25\n  __int64 v24; // x0\n  void (__fastcall ***v25)(_QWORD, __int64, __int64); // x22\n  unsigned int v26; // w1\n  void (__fastcall *v27)(_QWORD, __int64, __int64); // x24\n  __int64 v28; // x0\n  __int64 Page; // x20\n  void (__fastcall *v30)(__int64, _BYTE *); // x22\n  unsigned int RelativePageForNum; // [xsp+6Ch] [xbp+6Ch]\n  _BYTE v32[8]; // [xsp+70h] [xbp+70h] BYREF\n\n  RelativePageForNum = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)this, *((_DWORD *)this + 147));\n  v2 = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)this, *((_DWORD *)this + 147) - 1);\n  v3 = BoomScrollLayer::getRelativePageForNum((cocos2d::CCArray **)this, *((_DWORD *)this + 147) + 1);\n  if ( *((_BYTE *)this + 456) )\n  {\n    Page = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147));\n    v30 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)Page + 184LL);\n    BoomScrollLayer::getRelativePosForPage(this, *((_DWORD *)this + 147), (cocos2d::CCPoint *)v32);\n    v30(Page, v32);\n    LODWORD(v30) = *((_DWORD *)this + 147);\n    v5 = (_DWORD)v30 - 1;\n    v4 = (_DWORD)v30 + 1;\n  }\n  else\n  {\n    v4 = v3;\n    v5 = v2;\n  }\n  v6 = 0;\n  v7 = BoomScrollLayer::getPage(this, v5);\n  v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 184LL);\n  BoomScrollLayer::getRelativePosForPage(this, *((_DWORD *)this + 147) - 1, (cocos2d::CCPoint *)v32);\n  v8(v7, v32);\n  v9 = BoomScrollLayer::getPage(this, v4);\n  v10 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v9 + 184LL);\n  BoomScrollLayer::getRelativePosForPage(this, *((_DWORD *)this + 147) + 1, (cocos2d::CCPoint *)v32);\n  v10(v9, v32);\n  while ( v6 < (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 60)) )\n  {\n    v11 = v6++;\n    v12 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 60), v11);\n    (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v12 + 344LL))(v12, 0);\n  }\n  if ( *((_BYTE *)this + 456) )\n  {\n    v13 = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147));\n    v14 = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147) - 1);\n    v17 = BoomScrollLayer::getPage(this, *((_DWORD *)this + 147) + 1);\n    v18 = *((void (__fastcall ****)(_QWORD, __int64, __int64))this + 55);\n    v15 = v17;\n    v19 = **v18;\n    v20 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 56), RelativePageForNum);\n    v19(v18, v13, v20);\n    v21 = *((void (__fastcall ****)(_QWORD, __int64, __int64))this + 55);\n    v22 = v2;\n    v23 = **v21;\n    v24 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 56), v22);\n    v23(v21, v14, v24);\n    v25 = *((void (__fastcall ****)(_QWORD, __int64, __int64))this + 55);\n    v26 = v3;\n    v27 = **v25;\n    v28 = cocos2d::CCArray::objectAtIndex(*((cocos2d::CCArray **)this + 56), v26);\n    v27(v25, v15, v28);\n  }\n  else\n  {\n    v13 = BoomScrollLayer::getPage(this, RelativePageForNum);\n    v14 = BoomScrollLayer::getPage(this, v5);\n    v15 = BoomScrollLayer::getPage(this, v4);\n  }\n  (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 344LL))(v13, 1);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v14 + 344LL))(v14, *((unsigned __int8 *)this + 553) ^ 1u);\n  (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v15 + 344LL))(v15, *((unsigned __int8 *)this + 553) ^ 1u);\n  return _stack_chk_guard;\n}", "assembly": "; \n; BoomScrollLayer::repositionPagesLooped from 0x689d88 to 0x68a054 (716 bytes)\n; \n; 4 xrefs:\n; > BoomScrollLayer::instantMoveToPage @ 0x68a110\n; > BoomScrollLayer::moveToPage @ 0x68a27c\n; > BoomScrollLayer::init @ 0x68adc0\n; > <???> @ 0x55900\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_80]!                                ; +0x0, 0x689d88\nMOV             X29, SP                                                ; +0x4, 0x689d8c\nSTP             X21, X22, [SP,#0x80+var_60]                            ; +0x8, 0x689d90\nADRP            X21, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x689d94\nSTP             X19, X20, [SP,#0x80+var_70]                            ; +0x10, 0x689d98\nSTP             X23, X24, [SP,#0x80+var_50]                            ; +0x14, 0x689d9c\nLDR             X2, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x689da0\nMOV             X19, X0                                                ; +0x1c, 0x689da4\nSTP             X25, X26, [SP,#0x80+var_40]                            ; +0x20, 0x689da8\nSTP             X27, X28, [SP,#0x80+var_30]                            ; +0x24, 0x689dac\nLDR             X2, [X2]                                               ; +0x28, 0x689db0\nLDR             W1, [X0,#0x24C]; int                                   ; +0x2c, 0x689db4\nSTR             X2, [X29,#0x80+var_8]                                  ; +0x30, 0x689db8\nBL              _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x34, 0x689dbc\nSTR             W0, [X29,#0x80+var_14]                                 ; +0x38, 0x689dc0\nLDR             W1, [X19,#0x24C]                                       ; +0x3c, 0x689dc4\nMOV             X0, X19; this                                          ; +0x40, 0x689dc8\nSUB             W1, W1, #1; int                                        ; +0x44, 0x689dcc\nBL              _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x48, 0x689dd0\nMOV             W25, W0                                                ; +0x4c, 0x689dd4\nLDR             W1, [X19,#0x24C]                                       ; +0x50, 0x689dd8\nMOV             X0, X19; this                                          ; +0x54, 0x689ddc\nADD             W1, W1, #1; int                                        ; +0x58, 0x689de0\nBL              _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x5c, 0x689de4\nMOV             W24, W0                                                ; +0x60, 0x689de8\nLDRB            W0, [X19,#0x1C8]                                       ; +0x64, 0x689dec\nCBNZ            W0, loc_68A008                                         ; +0x68, 0x689df0\nMOV             W22, W24                                               ; +0x6c, 0x689df4\nMOV             W23, W25                                               ; +0x70, 0x689df8\nADD             X27, X29, #0x80+var_10                                 ; +0x74, 0x689dfc\nMOV             W1, W23; int                                           ; +0x78, 0x689e00\nMOV             X0, X19; this                                          ; +0x7c, 0x689e04\nMOV             W20, #0                                                ; +0x80, 0x689e08\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x84, 0x689e0c\nMOV             X28, X0                                                ; +0x88, 0x689e10\nLDR             W1, [X19,#0x24C]                                       ; +0x8c, 0x689e14\nMOV             X8, X27                                                ; +0x90, 0x689e18\nMOV             X0, X19; this                                          ; +0x94, 0x689e1c\nLDR             X2, [X28]                                              ; +0x98, 0x689e20\nSUB             W1, W1, #1; int                                        ; +0x9c, 0x689e24\nLDR             X26, [X2,#0xB8]                                        ; +0xa0, 0x689e28\nBL              _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0xa4, 0x689e2c\nMOV             X0, X28                                                ; +0xa8, 0x689e30\nMOV             X1, X27                                                ; +0xac, 0x689e34\nBLR             X26                                                    ; +0xb0, 0x689e38\nMOV             W1, W22; int                                           ; +0xb4, 0x689e3c\nMOV             X0, X19; this                                          ; +0xb8, 0x689e40\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0xbc, 0x689e44\nMOV             X28, X0                                                ; +0xc0, 0x689e48\nLDR             W1, [X19,#0x24C]                                       ; +0xc4, 0x689e4c\nMOV             X0, X19; this                                          ; +0xc8, 0x689e50\nMOV             X8, X27                                                ; +0xcc, 0x689e54\nLDR             X2, [X28]                                              ; +0xd0, 0x689e58\nADD             W1, W1, #1; int                                        ; +0xd4, 0x689e5c\nLDR             X26, [X2,#0xB8]                                        ; +0xd8, 0x689e60\nBL              _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0xdc, 0x689e64\nMOV             X0, X28                                                ; +0xe0, 0x689e68\nMOV             X1, X27                                                ; +0xe4, 0x689e6c\nBLR             X26                                                    ; +0xe8, 0x689e70\nB               loc_689E98                                             ; +0xec, 0x689e74\nLDR             X0, [X19,#0x1E0]; this                                 ; +0xf0, 0x689e78\nMOV             W1, W20; unsigned int                                  ; +0xf4, 0x689e7c\nADD             W20, W20, #1                                           ; +0xf8, 0x689e80\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xfc, 0x689e84\nLDR             X2, [X0]                                               ; +0x100, 0x689e88\nMOV             W1, #0                                                 ; +0x104, 0x689e8c\nLDR             X2, [X2,#0x158]                                        ; +0x108, 0x689e90\nBLR             X2                                                     ; +0x10c, 0x689e94\nLDR             X0, [X19,#0x1E0]; this                                 ; +0x110, 0x689e98\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x114, 0x689e9c\nCMP             W20, W0                                                ; +0x118, 0x689ea0\nB.CC            loc_689E78                                             ; +0x11c, 0x689ea4\nLDRB            W0, [X19,#0x1C8]                                       ; +0x120, 0x689ea8\nCBNZ            W0, loc_689F54                                         ; +0x124, 0x689eac\nLDR             W1, [X29,#0x80+var_14]; int                            ; +0x128, 0x689eb0\nMOV             X0, X19; this                                          ; +0x12c, 0x689eb4\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x130, 0x689eb8\nMOV             X27, X0                                                ; +0x134, 0x689ebc\nMOV             W1, W23; int                                           ; +0x138, 0x689ec0\nMOV             X0, X19; this                                          ; +0x13c, 0x689ec4\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x140, 0x689ec8\nMOV             X23, X0                                                ; +0x144, 0x689ecc\nMOV             W1, W22; int                                           ; +0x148, 0x689ed0\nMOV             X0, X19; this                                          ; +0x14c, 0x689ed4\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x150, 0x689ed8\nMOV             X20, X0                                                ; +0x154, 0x689edc\nLDR             X2, [X27]                                              ; +0x158, 0x689ee0\nMOV             X0, X27                                                ; +0x15c, 0x689ee4\nMOV             W1, #1                                                 ; +0x160, 0x689ee8\nLDR             X2, [X2,#0x158]                                        ; +0x164, 0x689eec\nBLR             X2                                                     ; +0x168, 0x689ef0\nLDR             X2, [X23]                                              ; +0x16c, 0x689ef4\nMOV             X0, X23                                                ; +0x170, 0x689ef8\nLDRB            W1, [X19,#0x229]                                       ; +0x174, 0x689efc\nLDR             X2, [X2,#0x158]                                        ; +0x178, 0x689f00\nEOR             W1, W1, #1                                             ; +0x17c, 0x689f04\nBLR             X2                                                     ; +0x180, 0x689f08\nLDR             X2, [X20]                                              ; +0x184, 0x689f0c\nMOV             X0, X20                                                ; +0x188, 0x689f10\nLDRB            W1, [X19,#0x229]                                       ; +0x18c, 0x689f14\nLDR             X2, [X2,#0x158]                                        ; +0x190, 0x689f18\nEOR             W1, W1, #1                                             ; +0x194, 0x689f1c\nBLR             X2                                                     ; +0x198, 0x689f20\nLDR             X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x19c, 0x689f24\nLDR             X1, [X29,#0x80+var_8]                                  ; +0x1a0, 0x689f28\nLDR             X0, [X21]                                              ; +0x1a4, 0x689f2c\nCMP             X1, X0                                                 ; +0x1a8, 0x689f30\nB.NE            loc_68A050                                             ; +0x1ac, 0x689f34\nLDP             X19, X20, [SP,#0x80+var_70]                            ; +0x1b0, 0x689f38\nLDP             X21, X22, [SP,#0x80+var_60]                            ; +0x1b4, 0x689f3c\nLDP             X23, X24, [SP,#0x80+var_50]                            ; +0x1b8, 0x689f40\nLDP             X25, X26, [SP,#0x80+var_40]                            ; +0x1bc, 0x689f44\nLDP             X27, X28, [SP,#0x80+var_30]                            ; +0x1c0, 0x689f48\nLDP             X29, X30, [SP+0x80+var_80],#0x80                       ; +0x1c4, 0x689f4c\nRET                                                                    ; +0x1c8, 0x689f50\nLDR             W1, [X19,#0x24C]; int                                  ; +0x1cc, 0x689f54\nMOV             X0, X19; this                                          ; +0x1d0, 0x689f58\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x1d4, 0x689f5c\nMOV             X27, X0                                                ; +0x1d8, 0x689f60\nLDR             W1, [X19,#0x24C]                                       ; +0x1dc, 0x689f64\nMOV             X0, X19; this                                          ; +0x1e0, 0x689f68\nSUB             W1, W1, #1; int                                        ; +0x1e4, 0x689f6c\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x1e8, 0x689f70\nMOV             X23, X0                                                ; +0x1ec, 0x689f74\nLDR             W1, [X19,#0x24C]                                       ; +0x1f0, 0x689f78\nMOV             X0, X19; this                                          ; +0x1f4, 0x689f7c\nADD             W1, W1, #1; int                                        ; +0x1f8, 0x689f80\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x1fc, 0x689f84\nLDR             X22, [X19,#0x1B8]                                      ; +0x200, 0x689f88\nMOV             X20, X0                                                ; +0x204, 0x689f8c\nLDR             W1, [X29,#0x80+var_14]; unsigned int                   ; +0x208, 0x689f90\nLDR             X0, [X19,#0x1C0]; this                                 ; +0x20c, 0x689f94\nLDR             X2, [X22]                                              ; +0x210, 0x689f98\nLDR             X26, [X2]                                              ; +0x214, 0x689f9c\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x218, 0x689fa0\nMOV             X1, X27                                                ; +0x21c, 0x689fa4\nMOV             X2, X0                                                 ; +0x220, 0x689fa8\nMOV             X0, X22                                                ; +0x224, 0x689fac\nBLR             X26                                                    ; +0x228, 0x689fb0\nLDR             X22, [X19,#0x1B8]                                      ; +0x22c, 0x689fb4\nLDR             X0, [X19,#0x1C0]; this                                 ; +0x230, 0x689fb8\nMOV             W1, W25; unsigned int                                  ; +0x234, 0x689fbc\nLDR             X2, [X22]                                              ; +0x238, 0x689fc0\nLDR             X25, [X2]                                              ; +0x23c, 0x689fc4\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x240, 0x689fc8\nMOV             X1, X23                                                ; +0x244, 0x689fcc\nMOV             X2, X0                                                 ; +0x248, 0x689fd0\nMOV             X0, X22                                                ; +0x24c, 0x689fd4\nBLR             X25                                                    ; +0x250, 0x689fd8\nLDR             X22, [X19,#0x1B8]                                      ; +0x254, 0x689fdc\nLDR             X0, [X19,#0x1C0]; this                                 ; +0x258, 0x689fe0\nMOV             W1, W24; unsigned int                                  ; +0x25c, 0x689fe4\nLDR             X2, [X22]                                              ; +0x260, 0x689fe8\nLDR             X24, [X2]                                              ; +0x264, 0x689fec\nBL              _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x268, 0x689ff0\nMOV             X1, X20                                                ; +0x26c, 0x689ff4\nMOV             X2, X0                                                 ; +0x270, 0x689ff8\nMOV             X0, X22                                                ; +0x274, 0x689ffc\nBLR             X24                                                    ; +0x278, 0x68a000\nB               loc_689EE0                                             ; +0x27c, 0x68a004\nLDR             W1, [X19,#0x24C]; int                                  ; +0x280, 0x68a008\nMOV             X0, X19; this                                          ; +0x284, 0x68a00c\nADD             X27, X29, #0x80+var_10                                 ; +0x288, 0x68a010\nBL              _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x28c, 0x68a014\nMOV             X20, X0                                                ; +0x290, 0x68a018\nLDR             W1, [X19,#0x24C]; int                                  ; +0x294, 0x68a01c\nMOV             X8, X27                                                ; +0x298, 0x68a020\nMOV             X0, X19; this                                          ; +0x29c, 0x68a024\nLDR             X2, [X20]                                              ; +0x2a0, 0x68a028\nLDR             X22, [X2,#0xB8]                                        ; +0x2a4, 0x68a02c\nBL              _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x2a8, 0x68a030\nMOV             X0, X20                                                ; +0x2ac, 0x68a034\nMOV             X1, X27                                                ; +0x2b0, 0x68a038\nBLR             X22                                                    ; +0x2b4, 0x68a03c\nLDR             W22, [X19,#0x24C]                                      ; +0x2b8, 0x68a040\nSUB             W23, W22, #1                                           ; +0x2bc, 0x68a044\nADD             W22, W22, #1                                           ; +0x2c0, 0x68a048\nB               loc_689E00                                             ; +0x2c4, 0x68a04c\nBL              .__stack_chk_fail                                      ; +0x2c8, 0x68a050", "xrefs": ["BoomScrollLayer::instantMoveToPage @ 0x68a110", "BoomScrollLayer::moveToPage @ 0x68a27c", "BoomScrollLayer::init @ 0x68adc0", "<???> @ 0x55900"], "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"}