; ; BoomScrollLayer::pageNumberForPosition from 0x56d57c to 0x56d640 (196 bytes) ; ; 5 xrefs: ; > BoomScrollLayer::updateDots @ 0x56d75c ; > BoomScrollLayer::moveToPageEnded @ 0x56d950 ; > BoomScrollLayer::ccTouchEnded @ 0x56e260 ; > BoomScrollLayer::ccTouchMoved @ 0x56e82c ; > @ 0xb8ea8 ; ; 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 X29, X30, [SP,#var_30]! ; +0x0, 0x56d57c MOV X29, SP ; +0x4, 0x56d580 LDR X1, [X0,#0x1F0] ; +0x8, 0x56d584 STP X19, X20, [SP,#0x30+var_20] ; +0xc, 0x56d588 MOV X20, X0 ; +0x10, 0x56d58c MOV X0, X1 ; +0x14, 0x56d590 LDR X1, [X1] ; +0x18, 0x56d594 STR D8, [SP,#0x30+var_10] ; +0x1c, 0x56d598 LDR X1, [X1,#0xC0] ; +0x20, 0x56d59c BLR X1 ; +0x24, 0x56d5a0 LDR X1, [X20] ; +0x28, 0x56d5a4 LDR S8, [X0] ; +0x2c, 0x56d5a8 MOV X0, X20 ; +0x30, 0x56d5ac FNEG S8, S8 ; +0x34, 0x56d5b0 LDR X1, [X1,#0x138] ; +0x38, 0x56d5b4 BLR X1 ; +0x3c, 0x56d5b8 LDR S1, [X20,#0x248] ; +0x40, 0x56d5bc LDRB W1, [X20,#0x1AC] ; +0x44, 0x56d5c0 LDR S0, [X0] ; +0x48, 0x56d5c4 FSUB S0, S0, S1 ; +0x4c, 0x56d5c8 FDIV S0, S8, S0 ; +0x50, 0x56d5cc FCVTPS W19, S0 ; +0x54, 0x56d5d0 SCVTF S1, W19 ; +0x58, 0x56d5d4 SUB W0, W19, #1 ; +0x5c, 0x56d5d8 FSUB S0, S1, S0 ; +0x60, 0x56d5dc FMOV S1, #0.5 ; +0x64, 0x56d5e0 FCMP S0, S1 ; +0x68, 0x56d5e4 CSEL W19, W19, W0, LT ; +0x6c, 0x56d5e8 CBZ W1, loc_56D604 ; +0x70, 0x56d5ec MOV W0, W19 ; +0x74, 0x56d5f0 LDP X19, X20, [SP,#0x30+var_20] ; +0x78, 0x56d5f4 LDR D8, [SP,#0x30+var_10] ; +0x7c, 0x56d5f8 LDP X29, X30, [SP+0x30+var_30],#0x30 ; +0x80, 0x56d5fc RET ; +0x84, 0x56d600 CMP W19, WZR ; +0x88, 0x56d604 MOV X0, X20; this ; +0x8c, 0x56d608 CSEL W19, W19, WZR, GE ; +0x90, 0x56d60c BL _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x94, 0x56d610 SUB W0, W0, #1 ; +0x98, 0x56d614 CMP W19, W0 ; +0x9c, 0x56d618 B.LT loc_56D5F0 ; +0xa0, 0x56d61c MOV X0, X20; this ; +0xa4, 0x56d620 BL _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0xa8, 0x56d624 SUB W19, W0, #1 ; +0xac, 0x56d628 MOV W0, W19 ; +0xb0, 0x56d62c LDP X19, X20, [SP,#0x30+var_20] ; +0xb4, 0x56d630 LDR D8, [SP,#0x30+var_10] ; +0xb8, 0x56d634 LDP X29, X30, [SP+0x30+var_30],#0x30 ; +0xbc, 0x56d638 RET ; +0xc0, 0x56d63c