{"type": "func", "start": 741532, "end": 741690, "name": "FMOD::Sound::set3DCustomRolloff", "pseudocode": "// \n// FMOD::Sound::set3DCustomRolloff from 0xb509c to 0xb513a (158 bytes)\n// \n// 1 xrefs:\n// > FMOD::Sound::set3DCustomRolloff @ 0xe0528\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:41:42 +0000\n// \n\nint __fastcall FMOD::Sound::set3DCustomRolloff(int a1, float *a2, unsigned int a3)\n{\n  int v6; // r5\n  int v7; // r0\n  int v8; // r0\n  int v9; // r0\n  _BYTE v11[256]; // [sp+8h] [bp-120h] BYREF\n  int v12; // [sp+108h] [bp-20h] BYREF\n  _DWORD *v13; // [sp+10Ch] [bp-1Ch] BYREF\n\n  v12 = 0;\n  v6 = sub_54E84(a1, &v13, (int)&v12);\n  if ( !v6 )\n  {\n    v7 = v13[47];\n    __dmb(0xBu);\n    if ( !v7 || (v8 = v13[47], __dmb(0xBu), v8 == 7) || (v9 = v13[47], __dmb(0xBu), v9 == 5) )\n    {\n      v6 = (*(int (__fastcall **)(_DWORD *, float *, unsigned int))(*v13 + 52))(v13, a2, a3);\n      if ( !v6 )\n      {\n        v6 = 0;\n        goto LABEL_10;\n      }\n    }\n    else\n    {\n      v6 = 46;\n    }\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_AF8AC((int)v11, 256, a2, a3);\n    sub_BAB40(v6, 5, a1, \"Sound::set3DCustomRolloff\", v11);\n  }\nLABEL_10:\n  sub_6429C(&v12);\n  return v6;\n}", "assembly": "; \n; FMOD::Sound::set3DCustomRolloff from 0xb509c to 0xb513a (158 bytes)\n; \n; 1 xrefs:\n; > FMOD::Sound::set3DCustomRolloff @ 0xe0528\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:41:42 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0xb509c\nADD             R7, SP, #0xC                                           ; +0x2, 0xb509e\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0xb50a0\nSUB             SP, SP, #0x110                                         ; +0x8, 0xb50a4\nMOV             R8, R2                                                 ; +0xa, 0xb50a6\nMOV             R9, R1                                                 ; +0xc, 0xb50a8\nMOV             R4, R0                                                 ; +0xe, 0xb50aa\nMOVS            R0, #0                                                 ; +0x10, 0xb50ac\nADD             R1, SP, #0x110+var_4                                   ; +0x12, 0xb50ae\nADD             R2, SP, #0x110+var_8                                   ; +0x14, 0xb50b0\nSTR             R0, [SP,#0x110+var_8]                                  ; +0x16, 0xb50b2\nMOV             R0, R4                                                 ; +0x18, 0xb50b4\nBL              sub_54E84                                              ; +0x1a, 0xb50b6\nMOV             R5, R0                                                 ; +0x1e, 0xb50ba\nCBNZ            R0, loc_B50FC                                          ; +0x20, 0xb50bc\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x22, 0xb50be\nLDR.W           R0, [R0,#0xBC]                                         ; +0x24, 0xb50c0\nDMB.W           ISH                                                    ; +0x28, 0xb50c4\nCBZ             R0, loc_B50E6                                          ; +0x2c, 0xb50c8\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x2e, 0xb50ca\nLDR.W           R0, [R0,#0xBC]                                         ; +0x30, 0xb50cc\nDMB.W           ISH                                                    ; +0x34, 0xb50d0\nCMP             R0, #7                                                 ; +0x38, 0xb50d4\nBEQ             loc_B50E6                                              ; +0x3a, 0xb50d6\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x3c, 0xb50d8\nLDR.W           R0, [R0,#0xBC]                                         ; +0x3e, 0xb50da\nDMB.W           ISH                                                    ; +0x42, 0xb50de\nCMP             R0, #5                                                 ; +0x46, 0xb50e2\nBNE             loc_B50FA                                              ; +0x48, 0xb50e4\nLDR             R0, [SP,#0x110+var_4]                                  ; +0x4a, 0xb50e6\nMOV             R2, R8                                                 ; +0x4c, 0xb50e8\nLDR             R1, [R0]                                               ; +0x4e, 0xb50ea\nLDR             R3, [R1,#0x34]                                         ; +0x50, 0xb50ec\nMOV             R1, R9                                                 ; +0x52, 0xb50ee\nBLX             R3                                                     ; +0x54, 0xb50f0\nMOV             R5, R0                                                 ; +0x56, 0xb50f2\nCBNZ            R0, loc_B50FC                                          ; +0x58, 0xb50f4\nMOVS            R5, #0                                                 ; +0x5a, 0xb50f6\nB               loc_B512A                                              ; +0x5c, 0xb50f8\nMOVS            R5, #0x2E ; '.'                                        ; +0x5e, 0xb50fa\nLDR             R0, =(off_E6144 - 0xB5102)                             ; +0x60, 0xb50fc\nADD             R0, PC; off_E6144                                      ; +0x62, 0xb50fe\nLDR             R0, [R0]; off_E8000                                    ; +0x64, 0xb5100\nLDR             R0, [R0]; dword_F2488                                  ; +0x66, 0xb5102\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x68, 0xb5104\nLSLS            R0, R0, #0x18                                          ; +0x6a, 0xb5106\nBPL             loc_B512A                                              ; +0x6c, 0xb5108\nADD             R6, SP, #0x110+var_108                                 ; +0x6e, 0xb510a\nMOV.W           R1, #0x100                                             ; +0x70, 0xb510c\nMOV             R2, R9                                                 ; +0x74, 0xb5110\nMOV             R3, R8                                                 ; +0x76, 0xb5112\nMOV             R0, R6                                                 ; +0x78, 0xb5114\nBL              sub_AF8AC                                              ; +0x7a, 0xb5116\nSTR             R6, [SP,#0x110+var_110]                                ; +0x7e, 0xb511a\nMOV             R0, R5                                                 ; +0x80, 0xb511c\nLDR             R3, =(aSoundSet3dcust - 0xB5128); \"Sound::set3DCustomRolloff\" ... ; +0x82, 0xb511e\nMOVS            R1, #5                                                 ; +0x84, 0xb5120\nMOV             R2, R4                                                 ; +0x86, 0xb5122\nADD             R3, PC; \"Sound::set3DCustomRolloff\"                    ; +0x88, 0xb5124\nBL              sub_BAB40                                              ; +0x8a, 0xb5126\nADD             R0, SP, #0x110+var_8                                   ; +0x8e, 0xb512a\nBL              sub_6429C                                              ; +0x90, 0xb512c\nMOV             R0, R5                                                 ; +0x94, 0xb5130\nADD             SP, SP, #0x110                                         ; +0x96, 0xb5132\nPOP.W           {R8,R9,R11}                                            ; +0x98, 0xb5134\nPOP             {R4-R7,PC}                                             ; +0x9c, 0xb5138", "xrefs": ["FMOD::Sound::set3DCustomRolloff @ 0xe0528"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}