; ; FMOD::Sound::readData from 0xb5868 to 0xb58fe (150 bytes) ; ; 1 xrefs: ; > FMOD::Sound::readData @ 0xe05d8 ; ; 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, 0xb5868 ADD R7, SP, #0xC ; +0x2, 0xb586a PUSH.W {R8,R9,R11} ; +0x4, 0xb586c SUB SP, SP, #0x110 ; +0x8, 0xb5870 MOV R8, R2 ; +0xa, 0xb5872 MOV R9, R1 ; +0xc, 0xb5874 MOV R4, R0 ; +0xe, 0xb5876 MOVS R0, #0 ; +0x10, 0xb5878 ADD R1, SP, #0x110+var_4 ; +0x12, 0xb587a ADD R2, SP, #0x110+var_8 ; +0x14, 0xb587c STR R0, [SP,#0x110+var_8] ; +0x16, 0xb587e MOV R0, R4 ; +0x18, 0xb5880 MOV R5, R3 ; +0x1a, 0xb5882 BL sub_54E84 ; +0x1c, 0xb5884 MOV R6, R0 ; +0x20, 0xb5888 CBNZ R0, loc_B58BE ; +0x22, 0xb588a LDR R0, [SP,#0x110+var_4] ; +0x24, 0xb588c LDR.W R0, [R0,#0xBC] ; +0x26, 0xb588e DMB.W ISH ; +0x2a, 0xb5892 CBZ R0, loc_B58A6 ; +0x2e, 0xb5896 LDR R0, [SP,#0x110+var_4] ; +0x30, 0xb5898 LDR.W R0, [R0,#0xBC] ; +0x32, 0xb589a DMB.W ISH ; +0x36, 0xb589e CMP R0, #7 ; +0x3a, 0xb58a2 BNE loc_B58BC ; +0x3c, 0xb58a4 LDR R0, [SP,#0x110+var_4] ; +0x3e, 0xb58a6 MOV R2, R8 ; +0x40, 0xb58a8 MOV R3, R5 ; +0x42, 0xb58aa LDR R1, [R0] ; +0x44, 0xb58ac LDR R6, [R1,#0x64] ; +0x46, 0xb58ae MOV R1, R9 ; +0x48, 0xb58b0 BLX R6 ; +0x4a, 0xb58b2 MOV R6, R0 ; +0x4c, 0xb58b4 CBNZ R0, loc_B58BE ; +0x4e, 0xb58b6 MOVS R6, #0 ; +0x50, 0xb58b8 B loc_B58EE ; +0x52, 0xb58ba MOVS R6, #0x2E ; '.' ; +0x54, 0xb58bc LDR R0, =(off_E6144 - 0xB58C4) ; +0x56, 0xb58be ADD R0, PC; off_E6144 ; +0x58, 0xb58c0 LDR R0, [R0]; off_E8000 ; +0x5a, 0xb58c2 LDR R0, [R0]; dword_F2488 ; +0x5c, 0xb58c4 LDRB R0, [R0,#(dword_F249C - 0xF2488)] ; +0x5e, 0xb58c6 LSLS R0, R0, #0x18 ; +0x60, 0xb58c8 BPL loc_B58EE ; +0x62, 0xb58ca STR R5, [SP,#0x110+var_110] ; +0x64, 0xb58cc ADD R5, SP, #0x110+var_108 ; +0x66, 0xb58ce MOV.W R1, #0x100 ; +0x68, 0xb58d0 MOV R2, R9 ; +0x6c, 0xb58d4 MOV R0, R5 ; +0x6e, 0xb58d6 MOV R3, R8 ; +0x70, 0xb58d8 BL sub_B5908 ; +0x72, 0xb58da STR R5, [SP,#0x110+var_110] ; +0x76, 0xb58de MOV R0, R6 ; +0x78, 0xb58e0 LDR R3, =(aSoundReaddata - 0xB58EC); "Sound::readData" ... ; +0x7a, 0xb58e2 MOVS R1, #5 ; +0x7c, 0xb58e4 MOV R2, R4 ; +0x7e, 0xb58e6 ADD R3, PC; "Sound::readData" ; +0x80, 0xb58e8 BL sub_BAB40 ; +0x82, 0xb58ea ADD R0, SP, #0x110+var_8 ; +0x86, 0xb58ee BL sub_6429C ; +0x88, 0xb58f0 MOV R0, R6 ; +0x8c, 0xb58f4 ADD SP, SP, #0x110 ; +0x8e, 0xb58f6 POP.W {R8,R9,R11} ; +0x90, 0xb58f8 POP {R4-R7,PC} ; +0x94, 0xb58fc