; ; FMOD::Sound::getLength from 0xb5374 to 0xb5404 (144 bytes) ; ; 1 xrefs: ; > FMOD::Sound::getLength @ 0xe0578 ; ; 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, 0xb5374 ADD R7, SP, #0xC ; +0x2, 0xb5376 PUSH.W {R8,R9,R11} ; +0x4, 0xb5378 SUB SP, SP, #0x110 ; +0x8, 0xb537c MOV R8, R2 ; +0xa, 0xb537e MOV R9, R1 ; +0xc, 0xb5380 MOV R4, R0 ; +0xe, 0xb5382 MOVS R0, #0 ; +0x10, 0xb5384 ADD R1, SP, #0x110+var_4 ; +0x12, 0xb5386 ADD R2, SP, #0x110+var_8 ; +0x14, 0xb5388 STR R0, [SP,#0x110+var_8] ; +0x16, 0xb538a MOV R0, R4 ; +0x18, 0xb538c BL sub_54E84 ; +0x1a, 0xb538e MOV R5, R0 ; +0x1e, 0xb5392 CBNZ R0, loc_B53C6 ; +0x20, 0xb5394 LDR R0, [SP,#0x110+var_4] ; +0x22, 0xb5396 LDR.W R0, [R0,#0xBC] ; +0x24, 0xb5398 DMB.W ISH ; +0x28, 0xb539c CBZ R0, loc_B53B0 ; +0x2c, 0xb53a0 LDR R0, [SP,#0x110+var_4] ; +0x2e, 0xb53a2 LDR.W R0, [R0,#0xBC] ; +0x30, 0xb53a4 DMB.W ISH ; +0x34, 0xb53a8 CMP R0, #7 ; +0x38, 0xb53ac BNE loc_B53C4 ; +0x3a, 0xb53ae LDR R0, [SP,#0x110+var_4] ; +0x3c, 0xb53b0 MOV R2, R8 ; +0x3e, 0xb53b2 LDR R1, [R0] ; +0x40, 0xb53b4 LDR R3, [R1,#0x4C] ; +0x42, 0xb53b6 MOV R1, R9 ; +0x44, 0xb53b8 BLX R3 ; +0x46, 0xb53ba MOV R5, R0 ; +0x48, 0xb53bc CBNZ R0, loc_B53C6 ; +0x4a, 0xb53be MOVS R5, #0 ; +0x4c, 0xb53c0 B loc_B53F4 ; +0x4e, 0xb53c2 MOVS R5, #0x2E ; '.' ; +0x50, 0xb53c4 LDR R0, =(off_E6144 - 0xB53CC) ; +0x52, 0xb53c6 ADD R0, PC; off_E6144 ; +0x54, 0xb53c8 LDR R0, [R0]; off_E8000 ; +0x56, 0xb53ca LDR R0, [R0]; dword_F2488 ; +0x58, 0xb53cc LDRB R0, [R0,#(dword_F249C - 0xF2488)] ; +0x5a, 0xb53ce LSLS R0, R0, #0x18 ; +0x5c, 0xb53d0 BPL loc_B53F4 ; +0x5e, 0xb53d2 ADD R6, SP, #0x110+var_108 ; +0x60, 0xb53d4 MOV.W R1, #0x100 ; +0x62, 0xb53d6 MOV R2, R9 ; +0x66, 0xb53da MOV R3, R8 ; +0x68, 0xb53dc MOV R0, R6 ; +0x6a, 0xb53de BL sub_AD330 ; +0x6c, 0xb53e0 STR R6, [SP,#0x110+var_110] ; +0x70, 0xb53e4 MOV R0, R5 ; +0x72, 0xb53e6 LDR R3, =(aSoundGetlength - 0xB53F2); "Sound::getLength" ... ; +0x74, 0xb53e8 MOVS R1, #5 ; +0x76, 0xb53ea MOV R2, R4 ; +0x78, 0xb53ec ADD R3, PC; "Sound::getLength" ; +0x7a, 0xb53ee BL sub_BAB40 ; +0x7c, 0xb53f0 ADD R0, SP, #0x110+var_8 ; +0x80, 0xb53f4 BL sub_6429C ; +0x82, 0xb53f6 MOV R0, R5 ; +0x86, 0xb53fa ADD SP, SP, #0x110 ; +0x88, 0xb53fc POP.W {R8,R9,R11} ; +0x8a, 0xb53fe POP {R4-R7,PC} ; +0x8e, 0xb5402