; ; BoomScrollLayer::repositionPagesLooped from 0x56dc00 to 0x56decc (716 bytes) ; ; 4 xrefs: ; > BoomScrollLayer::instantMoveToPage @ 0x56df88 ; > BoomScrollLayer::moveToPage @ 0x56e0f4 ; > BoomScrollLayer::init @ 0x56ec38 ; > @ 0x3ada0 ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; STP X29, X30, [SP,#var_80]! ; +0x0, 0x56dc00 MOV X29, SP ; +0x4, 0x56dc04 STP X21, X22, [SP,#0x80+var_60] ; +0x8, 0x56dc08 ADRP X21, #__stack_chk_guard_ptr@PAGE ; +0xc, 0x56dc0c LDR W1, [X0,#0x244]; int ; +0x10, 0x56dc10 STP X19, X20, [SP,#0x80+var_70] ; +0x14, 0x56dc14 MOV X19, X0 ; +0x18, 0x56dc18 LDR X2, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x56dc1c STP X23, X24, [SP,#0x80+var_50] ; +0x20, 0x56dc20 STP X25, X26, [SP,#0x80+var_40] ; +0x24, 0x56dc24 LDR X2, [X2] ; +0x28, 0x56dc28 STR X2, [X29,#0x80+var_8] ; +0x2c, 0x56dc2c STP X27, X28, [SP,#0x80+var_30] ; +0x30, 0x56dc30 BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x34, 0x56dc34 STR W0, [X29,#0x80+var_14] ; +0x38, 0x56dc38 LDR W1, [X19,#0x244] ; +0x3c, 0x56dc3c MOV X0, X19; this ; +0x40, 0x56dc40 SUB W1, W1, #1; int ; +0x44, 0x56dc44 BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x48, 0x56dc48 MOV W25, W0 ; +0x4c, 0x56dc4c LDR W1, [X19,#0x244] ; +0x50, 0x56dc50 MOV X0, X19; this ; +0x54, 0x56dc54 ADD W1, W1, #1; int ; +0x58, 0x56dc58 BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x5c, 0x56dc5c MOV W24, W0 ; +0x60, 0x56dc60 LDRB W0, [X19,#0x1C0] ; +0x64, 0x56dc64 CBNZ W0, loc_56DE80 ; +0x68, 0x56dc68 MOV W22, W24 ; +0x6c, 0x56dc6c MOV W23, W25 ; +0x70, 0x56dc70 ADD X27, X29, #0x80+var_10 ; +0x74, 0x56dc74 MOV W1, W23; int ; +0x78, 0x56dc78 MOV X0, X19; this ; +0x7c, 0x56dc7c MOV W20, #0 ; +0x80, 0x56dc80 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x84, 0x56dc84 MOV X28, X0 ; +0x88, 0x56dc88 LDR W1, [X19,#0x244] ; +0x8c, 0x56dc8c MOV X8, X27 ; +0x90, 0x56dc90 MOV X0, X19; this ; +0x94, 0x56dc94 LDR X2, [X28] ; +0x98, 0x56dc98 SUB W1, W1, #1; int ; +0x9c, 0x56dc9c LDR X26, [X2,#0xB8] ; +0xa0, 0x56dca0 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0xa4, 0x56dca4 MOV X0, X28 ; +0xa8, 0x56dca8 MOV X1, X27 ; +0xac, 0x56dcac BLR X26 ; +0xb0, 0x56dcb0 MOV W1, W22; int ; +0xb4, 0x56dcb4 MOV X0, X19; this ; +0xb8, 0x56dcb8 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0xbc, 0x56dcbc MOV X28, X0 ; +0xc0, 0x56dcc0 LDR W1, [X19,#0x244] ; +0xc4, 0x56dcc4 MOV X0, X19; this ; +0xc8, 0x56dcc8 MOV X8, X27 ; +0xcc, 0x56dccc LDR X2, [X28] ; +0xd0, 0x56dcd0 ADD W1, W1, #1; int ; +0xd4, 0x56dcd4 LDR X26, [X2,#0xB8] ; +0xd8, 0x56dcd8 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0xdc, 0x56dcdc MOV X0, X28 ; +0xe0, 0x56dce0 MOV X1, X27 ; +0xe4, 0x56dce4 BLR X26 ; +0xe8, 0x56dce8 B loc_56DD10 ; +0xec, 0x56dcec LDR X0, [X19,#0x1D8]; this ; +0xf0, 0x56dcf0 MOV W1, W20; unsigned int ; +0xf4, 0x56dcf4 ADD W20, W20, #1 ; +0xf8, 0x56dcf8 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xfc, 0x56dcfc LDR X2, [X0] ; +0x100, 0x56dd00 MOV W1, #0 ; +0x104, 0x56dd04 LDR X2, [X2,#0x148] ; +0x108, 0x56dd08 BLR X2 ; +0x10c, 0x56dd0c LDR X0, [X19,#0x1D8]; this ; +0x110, 0x56dd10 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x114, 0x56dd14 CMP W20, W0 ; +0x118, 0x56dd18 B.CC loc_56DCF0 ; +0x11c, 0x56dd1c LDRB W0, [X19,#0x1C0] ; +0x120, 0x56dd20 CBNZ W0, loc_56DDCC ; +0x124, 0x56dd24 LDR W1, [X29,#0x80+var_14]; int ; +0x128, 0x56dd28 MOV X0, X19; this ; +0x12c, 0x56dd2c BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x130, 0x56dd30 MOV X27, X0 ; +0x134, 0x56dd34 MOV W1, W23; int ; +0x138, 0x56dd38 MOV X0, X19; this ; +0x13c, 0x56dd3c BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x140, 0x56dd40 MOV X23, X0 ; +0x144, 0x56dd44 MOV W1, W22; int ; +0x148, 0x56dd48 MOV X0, X19; this ; +0x14c, 0x56dd4c BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x150, 0x56dd50 MOV X20, X0 ; +0x154, 0x56dd54 LDR X2, [X27] ; +0x158, 0x56dd58 MOV X0, X27 ; +0x15c, 0x56dd5c MOV W1, #1 ; +0x160, 0x56dd60 LDR X2, [X2,#0x148] ; +0x164, 0x56dd64 BLR X2 ; +0x168, 0x56dd68 LDR X2, [X23] ; +0x16c, 0x56dd6c MOV X0, X23 ; +0x170, 0x56dd70 LDRB W1, [X19,#0x221] ; +0x174, 0x56dd74 LDR X2, [X2,#0x148] ; +0x178, 0x56dd78 EOR W1, W1, #1 ; +0x17c, 0x56dd7c BLR X2 ; +0x180, 0x56dd80 LDR X2, [X20] ; +0x184, 0x56dd84 MOV X0, X20 ; +0x188, 0x56dd88 LDRB W1, [X19,#0x221] ; +0x18c, 0x56dd8c LDR X2, [X2,#0x148] ; +0x190, 0x56dd90 EOR W1, W1, #1 ; +0x194, 0x56dd94 BLR X2 ; +0x198, 0x56dd98 LDR X21, [X21,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x19c, 0x56dd9c LDR X1, [X29,#0x80+var_8] ; +0x1a0, 0x56dda0 LDR X0, [X21] ; +0x1a4, 0x56dda4 CMP X1, X0 ; +0x1a8, 0x56dda8 B.NE loc_56DEC8 ; +0x1ac, 0x56ddac LDP X19, X20, [SP,#0x80+var_70] ; +0x1b0, 0x56ddb0 LDP X21, X22, [SP,#0x80+var_60] ; +0x1b4, 0x56ddb4 LDP X23, X24, [SP,#0x80+var_50] ; +0x1b8, 0x56ddb8 LDP X25, X26, [SP,#0x80+var_40] ; +0x1bc, 0x56ddbc LDP X27, X28, [SP,#0x80+var_30] ; +0x1c0, 0x56ddc0 LDP X29, X30, [SP+0x80+var_80],#0x80 ; +0x1c4, 0x56ddc4 RET ; +0x1c8, 0x56ddc8 LDR W1, [X19,#0x244]; int ; +0x1cc, 0x56ddcc MOV X0, X19; this ; +0x1d0, 0x56ddd0 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x1d4, 0x56ddd4 MOV X27, X0 ; +0x1d8, 0x56ddd8 LDR W1, [X19,#0x244] ; +0x1dc, 0x56dddc MOV X0, X19; this ; +0x1e0, 0x56dde0 SUB W1, W1, #1; int ; +0x1e4, 0x56dde4 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x1e8, 0x56dde8 MOV X23, X0 ; +0x1ec, 0x56ddec LDR W1, [X19,#0x244] ; +0x1f0, 0x56ddf0 MOV X0, X19; this ; +0x1f4, 0x56ddf4 ADD W1, W1, #1; int ; +0x1f8, 0x56ddf8 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x1fc, 0x56ddfc LDR X22, [X19,#0x1B0] ; +0x200, 0x56de00 MOV X20, X0 ; +0x204, 0x56de04 LDR W1, [X29,#0x80+var_14]; unsigned int ; +0x208, 0x56de08 LDR X0, [X19,#0x1B8]; this ; +0x20c, 0x56de0c LDR X2, [X22] ; +0x210, 0x56de10 LDR X26, [X2] ; +0x214, 0x56de14 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x218, 0x56de18 MOV X1, X27 ; +0x21c, 0x56de1c MOV X2, X0 ; +0x220, 0x56de20 MOV X0, X22 ; +0x224, 0x56de24 BLR X26 ; +0x228, 0x56de28 LDR X22, [X19,#0x1B0] ; +0x22c, 0x56de2c LDR X0, [X19,#0x1B8]; this ; +0x230, 0x56de30 MOV W1, W25; unsigned int ; +0x234, 0x56de34 LDR X2, [X22] ; +0x238, 0x56de38 LDR X25, [X2] ; +0x23c, 0x56de3c BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x240, 0x56de40 MOV X1, X23 ; +0x244, 0x56de44 MOV X2, X0 ; +0x248, 0x56de48 MOV X0, X22 ; +0x24c, 0x56de4c BLR X25 ; +0x250, 0x56de50 LDR X22, [X19,#0x1B0] ; +0x254, 0x56de54 LDR X0, [X19,#0x1B8]; this ; +0x258, 0x56de58 MOV W1, W24; unsigned int ; +0x25c, 0x56de5c LDR X2, [X22] ; +0x260, 0x56de60 LDR X24, [X2] ; +0x264, 0x56de64 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x268, 0x56de68 MOV X1, X20 ; +0x26c, 0x56de6c MOV X2, X0 ; +0x270, 0x56de70 MOV X0, X22 ; +0x274, 0x56de74 BLR X24 ; +0x278, 0x56de78 B loc_56DD58 ; +0x27c, 0x56de7c LDR W1, [X19,#0x244]; int ; +0x280, 0x56de80 MOV X0, X19; this ; +0x284, 0x56de84 ADD X27, X29, #0x80+var_10 ; +0x288, 0x56de88 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x28c, 0x56de8c MOV X20, X0 ; +0x290, 0x56de90 LDR W1, [X19,#0x244]; int ; +0x294, 0x56de94 MOV X8, X27 ; +0x298, 0x56de98 MOV X0, X19; this ; +0x29c, 0x56de9c LDR X2, [X20] ; +0x2a0, 0x56dea0 LDR X22, [X2,#0xB8] ; +0x2a4, 0x56dea4 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x2a8, 0x56dea8 MOV X0, X20 ; +0x2ac, 0x56deac MOV X1, X27 ; +0x2b0, 0x56deb0 BLR X22 ; +0x2b4, 0x56deb4 LDR W22, [X19,#0x244] ; +0x2b8, 0x56deb8 SUB W23, W22, #1 ; +0x2bc, 0x56debc ADD W22, W22, #1 ; +0x2c0, 0x56dec0 B loc_56DC78 ; +0x2c4, 0x56dec4 BL .__stack_chk_fail ; +0x2c8, 0x56dec8