; ; FMOD::Sound::set3DCustomRolloff from 0xb509c to 0xb513a (158 bytes) ; ; 1 xrefs: ; > FMOD::Sound::set3DCustomRolloff @ 0xe0528 ; ; 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, 0xb509c ADD R7, SP, #0xC ; +0x2, 0xb509e PUSH.W {R8,R9,R11} ; +0x4, 0xb50a0 SUB SP, SP, #0x110 ; +0x8, 0xb50a4 MOV R8, R2 ; +0xa, 0xb50a6 MOV R9, R1 ; +0xc, 0xb50a8 MOV R4, R0 ; +0xe, 0xb50aa MOVS R0, #0 ; +0x10, 0xb50ac ADD R1, SP, #0x110+var_4 ; +0x12, 0xb50ae ADD R2, SP, #0x110+var_8 ; +0x14, 0xb50b0 STR R0, [SP,#0x110+var_8] ; +0x16, 0xb50b2 MOV R0, R4 ; +0x18, 0xb50b4 BL sub_54E84 ; +0x1a, 0xb50b6 MOV R5, R0 ; +0x1e, 0xb50ba CBNZ R0, loc_B50FC ; +0x20, 0xb50bc LDR R0, [SP,#0x110+var_4] ; +0x22, 0xb50be LDR.W R0, [R0,#0xBC] ; +0x24, 0xb50c0 DMB.W ISH ; +0x28, 0xb50c4 CBZ R0, loc_B50E6 ; +0x2c, 0xb50c8 LDR R0, [SP,#0x110+var_4] ; +0x2e, 0xb50ca LDR.W R0, [R0,#0xBC] ; +0x30, 0xb50cc DMB.W ISH ; +0x34, 0xb50d0 CMP R0, #7 ; +0x38, 0xb50d4 BEQ loc_B50E6 ; +0x3a, 0xb50d6 LDR R0, [SP,#0x110+var_4] ; +0x3c, 0xb50d8 LDR.W R0, [R0,#0xBC] ; +0x3e, 0xb50da DMB.W ISH ; +0x42, 0xb50de CMP R0, #5 ; +0x46, 0xb50e2 BNE loc_B50FA ; +0x48, 0xb50e4 LDR R0, [SP,#0x110+var_4] ; +0x4a, 0xb50e6 MOV R2, R8 ; +0x4c, 0xb50e8 LDR R1, [R0] ; +0x4e, 0xb50ea LDR R3, [R1,#0x34] ; +0x50, 0xb50ec MOV R1, R9 ; +0x52, 0xb50ee BLX R3 ; +0x54, 0xb50f0 MOV R5, R0 ; +0x56, 0xb50f2 CBNZ R0, loc_B50FC ; +0x58, 0xb50f4 MOVS R5, #0 ; +0x5a, 0xb50f6 B loc_B512A ; +0x5c, 0xb50f8 MOVS R5, #0x2E ; '.' ; +0x5e, 0xb50fa LDR R0, =(off_E6144 - 0xB5102) ; +0x60, 0xb50fc ADD R0, PC; off_E6144 ; +0x62, 0xb50fe LDR R0, [R0]; off_E8000 ; +0x64, 0xb5100 LDR R0, [R0]; dword_F2488 ; +0x66, 0xb5102 LDRB R0, [R0,#(dword_F249C - 0xF2488)] ; +0x68, 0xb5104 LSLS R0, R0, #0x18 ; +0x6a, 0xb5106 BPL loc_B512A ; +0x6c, 0xb5108 ADD R6, SP, #0x110+var_108 ; +0x6e, 0xb510a MOV.W R1, #0x100 ; +0x70, 0xb510c MOV R2, R9 ; +0x74, 0xb5110 MOV R3, R8 ; +0x76, 0xb5112 MOV R0, R6 ; +0x78, 0xb5114 BL sub_AF8AC ; +0x7a, 0xb5116 STR R6, [SP,#0x110+var_110] ; +0x7e, 0xb511a MOV R0, R5 ; +0x80, 0xb511c LDR R3, =(aSoundSet3dcust - 0xB5128); "Sound::set3DCustomRolloff" ... ; +0x82, 0xb511e MOVS R1, #5 ; +0x84, 0xb5120 MOV R2, R4 ; +0x86, 0xb5122 ADD R3, PC; "Sound::set3DCustomRolloff" ; +0x88, 0xb5124 BL sub_BAB40 ; +0x8a, 0xb5126 ADD R0, SP, #0x110+var_8 ; +0x8e, 0xb512a BL sub_6429C ; +0x90, 0xb512c MOV R0, R5 ; +0x94, 0xb5130 ADD SP, SP, #0x110 ; +0x96, 0xb5132 POP.W {R8,R9,R11} ; +0x98, 0xb5134 POP {R4-R7,PC} ; +0x9c, 0xb5138