; ; BoomScrollLayer::setupDynamicScrolling from 0x3c1858 to 0x3c19c2 (362 bytes) ; ; 1 xrefs: ; > BoomScrollLayer::init @ 0x3c2484 ; ; 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 {R0-R10,LR} ; +0x0, 0x3c1858 MOV R4, R0 ; +0x4, 0x3c185c LDR R3, =(__stack_chk_guard_ptr - 0x3C186A) ; +0x6, 0x3c185e MOV R8, R1 ; +0x8, 0x3c1860 STR.W R2, [R0,#0x154] ; +0xa, 0x3c1862 ADD R3, PC; __stack_chk_guard_ptr ; +0xe, 0x3c1866 LDR R3, [R3]; __stack_chk_guard ; +0x10, 0x3c1868 LDR.W R0, [R0,#0x158]; this ; +0x12, 0x3c186a LDR R1, [R3] ; +0x16, 0x3c186e MOV R7, R3 ; +0x18, 0x3c1870 STR R1, [SP,#0x10+var_4] ; +0x1a, 0x3c1872 CBZ R0, loc_3C187A ; +0x1c, 0x3c1874 BL _ZN7cocos2d8CCObject7releaseEv; cocos2d::CCObject::release(void) ; +0x1e, 0x3c1876 MOV R0, R8; this ; +0x22, 0x3c187a STR.W R8, [R4,#0x158] ; +0x24, 0x3c187c BL _ZN7cocos2d8CCObject6retainEv; cocos2d::CCObject::retain(void) ; +0x28, 0x3c1880 MOVS R6, #1 ; +0x2c, 0x3c1884 LDR.W R0, [R4,#0x16C]; this ; +0x2e, 0x3c1886 ADD R5, SP, #0x10+var_C ; +0x32, 0x3c188a STRB.W R6, [R4,#0x15C] ; +0x34, 0x3c188c BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0x38, 0x3c1890 MOV.W R2, #0xFFFFFFFF ; +0x3c, 0x3c1894 MOV R1, R4; int ; +0x40, 0x3c1898 LDR R3, [R0] ; +0x42, 0x3c189a MOV R9, R0 ; +0x44, 0x3c189c MOV R0, R5; this ; +0x46, 0x3c189e LDR.W R10, [R3,#0x5C] ; +0x48, 0x3c18a0 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x4c, 0x3c18a4 MOV R0, R9 ; +0x50, 0x3c18a8 MOV R1, R5 ; +0x52, 0x3c18aa BLX R10 ; +0x54, 0x3c18ac MOVS R1, #0; unsigned int ; +0x56, 0x3c18ae LDR.W R0, [R4,#0x16C]; this ; +0x58, 0x3c18b0 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x5c, 0x3c18b4 MOVS R2, #0 ; +0x60, 0x3c18b8 MOV R1, R4; int ; +0x62, 0x3c18ba LDR R3, [R0] ; +0x64, 0x3c18bc MOV R9, R0 ; +0x66, 0x3c18be MOV R0, R5; this ; +0x68, 0x3c18c0 LDR.W R10, [R3,#0x5C] ; +0x6a, 0x3c18c2 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x6e, 0x3c18c6 MOV R0, R9 ; +0x72, 0x3c18ca MOV R1, R5 ; +0x74, 0x3c18cc BLX R10 ; +0x76, 0x3c18ce MOV R1, R6; unsigned int ; +0x78, 0x3c18d0 LDR.W R0, [R4,#0x16C]; this ; +0x7a, 0x3c18d2 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x7e, 0x3c18d6 MOV R2, R6 ; +0x82, 0x3c18da MOV R1, R4; int ; +0x84, 0x3c18dc LDR R3, [R0] ; +0x86, 0x3c18de MOV R9, R0 ; +0x88, 0x3c18e0 MOV R0, R5; this ; +0x8a, 0x3c18e2 LDR.W R10, [R3,#0x5C] ; +0x8c, 0x3c18e4 BL _ZN15BoomScrollLayer21getRelativePosForPageEi; BoomScrollLayer::getRelativePosForPage(int) ; +0x90, 0x3c18e8 MOV R1, R5 ; +0x94, 0x3c18ec MOV R0, R9 ; +0x96, 0x3c18ee BLX R10 ; +0x98, 0x3c18f0 LDR.W R5, [R4,#0x154] ; +0x9a, 0x3c18f2 LDR.W R0, [R4,#0x16C]; this ; +0x9e, 0x3c18f6 LDR R3, [R5] ; +0xa2, 0x3c18fa LDR.W R9, [R3] ; +0xa4, 0x3c18fc BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0xa8, 0x3c1900 MOV R10, R0 ; +0xac, 0x3c1904 LDR.W R0, [R4,#0x158]; this ; +0xae, 0x3c1906 BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0xb2, 0x3c190a MOV R1, R10 ; +0xb6, 0x3c190e MOV R2, R0 ; +0xb8, 0x3c1910 MOV R0, R5 ; +0xba, 0x3c1912 BLX R9 ; +0xbc, 0x3c1914 LDR.W R5, [R4,#0x154] ; +0xbe, 0x3c1916 MOVS R1, #0; unsigned int ; +0xc2, 0x3c191a LDR.W R0, [R4,#0x16C]; this ; +0xc4, 0x3c191c LDR R3, [R5] ; +0xc8, 0x3c1920 LDR.W R9, [R3] ; +0xca, 0x3c1922 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xce, 0x3c1926 MOVS R1, #0; unsigned int ; +0xd2, 0x3c192a MOV R10, R0 ; +0xd4, 0x3c192c LDR.W R0, [R4,#0x158]; this ; +0xd6, 0x3c192e BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xda, 0x3c1932 MOV R1, R10 ; +0xde, 0x3c1936 MOV R2, R0 ; +0xe0, 0x3c1938 MOV R0, R5 ; +0xe2, 0x3c193a BLX R9 ; +0xe4, 0x3c193c LDR.W R5, [R4,#0x154] ; +0xe6, 0x3c193e MOV R1, R6; unsigned int ; +0xea, 0x3c1942 LDR.W R0, [R4,#0x16C]; this ; +0xec, 0x3c1944 LDR R3, [R5] ; +0xf0, 0x3c1948 LDR.W R9, [R3] ; +0xf2, 0x3c194a BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0xf6, 0x3c194e MOV R1, R6; unsigned int ; +0xfa, 0x3c1952 MOV R10, R0 ; +0xfc, 0x3c1954 LDR.W R0, [R4,#0x158]; this ; +0xfe, 0x3c1956 BL _ZN7cocos2d7CCArray13objectAtIndexEj; cocos2d::CCArray::objectAtIndex(uint) ; +0x102, 0x3c195a MOV R1, R10 ; +0x106, 0x3c195e MOV R2, R0 ; +0x108, 0x3c1960 MOV R0, R5 ; +0x10a, 0x3c1962 BLX R9 ; +0x10c, 0x3c1964 LDR.W R0, [R4,#0x158]; this ; +0x10e, 0x3c1966 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x112, 0x3c196a CMP R0, #2 ; +0x116, 0x3c196e BHI loc_3C19B0 ; +0x118, 0x3c1970 MOVS R3, #0 ; +0x11a, 0x3c1972 STRB.W R3, [R4,#0x15C] ; +0x11c, 0x3c1974 STRB.W R3, [R4,#0x150] ; +0x120, 0x3c1978 LDR.W R0, [R4,#0x16C]; this ; +0x124, 0x3c197c BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x128, 0x3c1980 MOV R5, R0 ; +0x12c, 0x3c1984 MOV R0, R8; this ; +0x12e, 0x3c1986 BL _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x130, 0x3c1988 CMP R5, R0 ; +0x134, 0x3c198c BLS loc_3C19B0 ; +0x136, 0x3c198e LDR.W R0, [R4,#0x16C]; this ; +0x138, 0x3c1990 BL _ZN7cocos2d7CCArray10lastObjectEv; cocos2d::CCArray::lastObject(void) ; +0x13c, 0x3c1994 MOVS R1, #1; bool ; +0x140, 0x3c1998 MOV R5, R0 ; +0x142, 0x3c199a LDR.W R0, [R4,#0x16C]; this ; +0x144, 0x3c199c BL _ZN7cocos2d7CCArray16removeLastObjectEb; cocos2d::CCArray::removeLastObject(bool) ; +0x148, 0x3c19a0 LDR R3, [R5] ; +0x14c, 0x3c19a4 MOV R0, R5 ; +0x14e, 0x3c19a6 LDR.W R3, [R3,#0x10C] ; +0x150, 0x3c19a8 BLX R3 ; +0x154, 0x3c19ac B loc_3C197C ; +0x156, 0x3c19ae LDR R2, [SP,#0x10+var_4] ; +0x158, 0x3c19b0 LDR R3, [R7] ; +0x15a, 0x3c19b2 CMP R2, R3 ; +0x15c, 0x3c19b4 BEQ loc_3C19BC ; +0x15e, 0x3c19b6 BLX __stack_chk_fail ; +0x160, 0x3c19b8 ADD SP, SP, #0x10 ; +0x164, 0x3c19bc POP.W {R4-R10,PC} ; +0x166, 0x3c19be