; ; CreateGuidelinesLayer::playMusic from 0x5bf73c to 0x5bf858 (284 bytes) ; ; 2 xrefs: ; > @ 0x518e8 ; > @ 0x11463a8 ; ; 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_60]! ; +0x0, 0x5bf73c MOV X29, SP ; +0x4, 0x5bf740 STP X19, X20, [SP,#0x60+var_50] ; +0x8, 0x5bf744 ADRP X19, #__stack_chk_guard_ptr@PAGE ; +0xc, 0x5bf748 ADD X20, X29, #0x60+var_10 ; +0x10, 0x5bf74c STP X21, X22, [SP,#0x60+var_40] ; +0x14, 0x5bf750 MOV X21, X0 ; +0x18, 0x5bf754 LDR X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x5bf758 LDR X0, [X0]; this ; +0x20, 0x5bf75c STR X0, [X29,#0x60+var_8] ; +0x24, 0x5bf760 BL _ZN15FMODAudioEngine12sharedEngineEv; FMODAudioEngine::sharedEngine(void) ; +0x28, 0x5bf764 MOV X22, X0 ; +0x2c, 0x5bf768 LDR X2, [X21,#0x280] ; +0x30, 0x5bf76c MOV X8, X20 ; +0x34, 0x5bf770 STR X20, [X29,#0x60+var_28] ; +0x38, 0x5bf774 MOV X0, X2 ; +0x3c, 0x5bf778 LDR X2, [X2] ; +0x40, 0x5bf77c LDR X2, [X2,#0x10] ; +0x44, 0x5bf780 BLR X2 ; +0x48, 0x5bf784 LDR S0, [X21,#0x2B0] ; +0x4c, 0x5bf788 LDR X1, [X29,#0x60+var_28] ; +0x50, 0x5bf78c LDR S1, =0x447A0000 ; +0x54, 0x5bf790 MOV X0, X22 ; +0x58, 0x5bf794 MOV W3, #0 ; +0x5c, 0x5bf798 FMUL S0, S0, S1 ; +0x60, 0x5bf79c FCVTZU W2, S0 ; +0x64, 0x5bf7a0 BL _ZN15FMODAudioEngine16loadAndPlayMusicESsji; FMODAudioEngine::loadAndPlayMusic(std::string,uint,int) ; +0x68, 0x5bf7a4 ADRP X1, #off_122EFE8@PAGE ; +0x6c, 0x5bf7a8 LDR X2, [X29,#0x60+var_10] ; +0x70, 0x5bf7ac SUB X0, X2, #0x18; p ; +0x74, 0x5bf7b0 LDR X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0x78, 0x5bf7b4 CMP X0, X1 ; +0x7c, 0x5bf7b8 B.NE loc_5BF7E4 ; +0x80, 0x5bf7bc LDR X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x84, 0x5bf7c0 LDR X1, [X29,#0x60+var_8] ; +0x88, 0x5bf7c4 LDR X0, [X19] ; +0x8c, 0x5bf7c8 CMP X1, X0 ; +0x90, 0x5bf7cc B.NE loc_5BF828 ; +0x94, 0x5bf7d0 LDP X19, X20, [SP,#0x60+var_50] ; +0x98, 0x5bf7d4 LDP X21, X22, [SP,#0x60+var_40] ; +0x9c, 0x5bf7d8 LDP X29, X30, [SP+0x60+var_60],#0x60 ; +0xa0, 0x5bf7dc RET ; +0xa4, 0x5bf7e0 ADRP X1, #pthread_create_ptr_0@PAGE ; +0xa8, 0x5bf7e4 LDR X1, [X1,#pthread_create_ptr_0@PAGEOFF]; pthread_create ; +0xac, 0x5bf7e8 CBZ X1, loc_5BF818 ; +0xb0, 0x5bf7ec SUB X2, X2, #8 ; +0xb4, 0x5bf7f0 LDAXR W1, [X2] ; +0xb8, 0x5bf7f4 SUB W3, W1, #1 ; +0xbc, 0x5bf7f8 STLXR W4, W3, [X2] ; +0xc0, 0x5bf7fc CBNZ W4, loc_5BF7F4 ; +0xc4, 0x5bf800 CMP W1, WZR ; +0xc8, 0x5bf804 B.GT loc_5BF7C0 ; +0xcc, 0x5bf808 ADD X1, X29, #0x60+var_18 ; +0xd0, 0x5bf80c BL j__ZdlPv; operator delete(void *) ; +0xd4, 0x5bf810 B loc_5BF7C0 ; +0xd8, 0x5bf814 LDUR W1, [X2,#-8] ; +0xdc, 0x5bf818 SUB W3, W1, #1 ; +0xe0, 0x5bf81c STUR W3, [X2,#-8] ; +0xe4, 0x5bf820 B loc_5BF804 ; +0xe8, 0x5bf824 BL .__stack_chk_fail ; +0xec, 0x5bf828 ADRP X1, #off_122EFE8@PAGE ; +0xf0, 0x5bf82c MOV X19, X0 ; +0xf4, 0x5bf830 LDR X0, [X29,#0x60+var_10] ; +0xf8, 0x5bf834 LDR X1, [X1,#off_122EFE8@PAGEOFF]; qword_124B6B0 ; +0xfc, 0x5bf838 SUB X0, X0, #0x18 ; +0x100, 0x5bf83c CMP X0, X1 ; +0x104, 0x5bf840 B.EQ loc_5BF850 ; +0x108, 0x5bf844 ADD X1, X29, #0x60+var_18 ; +0x10c, 0x5bf848 BL sub_4DB3D0 ; +0x110, 0x5bf84c MOV X0, X19 ; +0x114, 0x5bf850 BL _Unwind_Resume ; +0x118, 0x5bf854