; ; FMOD::Sound::getMusicSpeed from 0xb6590 to 0xb662a (154 bytes) ; ; 1 xrefs: ; > FMOD::Sound::getMusicSpeed @ 0xe0708 ; ; 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:41:43 +0000 ; PUSH {R4-R7,LR} ; +0x0, 0xb6590 ADD R7, SP, #0xC ; +0x2, 0xb6592 PUSH.W {R8} ; +0x4, 0xb6594 SUB SP, SP, #0x110 ; +0x8, 0xb6598 MOV R8, R1 ; +0xa, 0xb659a MOV R4, R0 ; +0xc, 0xb659c MOVS R0, #0 ; +0xe, 0xb659e ADD R1, SP, #0x110+var_4 ; +0x10, 0xb65a0 ADD R2, SP, #0x110+var_8 ; +0x12, 0xb65a2 STR R0, [SP,#0x110+var_8] ; +0x14, 0xb65a4 MOV R0, R4 ; +0x16, 0xb65a6 BL sub_54E84 ; +0x18, 0xb65a8 MOV R6, R0 ; +0x1c, 0xb65ac CBNZ R0, loc_B65EE ; +0x1e, 0xb65ae LDR R0, [SP,#0x110+var_4] ; +0x20, 0xb65b0 LDR.W R0, [R0,#0xBC] ; +0x22, 0xb65b2 DMB.W ISH ; +0x26, 0xb65b6 CBZ R0, loc_B65D8 ; +0x2a, 0xb65ba LDR R0, [SP,#0x110+var_4] ; +0x2c, 0xb65bc LDR.W R0, [R0,#0xBC] ; +0x2e, 0xb65be DMB.W ISH ; +0x32, 0xb65c2 CMP R0, #7 ; +0x36, 0xb65c6 BEQ loc_B65D8 ; +0x38, 0xb65c8 LDR R0, [SP,#0x110+var_4] ; +0x3a, 0xb65ca LDR.W R0, [R0,#0xBC] ; +0x3c, 0xb65cc DMB.W ISH ; +0x40, 0xb65d0 CMP R0, #5 ; +0x44, 0xb65d4 BNE loc_B65EC ; +0x46, 0xb65d6 LDR R0, [SP,#0x110+var_4] ; +0x48, 0xb65d8 LDR R1, [R0] ; +0x4a, 0xb65da LDR.W R2, [R1,#0xB4] ; +0x4c, 0xb65dc MOV R1, R8 ; +0x50, 0xb65e0 BLX R2 ; +0x52, 0xb65e2 MOV R6, R0 ; +0x54, 0xb65e4 CBNZ R0, loc_B65EE ; +0x56, 0xb65e6 MOVS R6, #0 ; +0x58, 0xb65e8 B loc_B661A ; +0x5a, 0xb65ea MOVS R6, #0x2E ; '.' ; +0x5c, 0xb65ec LDR R0, =(off_E6144 - 0xB65F4) ; +0x5e, 0xb65ee ADD R0, PC; off_E6144 ; +0x60, 0xb65f0 LDR R0, [R0]; off_E8000 ; +0x62, 0xb65f2 LDR R0, [R0]; dword_F2488 ; +0x64, 0xb65f4 LDRB R0, [R0,#(dword_F249C - 0xF2488)] ; +0x66, 0xb65f6 LSLS R0, R0, #0x18 ; +0x68, 0xb65f8 BPL loc_B661A ; +0x6a, 0xb65fa ADD R5, SP, #0x110+var_108 ; +0x6c, 0xb65fc MOV.W R1, #0x100 ; +0x6e, 0xb65fe MOV R2, R8 ; +0x72, 0xb6602 MOV R0, R5 ; +0x74, 0xb6604 BL sub_5CAA4 ; +0x76, 0xb6606 STR R5, [SP,#0x110+var_110] ; +0x7a, 0xb660a MOV R0, R6 ; +0x7c, 0xb660c LDR R3, =(aSoundGetmusics - 0xB6618); "Sound::getMusicSpeed" ... ; +0x7e, 0xb660e MOVS R1, #5 ; +0x80, 0xb6610 MOV R2, R4 ; +0x82, 0xb6612 ADD R3, PC; "Sound::getMusicSpeed" ; +0x84, 0xb6614 BL sub_BAB40 ; +0x86, 0xb6616 ADD R0, SP, #0x110+var_8 ; +0x8a, 0xb661a BL sub_6429C ; +0x8c, 0xb661c MOV R0, R6 ; +0x90, 0xb6620 ADD SP, SP, #0x110 ; +0x92, 0xb6622 POP.W {R8} ; +0x94, 0xb6624 POP {R4-R7,PC} ; +0x98, 0xb6628