; ; BoomScrollLayer::pageNumberForPosition from 0x3c1582 to 0x3c160a (136 bytes) ; ; 4 xrefs: ; > BoomScrollLayer::updateDots @ 0x3c16b6 ; > BoomScrollLayer::moveToPageEnded @ 0x3c17f0 ; > BoomScrollLayer::ccTouchEnded @ 0x3c1e4e ; > BoomScrollLayer::ccTouchMoved @ 0x3c21fa ; ; 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 {R3-R5,LR} ; +0x0, 0x3c1582 MOV R5, R0 ; +0x2, 0x3c1584 VPUSH {D8} ; +0x4, 0x3c1586 LDR.W R0, [R0,#0x180] ; +0x8, 0x3c158a LDR R3, [R0] ; +0xc, 0x3c158e LDR R3, [R3,#0x60] ; +0xe, 0x3c1590 BLX R3 ; +0x10, 0x3c1592 LDR R3, [R5] ; +0x12, 0x3c1594 LDR.W R3, [R3,#0xA4] ; +0x14, 0x3c1596 VLDR S17, [R0] ; +0x18, 0x3c159a MOV R0, R5 ; +0x1c, 0x3c159e BLX R3 ; +0x1e, 0x3c15a0 VLDR S16, [R5,#0x1D0] ; +0x20, 0x3c15a2 VNEG.F32 S17, S17 ; +0x24, 0x3c15a6 VLDR S15, [R0] ; +0x28, 0x3c15aa VSUB.F32 S16, S15, S16 ; +0x2c, 0x3c15ae VDIV.F32 S16, S17, S16 ; +0x30, 0x3c15b2 VMOV R0, S16; x ; +0x34, 0x3c15b6 BLX ceilf ; +0x38, 0x3c15ba LDRB.W R3, [R5,#0x150] ; +0x3c, 0x3c15be VMOV S15, R0 ; +0x40, 0x3c15c2 VCVT.S32.F32 S15, S15 ; +0x44, 0x3c15c6 VMOV R4, S15 ; +0x48, 0x3c15ca VCVT.F32.S32 S15, S15 ; +0x4c, 0x3c15ce VSUB.F32 S16, S15, S16 ; +0x50, 0x3c15d2 VMOV.F32 S15, #0.5 ; +0x54, 0x3c15d6 VCMPE.F32 S16, S15 ; +0x58, 0x3c15da VMRS APSR_nzcv, FPSCR ; +0x5c, 0x3c15de IT GE ; +0x60, 0x3c15e2 ADDGE.W R4, R4, #0xFFFFFFFF ; +0x62, 0x3c15e4 CBNZ R3, loc_3C1602 ; +0x66, 0x3c15e8 MOV R0, R5; this ; +0x68, 0x3c15ea BIC.W R4, R4, R4,ASR#31 ; +0x6a, 0x3c15ec BL _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x6e, 0x3c15f0 SUBS R0, #1 ; +0x72, 0x3c15f4 CMP R0, R4 ; +0x74, 0x3c15f6 BGT loc_3C1602 ; +0x76, 0x3c15f8 MOV R0, R5; this ; +0x78, 0x3c15fa BL _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x7a, 0x3c15fc SUBS R4, R0, #1 ; +0x7e, 0x3c1600 VPOP {D8} ; +0x80, 0x3c1602 MOV R0, R4 ; +0x84, 0x3c1606 POP {R3-R5,PC} ; +0x86, 0x3c1608