; ; FMOD::Sound::setMode from 0xb5f68 to 0xb5ff4 (140 bytes) ; ; 1 xrefs: ; > FMOD::Sound::setMode @ 0xe0668 ; ; 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, 0xb5f68 ADD R7, SP, #0xC ; +0x2, 0xb5f6a PUSH.W {R8} ; +0x4, 0xb5f6c SUB SP, SP, #0x110 ; +0x8, 0xb5f70 MOV R8, R1 ; +0xa, 0xb5f72 MOV R4, R0 ; +0xc, 0xb5f74 MOVS R0, #0 ; +0xe, 0xb5f76 ADD R1, SP, #0x110+var_4 ; +0x10, 0xb5f78 ADD R2, SP, #0x110+var_8 ; +0x12, 0xb5f7a STR R0, [SP,#0x110+var_8] ; +0x14, 0xb5f7c MOV R0, R4 ; +0x16, 0xb5f7e BL sub_54E84 ; +0x18, 0xb5f80 MOV R6, R0 ; +0x1c, 0xb5f84 CBNZ R0, loc_B5FB8 ; +0x1e, 0xb5f86 LDR R0, [SP,#0x110+var_4] ; +0x20, 0xb5f88 LDR.W R0, [R0,#0xBC] ; +0x22, 0xb5f8a DMB.W ISH ; +0x26, 0xb5f8e CBZ R0, loc_B5FA2 ; +0x2a, 0xb5f92 LDR R0, [SP,#0x110+var_4] ; +0x2c, 0xb5f94 LDR.W R0, [R0,#0xBC] ; +0x2e, 0xb5f96 DMB.W ISH ; +0x32, 0xb5f9a CMP R0, #7 ; +0x36, 0xb5f9e BNE loc_B5FB6 ; +0x38, 0xb5fa0 LDR R0, [SP,#0x110+var_4] ; +0x3a, 0xb5fa2 LDR R1, [R0] ; +0x3c, 0xb5fa4 LDR.W R2, [R1,#0x8C] ; +0x3e, 0xb5fa6 MOV R1, R8 ; +0x42, 0xb5faa BLX R2 ; +0x44, 0xb5fac MOV R6, R0 ; +0x46, 0xb5fae CBNZ R0, loc_B5FB8 ; +0x48, 0xb5fb0 MOVS R6, #0 ; +0x4a, 0xb5fb2 B loc_B5FE4 ; +0x4c, 0xb5fb4 MOVS R6, #0x2E ; '.' ; +0x4e, 0xb5fb6 LDR R0, =(off_E6144 - 0xB5FBE) ; +0x50, 0xb5fb8 ADD R0, PC; off_E6144 ; +0x52, 0xb5fba LDR R0, [R0]; off_E8000 ; +0x54, 0xb5fbc LDR R0, [R0]; dword_F2488 ; +0x56, 0xb5fbe LDRB R0, [R0,#(dword_F249C - 0xF2488)] ; +0x58, 0xb5fc0 LSLS R0, R0, #0x18 ; +0x5a, 0xb5fc2 BPL loc_B5FE4 ; +0x5c, 0xb5fc4 ADD R5, SP, #0x110+var_108 ; +0x5e, 0xb5fc6 MOV.W R1, #0x100 ; +0x60, 0xb5fc8 MOV R2, R8 ; +0x64, 0xb5fcc MOV R0, R5 ; +0x66, 0xb5fce BL sub_5C8F4 ; +0x68, 0xb5fd0 STR R5, [SP,#0x110+var_110] ; +0x6c, 0xb5fd4 MOV R0, R6 ; +0x6e, 0xb5fd6 LDR R3, =(aSoundSetmode - 0xB5FE2); "Sound::setMode" ... ; +0x70, 0xb5fd8 MOVS R1, #5 ; +0x72, 0xb5fda MOV R2, R4 ; +0x74, 0xb5fdc ADD R3, PC; "Sound::setMode" ; +0x76, 0xb5fde BL sub_BAB40 ; +0x78, 0xb5fe0 ADD R0, SP, #0x110+var_8 ; +0x7c, 0xb5fe4 BL sub_6429C ; +0x7e, 0xb5fe6 MOV R0, R6 ; +0x82, 0xb5fea ADD SP, SP, #0x110 ; +0x84, 0xb5fec POP.W {R8} ; +0x86, 0xb5fee POP {R4-R7,PC} ; +0x8a, 0xb5ff2