; ; BoomScrollLayer::getRelativePageForNum from 0x10012be48 to 0x10012beb0 (104 bytes) ; ; 5 xrefs: ; > BoomScrollLayer::repositionPagesLooped @ 0x10012b4fc ; > BoomScrollLayer::repositionPagesLooped @ 0x10012b510 ; > BoomScrollLayer::repositionPagesLooped @ 0x10012b524 ; > BoomScrollLayer::updateDots @ 0x10012badc ; > EditButtonBar::getPage @ 0x100421510 ; ; 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 ; STP X20, X19, [SP,#-0x10+var_10]! ; +0x0, 0x10012be48 STP X29, X30, [SP,#0x10+var_s0] ; +0x4, 0x10012be4c ADD X29, SP, #0x10 ; +0x8, 0x10012be50 MOV X19, X1 ; +0xc, 0x10012be54 LDRB W8, [X0,#0x1C0] ; +0x10, 0x10012be58 CMP W8, #0 ; +0x14, 0x10012be5c MOV W8, #0x1D8 ; +0x18, 0x10012be60 MOV W9, #0x1B8 ; +0x1c, 0x10012be64 CSEL X8, X9, X8, NE ; +0x20, 0x10012be68 LDR X0, [X0,X8] ; +0x24, 0x10012be6c BL sub_10024A36C ; +0x28, 0x10012be70 SDIV W8, W19, W0 ; +0x2c, 0x10012be74 MSUB W8, W8, W0, W19 ; +0x30, 0x10012be78 CMP W19, #0 ; +0x34, 0x10012be7c CSETM W9, NE ; +0x38, 0x10012be80 SUB W9, W9, W19 ; +0x3c, 0x10012be84 CMP W0, #1 ; +0x40, 0x10012be88 CSINC W10, W0, WZR, HI ; +0x44, 0x10012be8c CMP W19, #0 ; +0x48, 0x10012be90 UDIV W9, W9, W10 ; +0x4c, 0x10012be94 CINC W9, W9, NE ; +0x50, 0x10012be98 MADD W9, W0, W9, W19 ; +0x54, 0x10012be9c CSEL W0, W8, W9, GT ; +0x58, 0x10012bea0 LDP X29, X30, [SP,#0x10+var_s0] ; +0x5c, 0x10012bea4 LDP X20, X19, [SP+0x10+var_10],#0x20 ; +0x60, 0x10012bea8 RET ; +0x64, 0x10012beac