; ; BoomScrollLayer::setupDynamicScrolling from 0x2e2168 to 0x2e22d2 (362 bytes) ; ; 1 xrefs: ; > BoomScrollLayer::init @ 0x2e2d94 ; ; 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 {R0-R10,LR} ; +0x0, 0x2e2168 MOV R4, R0 ; +0x4, 0x2e216c LDR R3, =(__stack_chk_guard_ptr - 0x2E217A) ; +0x6, 0x2e216e MOV R8, R1 ; +0x8, 0x2e2170 STR.W R2, [R0,#0x150] ; +0xa, 0x2e2172 ADD R3, PC; __stack_chk_guard_ptr ; +0xe, 0x2e2176 LDR R3, [R3]; __stack_chk_guard ; +0x10, 0x2e2178 LDR.W R0, [R0,#0x154]; this ; +0x12, 0x2e217a LDR R1, [R3] ; +0x16, 0x2e217e MOV R7, R3 ; +0x18, 0x2e2180 STR R1, [SP,#0x10+var_4] ; +0x1a, 0x2e2182 CBZ R0, loc_2E218A ; +0x1c, 0x2e2184 BL _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x1e, 0x2e2186 MOV R0, R8; this ; +0x22, 0x2e218a STR.W R8, [R4,#0x154] ; +0x24, 0x2e218c BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x28, 0x2e2190 MOVS R6, #1 ; +0x2c, 0x2e2194 LDR.W R0, [R4,#0x168]; this ; +0x2e, 0x2e2196 ADD R5, SP, #0x10+var_C ; +0x32, 0x2e219a STRB.W R6, [R4,#0x158] ; +0x34, 0x2e219c BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0x38, 0x2e21a0 MOV.W R2, #0xFFFFFFFF ; +0x3c, 0x2e21a4 MOV R1, R4; int ; +0x40, 0x2e21a8 LDR R3, [R0] ; +0x42, 0x2e21aa MOV R9, R0 ; +0x44, 0x2e21ac MOV R0, R5; this ; +0x46, 0x2e21ae LDR.W R10, [R3,#0x5C] ; +0x48, 0x2e21b0 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x4c, 0x2e21b4 MOV R0, R9 ; +0x50, 0x2e21b8 MOV R1, R5 ; +0x52, 0x2e21ba BLX R10 ; +0x54, 0x2e21bc MOVS R1, #0; unsigned int ; +0x56, 0x2e21be LDR.W R0, [R4,#0x168]; this ; +0x58, 0x2e21c0 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x5c, 0x2e21c4 MOVS R2, #0 ; +0x60, 0x2e21c8 MOV R1, R4; int ; +0x62, 0x2e21ca LDR R3, [R0] ; +0x64, 0x2e21cc MOV R9, R0 ; +0x66, 0x2e21ce MOV R0, R5; this ; +0x68, 0x2e21d0 LDR.W R10, [R3,#0x5C] ; +0x6a, 0x2e21d2 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x6e, 0x2e21d6 MOV R0, R9 ; +0x72, 0x2e21da MOV R1, R5 ; +0x74, 0x2e21dc BLX R10 ; +0x76, 0x2e21de MOV R1, R6; unsigned int ; +0x78, 0x2e21e0 LDR.W R0, [R4,#0x168]; this ; +0x7a, 0x2e21e2 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x7e, 0x2e21e6 MOV R2, R6 ; +0x82, 0x2e21ea MOV R1, R4; int ; +0x84, 0x2e21ec LDR R3, [R0] ; +0x86, 0x2e21ee MOV R9, R0 ; +0x88, 0x2e21f0 MOV R0, R5; this ; +0x8a, 0x2e21f2 LDR.W R10, [R3,#0x5C] ; +0x8c, 0x2e21f4 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x90, 0x2e21f8 MOV R1, R5 ; +0x94, 0x2e21fc MOV R0, R9 ; +0x96, 0x2e21fe BLX R10 ; +0x98, 0x2e2200 LDR.W R5, [R4,#0x150] ; +0x9a, 0x2e2202 LDR.W R0, [R4,#0x168]; this ; +0x9e, 0x2e2206 LDR R3, [R5] ; +0xa2, 0x2e220a LDR.W R9, [R3] ; +0xa4, 0x2e220c BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0xa8, 0x2e2210 MOV R10, R0 ; +0xac, 0x2e2214 LDR.W R0, [R4,#0x154]; this ; +0xae, 0x2e2216 BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0xb2, 0x2e221a MOV R1, R10 ; +0xb6, 0x2e221e MOV R2, R0 ; +0xb8, 0x2e2220 MOV R0, R5 ; +0xba, 0x2e2222 BLX R9 ; +0xbc, 0x2e2224 LDR.W R5, [R4,#0x150] ; +0xbe, 0x2e2226 MOVS R1, #0; unsigned int ; +0xc2, 0x2e222a LDR.W R0, [R4,#0x168]; this ; +0xc4, 0x2e222c LDR R3, [R5] ; +0xc8, 0x2e2230 LDR.W R9, [R3] ; +0xca, 0x2e2232 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xce, 0x2e2236 MOVS R1, #0; unsigned int ; +0xd2, 0x2e223a MOV R10, R0 ; +0xd4, 0x2e223c LDR.W R0, [R4,#0x154]; this ; +0xd6, 0x2e223e BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xda, 0x2e2242 MOV R1, R10 ; +0xde, 0x2e2246 MOV R2, R0 ; +0xe0, 0x2e2248 MOV R0, R5 ; +0xe2, 0x2e224a BLX R9 ; +0xe4, 0x2e224c LDR.W R5, [R4,#0x150] ; +0xe6, 0x2e224e MOV R1, R6; unsigned int ; +0xea, 0x2e2252 LDR.W R0, [R4,#0x168]; this ; +0xec, 0x2e2254 LDR R3, [R5] ; +0xf0, 0x2e2258 LDR.W R9, [R3] ; +0xf2, 0x2e225a BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xf6, 0x2e225e MOV R1, R6; unsigned int ; +0xfa, 0x2e2262 MOV R10, R0 ; +0xfc, 0x2e2264 LDR.W R0, [R4,#0x154]; this ; +0xfe, 0x2e2266 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x102, 0x2e226a MOV R1, R10 ; +0x106, 0x2e226e MOV R2, R0 ; +0x108, 0x2e2270 MOV R0, R5 ; +0x10a, 0x2e2272 BLX R9 ; +0x10c, 0x2e2274 LDR.W R0, [R4,#0x154]; this ; +0x10e, 0x2e2276 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x112, 0x2e227a CMP R0, #2 ; +0x116, 0x2e227e BHI loc_2E22C0 ; +0x118, 0x2e2280 MOVS R3, #0 ; +0x11a, 0x2e2282 STRB.W R3, [R4,#0x158] ; +0x11c, 0x2e2284 STRB.W R3, [R4,#0x14C] ; +0x120, 0x2e2288 LDR.W R0, [R4,#0x168]; this ; +0x124, 0x2e228c BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x128, 0x2e2290 MOV R5, R0 ; +0x12c, 0x2e2294 MOV R0, R8; this ; +0x12e, 0x2e2296 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x130, 0x2e2298 CMP R5, R0 ; +0x134, 0x2e229c BLS loc_2E22C0 ; +0x136, 0x2e229e LDR.W R0, [R4,#0x168]; this ; +0x138, 0x2e22a0 BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0x13c, 0x2e22a4 MOVS R1, #1; bool ; +0x140, 0x2e22a8 MOV R5, R0 ; +0x142, 0x2e22aa LDR.W R0, [R4,#0x168]; this ; +0x144, 0x2e22ac BL _ZN7cocos2d7CCArray16removeLastObjectEb; cocos2d::CCArray::removeLastObject(bool) ; +0x148, 0x2e22b0 LDR R3, [R5] ; +0x14c, 0x2e22b4 MOV R0, R5 ; +0x14e, 0x2e22b6 LDR.W R3, [R3,#0x104] ; +0x150, 0x2e22b8 BLX R3 ; +0x154, 0x2e22bc B loc_2E228C ; +0x156, 0x2e22be LDR R2, [SP,#0x10+var_4] ; +0x158, 0x2e22c0 LDR R3, [R7] ; +0x15a, 0x2e22c2 CMP R2, R3 ; +0x15c, 0x2e22c4 BEQ loc_2E22CC ; +0x15e, 0x2e22c6 BLX __stack_chk_fail ; +0x160, 0x2e22c8 ADD SP, SP, #0x10 ; +0x164, 0x2e22cc POP.W {R4-R10,PC} ; +0x166, 0x2e22ce