; ; BoomScrollLayer::repositionPagesLooped from 0x3c19c8 to 0x3c1b9e (470 bytes) ; ; 3 xrefs: ; > BoomScrollLayer::instantMoveToPage @ 0x3c1bfe ; > BoomScrollLayer::moveToPage @ 0x3c1d28 ; > BoomScrollLayer::init @ 0x3c2474 ; ; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:46:31 +0000 ; PUSH.W {R4-R11,LR} ; +0x0, 0x3c19c8 SUB SP, SP, #0x1C ; +0x4, 0x3c19cc LDR R5, =(__stack_chk_guard_ptr - 0x3C19DA) ; +0x6, 0x3c19ce MOV R4, R0 ; +0x8, 0x3c19d0 LDR.W R1, [R0,#0x1CC]; int ; +0xa, 0x3c19d2 ADD R5, PC; __stack_chk_guard_ptr ; +0xe, 0x3c19d6 LDR R5, [R5]; __stack_chk_guard ; +0x10, 0x3c19d8 LDR R3, [R5] ; +0x12, 0x3c19da STR R3, [SP,#0x1C+var_8] ; +0x14, 0x3c19dc BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x16, 0x3c19de LDR.W R1, [R4,#0x1CC] ; +0x1a, 0x3c19e2 SUBS R1, #1; int ; +0x1e, 0x3c19e6 MOV R8, R0 ; +0x20, 0x3c19e8 MOV R0, R4; this ; +0x22, 0x3c19ea BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x24, 0x3c19ec LDR.W R1, [R4,#0x1CC] ; +0x28, 0x3c19f0 ADDS R1, #1; int ; +0x2c, 0x3c19f4 MOV R10, R0 ; +0x2e, 0x3c19f6 MOV R0, R4; this ; +0x30, 0x3c19f8 BL _ZN15BoomScrollLayer21getRelativePageForNumEi; BoomScrollLayer::getRelativePageForNum(int) ; +0x32, 0x3c19fa LDRB.W R3, [R4,#0x15C] ; +0x36, 0x3c19fe STR R5, [SP,#0x1C+var_1C] ; +0x3a, 0x3c1a02 MOV R9, R0 ; +0x3c, 0x3c1a04 CBZ R3, loc_3C1A38 ; +0x3e, 0x3c1a06 LDR.W R1, [R4,#0x1CC]; int ; +0x40, 0x3c1a08 MOV R0, R4; this ; +0x44, 0x3c1a0c BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x46, 0x3c1a0e ADD R6, SP, #0x1C+var_10 ; +0x4a, 0x3c1a12 MOV R1, R4; int ; +0x4c, 0x3c1a14 LDR.W R2, [R4,#0x1CC] ; +0x4e, 0x3c1a16 LDR R3, [R0] ; +0x52, 0x3c1a1a MOV R7, R0 ; +0x54, 0x3c1a1c MOV R0, R6; this ; +0x56, 0x3c1a1e LDR R5, [R3,#0x5C] ; +0x58, 0x3c1a20 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x5a, 0x3c1a22 MOV R1, R6 ; +0x5e, 0x3c1a26 MOV R0, R7 ; +0x60, 0x3c1a28 BLX R5 ; +0x62, 0x3c1a2a LDR.W R6, [R4,#0x1CC] ; +0x64, 0x3c1a2c ADD.W R11, R6, #0xFFFFFFFF ; +0x68, 0x3c1a30 ADDS R6, #1 ; +0x6c, 0x3c1a34 B loc_3C1A3C ; +0x6e, 0x3c1a36 MOV R6, R0 ; +0x70, 0x3c1a38 MOV R11, R10 ; +0x72, 0x3c1a3a MOV R1, R11; int ; +0x74, 0x3c1a3c MOV R0, R4; this ; +0x76, 0x3c1a3e BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x78, 0x3c1a40 ADD R7, SP, #0x1C+var_10 ; +0x7c, 0x3c1a44 LDR.W R2, [R4,#0x1CC] ; +0x7e, 0x3c1a46 MOV R1, R4; int ; +0x82, 0x3c1a4a SUBS R2, #1 ; +0x84, 0x3c1a4c LDR R3, [R0] ; +0x86, 0x3c1a4e STR R0, [SP,#0x1C+var_18] ; +0x88, 0x3c1a50 MOV R0, R7; this ; +0x8a, 0x3c1a52 LDR R5, [R3,#0x5C] ; +0x8c, 0x3c1a54 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x8e, 0x3c1a56 LDR.W R12, [SP,#0x1C+var_18] ; +0x92, 0x3c1a5a MOV R1, R7 ; +0x96, 0x3c1a5e MOV R0, R12 ; +0x98, 0x3c1a60 BLX R5 ; +0x9a, 0x3c1a62 MOV R1, R6; int ; +0x9c, 0x3c1a64 MOV R0, R4; this ; +0x9e, 0x3c1a66 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0xa0, 0x3c1a68 LDR.W R2, [R4,#0x1CC] ; +0xa4, 0x3c1a6c MOV R1, R4; int ; +0xa8, 0x3c1a70 ADDS R2, #1 ; +0xaa, 0x3c1a72 LDR R3, [R0] ; +0xac, 0x3c1a74 STR R0, [SP,#0x1C+var_18] ; +0xae, 0x3c1a76 MOV R0, R7; this ; +0xb0, 0x3c1a78 LDR R5, [R3,#0x5C] ; +0xb2, 0x3c1a7a BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0xb4, 0x3c1a7c LDR.W R12, [SP,#0x1C+var_18] ; +0xb8, 0x3c1a80 MOV R1, R7 ; +0xbc, 0x3c1a84 MOVS R7, #0 ; +0xbe, 0x3c1a86 MOV R0, R12 ; +0xc0, 0x3c1a88 BLX R5 ; +0xc2, 0x3c1a8a LDR.W R0, [R4,#0x16C]; this ; +0xc4, 0x3c1a8c BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xc8, 0x3c1a90 CMP R7, R0 ; +0xcc, 0x3c1a94 BCS loc_3C1AB0 ; +0xce, 0x3c1a96 MOV R1, R7; unsigned int ; +0xd0, 0x3c1a98 LDR.W R0, [R4,#0x16C]; this ; +0xd2, 0x3c1a9a BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xd6, 0x3c1a9e MOVS R1, #0 ; +0xda, 0x3c1aa2 ADDS R7, #1 ; +0xdc, 0x3c1aa4 LDR R3, [R0] ; +0xde, 0x3c1aa6 LDR.W R3, [R3,#0xAC] ; +0xe0, 0x3c1aa8 BLX R3 ; +0xe4, 0x3c1aac B loc_3C1A8C ; +0xe6, 0x3c1aae LDRB.W R3, [R4,#0x15C] ; +0xe8, 0x3c1ab0 MOV R0, R4; this ; +0xec, 0x3c1ab4 CMP R3, #0 ; +0xee, 0x3c1ab6 BEQ loc_3C1B3E ; +0xf0, 0x3c1ab8 LDR.W R1, [R4,#0x1CC]; int ; +0xf2, 0x3c1aba BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0xf6, 0x3c1abe LDR.W R1, [R4,#0x1CC] ; +0xfa, 0x3c1ac2 SUBS R1, #1; int ; +0xfe, 0x3c1ac6 MOV R5, R0 ; +0x100, 0x3c1ac8 MOV R0, R4; this ; +0x102, 0x3c1aca BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x104, 0x3c1acc LDR.W R1, [R4,#0x1CC] ; +0x108, 0x3c1ad0 ADDS R1, #1; int ; +0x10c, 0x3c1ad4 MOV R7, R0 ; +0x10e, 0x3c1ad6 MOV R0, R4; this ; +0x110, 0x3c1ad8 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x112, 0x3c1ada LDR.W R3, [R4,#0x154] ; +0x116, 0x3c1ade MOV R1, R8; unsigned int ; +0x11a, 0x3c1ae2 LDR R2, [R3] ; +0x11c, 0x3c1ae4 STR R3, [SP,#0x1C+var_18] ; +0x11e, 0x3c1ae6 LDR.W R11, [R2] ; +0x120, 0x3c1ae8 MOV R6, R0 ; +0x124, 0x3c1aec LDR.W R0, [R4,#0x158]; this ; +0x126, 0x3c1aee BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x12a, 0x3c1af2 LDR R3, [SP,#0x1C+var_18] ; +0x12e, 0x3c1af6 MOV R1, R5 ; +0x130, 0x3c1af8 MOV R2, R0 ; +0x132, 0x3c1afa MOV R0, R3 ; +0x134, 0x3c1afc BLX R11 ; +0x136, 0x3c1afe LDR.W R8, [R4,#0x154] ; +0x138, 0x3c1b00 MOV R1, R10; unsigned int ; +0x13c, 0x3c1b04 LDR.W R0, [R4,#0x158]; this ; +0x13e, 0x3c1b06 LDR.W R2, [R8] ; +0x142, 0x3c1b0a LDR.W R11, [R2] ; +0x146, 0x3c1b0e BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x14a, 0x3c1b12 MOV R1, R7 ; +0x14e, 0x3c1b16 MOV R2, R0 ; +0x150, 0x3c1b18 MOV R0, R8 ; +0x152, 0x3c1b1a BLX R11 ; +0x154, 0x3c1b1c LDR.W R8, [R4,#0x154] ; +0x156, 0x3c1b1e MOV R1, R9; unsigned int ; +0x15a, 0x3c1b22 LDR.W R0, [R4,#0x158]; this ; +0x15c, 0x3c1b24 LDR.W R2, [R8] ; +0x160, 0x3c1b28 LDR.W R10, [R2] ; +0x164, 0x3c1b2c BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x168, 0x3c1b30 MOV R1, R6 ; +0x16c, 0x3c1b34 MOV R2, R0 ; +0x16e, 0x3c1b36 MOV R0, R8 ; +0x170, 0x3c1b38 BLX R10 ; +0x172, 0x3c1b3a B loc_3C1B5A ; +0x174, 0x3c1b3c MOV R1, R8; int ; +0x176, 0x3c1b3e BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x178, 0x3c1b40 MOV R1, R11; int ; +0x17c, 0x3c1b44 MOV R5, R0 ; +0x17e, 0x3c1b46 MOV R0, R4; this ; +0x180, 0x3c1b48 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x182, 0x3c1b4a MOV R1, R6; int ; +0x186, 0x3c1b4e MOV R7, R0 ; +0x188, 0x3c1b50 MOV R0, R4; this ; +0x18a, 0x3c1b52 BL _ZN15BoomScrollLayer7getPageEi; BoomScrollLayer::getPage(int) ; +0x18c, 0x3c1b54 MOV R6, R0 ; +0x190, 0x3c1b58 LDR R2, [R5] ; +0x192, 0x3c1b5a MOV R0, R5 ; +0x194, 0x3c1b5c MOVS R1, #1 ; +0x196, 0x3c1b5e LDR.W R2, [R2,#0xAC] ; +0x198, 0x3c1b60 BLX R2 ; +0x19c, 0x3c1b64 LDR R3, [R7] ; +0x19e, 0x3c1b66 LDRB.W R1, [R4,#0x1A9] ; +0x1a0, 0x3c1b68 MOV R0, R7 ; +0x1a4, 0x3c1b6c LDR.W R3, [R3,#0xAC] ; +0x1a6, 0x3c1b6e EOR.W R1, R1, #1 ; +0x1aa, 0x3c1b72 BLX R3 ; +0x1ae, 0x3c1b76 LDR R3, [R6] ; +0x1b0, 0x3c1b78 LDRB.W R1, [R4,#0x1A9] ; +0x1b2, 0x3c1b7a MOV R0, R6 ; +0x1b6, 0x3c1b7e LDR.W R3, [R3,#0xAC] ; +0x1b8, 0x3c1b80 EOR.W R1, R1, #1 ; +0x1bc, 0x3c1b84 BLX R3 ; +0x1c0, 0x3c1b88 LDR R3, [SP,#0x1C+var_1C] ; +0x1c2, 0x3c1b8a LDR R2, [SP,#0x1C+var_8] ; +0x1c4, 0x3c1b8c LDR R3, [R3] ; +0x1c6, 0x3c1b8e CMP R2, R3 ; +0x1c8, 0x3c1b90 BEQ loc_3C1B98 ; +0x1ca, 0x3c1b92 BLX __stack_chk_fail ; +0x1cc, 0x3c1b94 ADD SP, SP, #0x1C ; +0x1d0, 0x3c1b98 POP.W {R4-R11,PC} ; +0x1d2, 0x3c1b9a