; ; BoomScrollLayer::pageNumberForPosition from 0x689704 to 0x6897c8 (196 bytes) ; ; 5 xrefs: ; > BoomScrollLayer::updateDots @ 0x6898e4 ; > BoomScrollLayer::moveToPageEnded @ 0x689ad8 ; > BoomScrollLayer::ccTouchEnded @ 0x68a3e8 ; > BoomScrollLayer::ccTouchMoved @ 0x68a9b4 ; > @ 0xf1540 ; ; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! ; ; 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 12:50:32 +0000 ; STP X29, X30, [SP,#var_30]! ; +0x0, 0x689704 MOV X29, SP ; +0x4, 0x689708 STP X19, X20, [SP,#0x30+var_20] ; +0x8, 0x68970c STR D8, [SP,#0x30+var_10] ; +0xc, 0x689710 MOV X20, X0 ; +0x10, 0x689714 LDR X1, [X0,#0x1F8] ; +0x14, 0x689718 MOV X0, X1 ; +0x18, 0x68971c LDR X1, [X1] ; +0x1c, 0x689720 LDR X1, [X1,#0xC0] ; +0x20, 0x689724 BLR X1 ; +0x24, 0x689728 LDR X1, [X20] ; +0x28, 0x68972c LDR S8, [X0] ; +0x2c, 0x689730 MOV X0, X20 ; +0x30, 0x689734 FNEG S8, S8 ; +0x34, 0x689738 LDR X1, [X1,#0x148] ; +0x38, 0x68973c BLR X1 ; +0x3c, 0x689740 LDR S1, [X20,#0x250] ; +0x40, 0x689744 LDRB W1, [X20,#0x1B4] ; +0x44, 0x689748 LDR S0, [X0] ; +0x48, 0x68974c FSUB S0, S0, S1 ; +0x4c, 0x689750 FDIV S0, S8, S0 ; +0x50, 0x689754 FCVTPS W19, S0 ; +0x54, 0x689758 SCVTF S1, W19 ; +0x58, 0x68975c SUB W0, W19, #1 ; +0x5c, 0x689760 FSUB S0, S1, S0 ; +0x60, 0x689764 FMOV S1, #0.5 ; +0x64, 0x689768 FCMP S0, S1 ; +0x68, 0x68976c CSEL W19, W19, W0, LT ; +0x6c, 0x689770 CBZ W1, loc_68978C ; +0x70, 0x689774 MOV W0, W19 ; +0x74, 0x689778 LDP X19, X20, [SP,#0x30+var_20] ; +0x78, 0x68977c LDR D8, [SP,#0x30+var_10] ; +0x7c, 0x689780 LDP X29, X30, [SP+0x30+var_30],#0x30 ; +0x80, 0x689784 RET ; +0x84, 0x689788 CMP W19, WZR ; +0x88, 0x68978c MOV X0, X20; this ; +0x8c, 0x689790 CSEL W19, W19, WZR, GE ; +0x90, 0x689794 BL _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x94, 0x689798 SUB W0, W0, #1 ; +0x98, 0x68979c CMP W19, W0 ; +0x9c, 0x6897a0 B.LT loc_689778 ; +0xa0, 0x6897a4 MOV X0, X20; this ; +0xa4, 0x6897a8 BL _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0xa8, 0x6897ac SUB W19, W0, #1 ; +0xac, 0x6897b0 MOV W0, W19 ; +0xb0, 0x6897b4 LDP X19, X20, [SP,#0x30+var_20] ; +0xb4, 0x6897b8 LDR D8, [SP,#0x30+var_10] ; +0xb8, 0x6897bc LDP X29, X30, [SP+0x30+var_30],#0x30 ; +0xbc, 0x6897c0 RET ; +0xc0, 0x6897c4