{"type": "func", "start": 741372, "end": 741524, "name": "FMOD::Sound::get3DConeSettings", "pseudocode": "// \n// FMOD::Sound::get3DConeSettings from 0xb4ffc to 0xb5094 (152 bytes)\n// \n// 1 xrefs:\n// > FMOD::Sound::get3DConeSettings @ 0xe0518\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::get3DConeSettings(FMOD::Sound *this, float *a2, float *a3, float *a4)\n{\n  int v8; // r6\n  int v9; // r0\n  int v10; // r0\n  int v11; // r0\n  _BYTE v13[256]; // [sp+4h] [bp-11Ch] BYREF\n  _DWORD *v14; // [sp+104h] [bp-1Ch] BYREF\n\n  v8 = sub_54E84((int)this, &v14, 0);\n  if ( !v8 )\n  {\n    v9 = v14[47];\n    __dmb(0xBu);\n    if ( !v9 || (v10 = v14[47], __dmb(0xBu), v10 == 7) || (v11 = v14[47], __dmb(0xBu), v11 == 5) )\n    {\n      v8 = (*(int (__fastcall **)(_DWORD *, float *, float *, float *))(*v14 + 48))(v14, a2, a3, a4);\n      if ( !v8 )\n        return 0;\n    }\n    else\n    {\n      v8 = 46;\n    }\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_AF6D4((int)v13, 256, a2, a3, a4);\n    sub_BAB40(v8, 5, this, \"Sound::get3DConeSettings\", v13);\n  }\n  return v8;\n}", "assembly": "; \n; FMOD::Sound::get3DConeSettings from 0xb4ffc to 0xb5094 (152 bytes)\n; \n; 1 xrefs:\n; > FMOD::Sound::get3DConeSettings @ 0xe0518\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, 0xb4ffc\nADD             R7, SP, #0xC                                           ; +0x2, 0xb4ffe\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0xb5000\nSUB             SP, SP, #0x108                                         ; +0x8, 0xb5004\nMOV             R9, R1                                                 ; +0xa, 0xb5006\nADD             R1, SP, #0x108+var_4                                   ; +0xc, 0xb5008\nMOV             R8, R2                                                 ; +0xe, 0xb500a\nMOVS            R2, #0                                                 ; +0x10, 0xb500c\nMOV             R5, R3                                                 ; +0x12, 0xb500e\nMOV             R4, R0                                                 ; +0x14, 0xb5010\nBL              sub_54E84                                              ; +0x16, 0xb5012\nMOV             R6, R0                                                 ; +0x1a, 0xb5016\nCBNZ            R0, loc_B505A                                          ; +0x1c, 0xb5018\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x1e, 0xb501a\nLDR.W           R0, [R0,#0xBC]                                         ; +0x20, 0xb501c\nDMB.W           ISH                                                    ; +0x24, 0xb5020\nCBZ             R0, loc_B5042                                          ; +0x28, 0xb5024\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x2a, 0xb5026\nLDR.W           R0, [R0,#0xBC]                                         ; +0x2c, 0xb5028\nDMB.W           ISH                                                    ; +0x30, 0xb502c\nCMP             R0, #7                                                 ; +0x34, 0xb5030\nBEQ             loc_B5042                                              ; +0x36, 0xb5032\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x38, 0xb5034\nLDR.W           R0, [R0,#0xBC]                                         ; +0x3a, 0xb5036\nDMB.W           ISH                                                    ; +0x3e, 0xb503a\nCMP             R0, #5                                                 ; +0x42, 0xb503e\nBNE             loc_B5058                                              ; +0x44, 0xb5040\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x46, 0xb5042\nMOV             R2, R8                                                 ; +0x48, 0xb5044\nMOV             R3, R5                                                 ; +0x4a, 0xb5046\nLDR             R1, [R0]                                               ; +0x4c, 0xb5048\nLDR             R6, [R1,#0x30]                                         ; +0x4e, 0xb504a\nMOV             R1, R9                                                 ; +0x50, 0xb504c\nBLX             R6                                                     ; +0x52, 0xb504e\nMOV             R6, R0                                                 ; +0x54, 0xb5050\nCBNZ            R0, loc_B505A                                          ; +0x56, 0xb5052\nMOVS            R6, #0                                                 ; +0x58, 0xb5054\nB               loc_B508A                                              ; +0x5a, 0xb5056\nMOVS            R6, #0x2E ; '.'                                        ; +0x5c, 0xb5058\nLDR             R0, =(off_E6144 - 0xB5060)                             ; +0x5e, 0xb505a\nADD             R0, PC; off_E6144                                      ; +0x60, 0xb505c\nLDR             R0, [R0]; off_E8000                                    ; +0x62, 0xb505e\nLDR             R0, [R0]; dword_F2488                                  ; +0x64, 0xb5060\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x66, 0xb5062\nLSLS            R0, R0, #0x18                                          ; +0x68, 0xb5064\nBPL             loc_B508A                                              ; +0x6a, 0xb5066\nSTR             R5, [SP,#0x108+var_108]                                ; +0x6c, 0xb5068\nADD             R5, SP, #0x108+var_104                                 ; +0x6e, 0xb506a\nMOV.W           R1, #0x100                                             ; +0x70, 0xb506c\nMOV             R2, R9                                                 ; +0x74, 0xb5070\nMOV             R0, R5                                                 ; +0x76, 0xb5072\nMOV             R3, R8                                                 ; +0x78, 0xb5074\nBL              sub_AF6D4                                              ; +0x7a, 0xb5076\nSTR             R5, [SP,#0x108+var_108]                                ; +0x7e, 0xb507a\nMOV             R0, R6                                                 ; +0x80, 0xb507c\nLDR             R3, =(aSoundGet3dcone - 0xB5088); \"Sound::get3DConeSettings\" ... ; +0x82, 0xb507e\nMOVS            R1, #5                                                 ; +0x84, 0xb5080\nMOV             R2, R4                                                 ; +0x86, 0xb5082\nADD             R3, PC; \"Sound::get3DConeSettings\"                     ; +0x88, 0xb5084\nBL              sub_BAB40                                              ; +0x8a, 0xb5086\nMOV             R0, R6                                                 ; +0x8e, 0xb508a\nADD             SP, SP, #0x108                                         ; +0x90, 0xb508c\nPOP.W           {R8,R9,R11}                                            ; +0x92, 0xb508e\nPOP             {R4-R7,PC}                                             ; +0x96, 0xb5092", "xrefs": ["FMOD::Sound::get3DConeSettings @ 0xe0518"], "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"}