; ; BoomScrollLayer::repositionPagesLooped from 0x2e22d8 to 0x2e24ae (470 bytes) ; ; 3 xrefs: ; > BoomScrollLayer::instantMoveToPage @ 0x2e250e ; > BoomScrollLayer::moveToPage @ 0x2e2638 ; > BoomScrollLayer::init @ 0x2e2d84 ; ; 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 ; PUSH.W {R4-R11,LR} ; +0x0, 0x2e22d8 SUB SP, SP, #0x1C ; +0x4, 0x2e22dc LDR R5, =(__stack_chk_guard_ptr - 0x2E22EA) ; +0x6, 0x2e22de MOV R4, R0 ; +0x8, 0x2e22e0 LDR.W R1, [R0,#0x1CC]; int ; +0xa, 0x2e22e2 ADD R5, PC; __stack_chk_guard_ptr ; +0xe, 0x2e22e6 LDR R5, [R5]; __stack_chk_guard ; +0x10, 0x2e22e8 LDR R3, [R5] ; +0x12, 0x2e22ea STR R3, [SP,#0x1C+var_8] ; +0x14, 0x2e22ec BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x16, 0x2e22ee LDR.W R1, [R4,#0x1CC] ; +0x1a, 0x2e22f2 SUBS R1, #1; int ; +0x1e, 0x2e22f6 MOV R8, R0 ; +0x20, 0x2e22f8 MOV R0, R4; this ; +0x22, 0x2e22fa BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x24, 0x2e22fc LDR.W R1, [R4,#0x1CC] ; +0x28, 0x2e2300 ADDS R1, #1; int ; +0x2c, 0x2e2304 MOV R10, R0 ; +0x2e, 0x2e2306 MOV R0, R4; this ; +0x30, 0x2e2308 BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x32, 0x2e230a LDRB.W R3, [R4,#0x158] ; +0x36, 0x2e230e STR R5, [SP,#0x1C+var_1C] ; +0x3a, 0x2e2312 MOV R9, R0 ; +0x3c, 0x2e2314 CBZ R3, loc_2E2348 ; +0x3e, 0x2e2316 LDR.W R1, [R4,#0x1CC]; int ; +0x40, 0x2e2318 MOV R0, R4; this ; +0x44, 0x2e231c BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x46, 0x2e231e ADD R6, SP, #0x1C+var_10 ; +0x4a, 0x2e2322 MOV R1, R4; int ; +0x4c, 0x2e2324 LDR.W R2, [R4,#0x1CC] ; +0x4e, 0x2e2326 LDR R3, [R0] ; +0x52, 0x2e232a MOV R7, R0 ; +0x54, 0x2e232c MOV R0, R6; this ; +0x56, 0x2e232e LDR R5, [R3,#0x5C] ; +0x58, 0x2e2330 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x5a, 0x2e2332 MOV R1, R6 ; +0x5e, 0x2e2336 MOV R0, R7 ; +0x60, 0x2e2338 BLX R5 ; +0x62, 0x2e233a LDR.W R6, [R4,#0x1CC] ; +0x64, 0x2e233c ADD.W R11, R6, #0xFFFFFFFF ; +0x68, 0x2e2340 ADDS R6, #1 ; +0x6c, 0x2e2344 B loc_2E234C ; +0x6e, 0x2e2346 MOV R6, R0 ; +0x70, 0x2e2348 MOV R11, R10 ; +0x72, 0x2e234a MOV R1, R11; int ; +0x74, 0x2e234c MOV R0, R4; this ; +0x76, 0x2e234e BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x78, 0x2e2350 ADD R7, SP, #0x1C+var_10 ; +0x7c, 0x2e2354 LDR.W R2, [R4,#0x1CC] ; +0x7e, 0x2e2356 MOV R1, R4; int ; +0x82, 0x2e235a SUBS R2, #1 ; +0x84, 0x2e235c LDR R3, [R0] ; +0x86, 0x2e235e STR R0, [SP,#0x1C+var_18] ; +0x88, 0x2e2360 MOV R0, R7; this ; +0x8a, 0x2e2362 LDR R5, [R3,#0x5C] ; +0x8c, 0x2e2364 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x8e, 0x2e2366 LDR.W R12, [SP,#0x1C+var_18] ; +0x92, 0x2e236a MOV R1, R7 ; +0x96, 0x2e236e MOV R0, R12 ; +0x98, 0x2e2370 BLX R5 ; +0x9a, 0x2e2372 MOV R1, R6; int ; +0x9c, 0x2e2374 MOV R0, R4; this ; +0x9e, 0x2e2376 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0xa0, 0x2e2378 LDR.W R2, [R4,#0x1CC] ; +0xa4, 0x2e237c MOV R1, R4; int ; +0xa8, 0x2e2380 ADDS R2, #1 ; +0xaa, 0x2e2382 LDR R3, [R0] ; +0xac, 0x2e2384 STR R0, [SP,#0x1C+var_18] ; +0xae, 0x2e2386 MOV R0, R7; this ; +0xb0, 0x2e2388 LDR R5, [R3,#0x5C] ; +0xb2, 0x2e238a BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0xb4, 0x2e238c LDR.W R12, [SP,#0x1C+var_18] ; +0xb8, 0x2e2390 MOV R1, R7 ; +0xbc, 0x2e2394 MOVS R7, #0 ; +0xbe, 0x2e2396 MOV R0, R12 ; +0xc0, 0x2e2398 BLX R5 ; +0xc2, 0x2e239a LDR.W R0, [R4,#0x168]; this ; +0xc4, 0x2e239c BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc8, 0x2e23a0 CMP R7, R0 ; +0xcc, 0x2e23a4 BCS loc_2E23C0 ; +0xce, 0x2e23a6 MOV R1, R7; unsigned int ; +0xd0, 0x2e23a8 LDR.W R0, [R4,#0x168]; this ; +0xd2, 0x2e23aa BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xd6, 0x2e23ae MOVS R1, #0 ; +0xda, 0x2e23b2 ADDS R7, #1 ; +0xdc, 0x2e23b4 LDR R3, [R0] ; +0xde, 0x2e23b6 LDR.W R3, [R3,#0xA4] ; +0xe0, 0x2e23b8 BLX R3 ; +0xe4, 0x2e23bc B loc_2E239C ; +0xe6, 0x2e23be LDRB.W R3, [R4,#0x158] ; +0xe8, 0x2e23c0 MOV R0, R4; this ; +0xec, 0x2e23c4 CMP R3, #0 ; +0xee, 0x2e23c6 BEQ loc_2E244E ; +0xf0, 0x2e23c8 LDR.W R1, [R4,#0x1CC]; int ; +0xf2, 0x2e23ca BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0xf6, 0x2e23ce LDR.W R1, [R4,#0x1CC] ; +0xfa, 0x2e23d2 SUBS R1, #1; int ; +0xfe, 0x2e23d6 MOV R5, R0 ; +0x100, 0x2e23d8 MOV R0, R4; this ; +0x102, 0x2e23da BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x104, 0x2e23dc LDR.W R1, [R4,#0x1CC] ; +0x108, 0x2e23e0 ADDS R1, #1; int ; +0x10c, 0x2e23e4 MOV R7, R0 ; +0x10e, 0x2e23e6 MOV R0, R4; this ; +0x110, 0x2e23e8 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x112, 0x2e23ea LDR.W R3, [R4,#0x150] ; +0x116, 0x2e23ee MOV R1, R8; unsigned int ; +0x11a, 0x2e23f2 LDR R2, [R3] ; +0x11c, 0x2e23f4 STR R3, [SP,#0x1C+var_18] ; +0x11e, 0x2e23f6 LDR.W R11, [R2] ; +0x120, 0x2e23f8 MOV R6, R0 ; +0x124, 0x2e23fc LDR.W R0, [R4,#0x154]; this ; +0x126, 0x2e23fe BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x12a, 0x2e2402 LDR R3, [SP,#0x1C+var_18] ; +0x12e, 0x2e2406 MOV R1, R5 ; +0x130, 0x2e2408 MOV R2, R0 ; +0x132, 0x2e240a MOV R0, R3 ; +0x134, 0x2e240c BLX R11 ; +0x136, 0x2e240e LDR.W R8, [R4,#0x150] ; +0x138, 0x2e2410 MOV R1, R10; unsigned int ; +0x13c, 0x2e2414 LDR.W R0, [R4,#0x154]; this ; +0x13e, 0x2e2416 LDR.W R2, [R8] ; +0x142, 0x2e241a LDR.W R11, [R2] ; +0x146, 0x2e241e BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x14a, 0x2e2422 MOV R1, R7 ; +0x14e, 0x2e2426 MOV R2, R0 ; +0x150, 0x2e2428 MOV R0, R8 ; +0x152, 0x2e242a BLX R11 ; +0x154, 0x2e242c LDR.W R8, [R4,#0x150] ; +0x156, 0x2e242e MOV R1, R9; unsigned int ; +0x15a, 0x2e2432 LDR.W R0, [R4,#0x154]; this ; +0x15c, 0x2e2434 LDR.W R2, [R8] ; +0x160, 0x2e2438 LDR.W R10, [R2] ; +0x164, 0x2e243c BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x168, 0x2e2440 MOV R1, R6 ; +0x16c, 0x2e2444 MOV R2, R0 ; +0x16e, 0x2e2446 MOV R0, R8 ; +0x170, 0x2e2448 BLX R10 ; +0x172, 0x2e244a B loc_2E246A ; +0x174, 0x2e244c MOV R1, R8; int ; +0x176, 0x2e244e BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x178, 0x2e2450 MOV R1, R11; int ; +0x17c, 0x2e2454 MOV R5, R0 ; +0x17e, 0x2e2456 MOV R0, R4; this ; +0x180, 0x2e2458 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x182, 0x2e245a MOV R1, R6; int ; +0x186, 0x2e245e MOV R7, R0 ; +0x188, 0x2e2460 MOV R0, R4; this ; +0x18a, 0x2e2462 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x18c, 0x2e2464 MOV R6, R0 ; +0x190, 0x2e2468 LDR R2, [R5] ; +0x192, 0x2e246a MOV R0, R5 ; +0x194, 0x2e246c MOVS R1, #1 ; +0x196, 0x2e246e LDR.W R2, [R2,#0xA4] ; +0x198, 0x2e2470 BLX R2 ; +0x19c, 0x2e2474 LDR R3, [R7] ; +0x19e, 0x2e2476 LDRB.W R1, [R4,#0x1A9] ; +0x1a0, 0x2e2478 MOV R0, R7 ; +0x1a4, 0x2e247c LDR.W R3, [R3,#0xA4] ; +0x1a6, 0x2e247e EOR.W R1, R1, #1 ; +0x1aa, 0x2e2482 BLX R3 ; +0x1ae, 0x2e2486 LDR R3, [R6] ; +0x1b0, 0x2e2488 LDRB.W R1, [R4,#0x1A9] ; +0x1b2, 0x2e248a MOV R0, R6 ; +0x1b6, 0x2e248e LDR.W R3, [R3,#0xA4] ; +0x1b8, 0x2e2490 EOR.W R1, R1, #1 ; +0x1bc, 0x2e2494 BLX R3 ; +0x1c0, 0x2e2498 LDR R3, [SP,#0x1C+var_1C] ; +0x1c2, 0x2e249a LDR R2, [SP,#0x1C+var_8] ; +0x1c4, 0x2e249c LDR R3, [R3] ; +0x1c6, 0x2e249e CMP R2, R3 ; +0x1c8, 0x2e24a0 BEQ loc_2E24A8 ; +0x1ca, 0x2e24a2 BLX __stack_chk_fail ; +0x1cc, 0x2e24a4 ADD SP, SP, #0x1C ; +0x1d0, 0x2e24a8 POP.W {R4-R11,PC} ; +0x1d2, 0x2e24aa