; ; FMOD::Sound::getSubSound from 0xb51e0 to 0xb527a (154 bytes) ; ; 1 xrefs: ; > FMOD::Sound::getSubSound @ 0xe0548 ; ; 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:42 +0000 ; PUSH {R4-R7,LR} ; +0x0, 0xb51e0 ADD R7, SP, #0xC ; +0x2, 0xb51e2 PUSH.W {R8,R9,R11} ; +0x4, 0xb51e4 SUB SP, SP, #0x110 ; +0x8, 0xb51e8 MOV R8, R2 ; +0xa, 0xb51ea MOV R9, R1 ; +0xc, 0xb51ec MOV R4, R0 ; +0xe, 0xb51ee MOVS R0, #0 ; +0x10, 0xb51f0 ADD R1, SP, #0x110+var_4 ; +0x12, 0xb51f2 ADD R2, SP, #0x110+var_8 ; +0x14, 0xb51f4 STR R0, [SP,#0x110+var_8] ; +0x16, 0xb51f6 MOV R0, R4 ; +0x18, 0xb51f8 BL sub_54E84 ; +0x1a, 0xb51fa MOV R5, R0 ; +0x1e, 0xb51fe CBNZ R0, loc_B5238 ; +0x20, 0xb5200 LDR R0, [SP,#0x110+var_4] ; +0x22, 0xb5202 LDR.W R1, [R0,#0xB8] ; +0x24, 0xb5204 CBZ R1, loc_B5216 ; +0x28, 0xb5208 LDR.W R1, [R1,#0xBC] ; +0x2a, 0xb520a SUBS R1, #0xF ; +0x2e, 0xb520e IT NE ; +0x30, 0xb5210 MOVNE R1, #1 ; +0x32, 0xb5212 B loc_B5218 ; +0x34, 0xb5214 MOVS R1, #1 ; +0x36, 0xb5216 LDR.W R0, [R0,#0xBC] ; +0x38, 0xb5218 DMB.W ISH ; +0x3c, 0xb521c CBZ R1, loc_B5228 ; +0x40, 0xb5220 CBZ R0, loc_B5228 ; +0x42, 0xb5222 MOVS R5, #0x2E ; '.' ; +0x44, 0xb5224 B loc_B5238 ; +0x46, 0xb5226 LDR R0, [SP,#0x110+var_4] ; +0x48, 0xb5228 MOV R2, R8 ; +0x4a, 0xb522a LDR R1, [R0] ; +0x4c, 0xb522c LDR R3, [R1,#0x3C] ; +0x4e, 0xb522e MOV R1, R9 ; +0x50, 0xb5230 BLX R3 ; +0x52, 0xb5232 MOV R5, R0 ; +0x54, 0xb5234 CBZ R0, loc_B5276 ; +0x56, 0xb5236 LDR R0, =(off_E6144 - 0xB523E) ; +0x58, 0xb5238 ADD R0, PC; off_E6144 ; +0x5a, 0xb523a LDR R0, [R0]; off_E8000 ; +0x5c, 0xb523c LDR R0, [R0]; dword_F2488 ; +0x5e, 0xb523e LDRB R0, [R0,#(dword_F249C - 0xF2488)] ; +0x60, 0xb5240 LSLS R0, R0, #0x18 ; +0x62, 0xb5242 BPL loc_B5266 ; +0x64, 0xb5244 ADD R6, SP, #0x110+var_108 ; +0x66, 0xb5246 MOV.W R1, #0x100 ; +0x68, 0xb5248 MOV R2, R9 ; +0x6c, 0xb524c MOV R3, R8 ; +0x6e, 0xb524e MOV R0, R6 ; +0x70, 0xb5250 BL sub_B5284 ; +0x72, 0xb5252 STR R6, [SP,#0x110+var_110] ; +0x76, 0xb5256 MOV R0, R5 ; +0x78, 0xb5258 LDR R3, =(aSoundGetsubsou - 0xB5264); "Sound::getSubSound" ... ; +0x7a, 0xb525a MOVS R1, #5 ; +0x7c, 0xb525c MOV R2, R4 ; +0x7e, 0xb525e ADD R3, PC; "Sound::getSubSound" ; +0x80, 0xb5260 BL sub_BAB40 ; +0x82, 0xb5262 ADD R0, SP, #0x110+var_8 ; +0x86, 0xb5266 BL sub_6429C ; +0x88, 0xb5268 MOV R0, R5 ; +0x8c, 0xb526c ADD SP, SP, #0x110 ; +0x8e, 0xb526e POP.W {R8,R9,R11} ; +0x90, 0xb5270 POP {R4-R7,PC} ; +0x94, 0xb5274 MOVS R5, #0 ; +0x96, 0xb5276 B loc_B5266 ; +0x98, 0xb5278