{"type": "func", "start": 740676, "end": 740812, "name": "FMOD::Sound::getDefaults", "pseudocode": "// \n// FMOD::Sound::getDefaults from 0xb4d44 to 0xb4dcc (136 bytes)\n// \n// 1 xrefs:\n// > FMOD::Sound::getDefaults @ 0xe04d8\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::getDefaults(FMOD::Sound *this, float *a2, int *a3)\n{\n  int v6; // r5\n  int v7; // r0\n  int v8; // r0\n  _BYTE v10[256]; // [sp+4h] [bp-11Ch] BYREF\n  _DWORD *v11; // [sp+104h] [bp-1Ch] BYREF\n\n  v6 = sub_54E84((int)this, &v11, 0);\n  if ( !v6 )\n  {\n    v7 = v11[47];\n    __dmb(0xBu);\n    if ( v7 && (v8 = v11[47], __dmb(0xBu), v8 != 7) )\n    {\n      v6 = 46;\n    }\n    else\n    {\n      v6 = (*(int (__fastcall **)(_DWORD *, float *, int *))(*v11 + 32))(v11, a2, a3);\n      if ( !v6 )\n        return 0;\n    }\n  }\n  if ( (*((_BYTE *)&dword_14 + (_DWORD)off_E8000) & 0x80) != 0 )\n  {\n    sub_B4DD4(v10, 256, a2, a3);\n    sub_BAB40(v6, 5, this, \"Sound::getDefaults\", v10);\n  }\n  return v6;\n}", "assembly": "; \n; FMOD::Sound::getDefaults from 0xb4d44 to 0xb4dcc (136 bytes)\n; \n; 1 xrefs:\n; > FMOD::Sound::getDefaults @ 0xe04d8\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, 0xb4d44\nADD             R7, SP, #0xC                                           ; +0x2, 0xb4d46\nPUSH.W          {R8,R9,R11}                                            ; +0x4, 0xb4d48\nSUB             SP, SP, #0x108                                         ; +0x8, 0xb4d4c\nMOV             R6, R1                                                 ; +0xa, 0xb4d4e\nADD             R1, SP, #0x108+var_4                                   ; +0xc, 0xb4d50\nMOV             R8, R2                                                 ; +0xe, 0xb4d52\nMOVS            R2, #0                                                 ; +0x10, 0xb4d54\nMOV             R4, R0                                                 ; +0x12, 0xb4d56\nBL              sub_54E84                                              ; +0x14, 0xb4d58\nMOV             R5, R0                                                 ; +0x18, 0xb4d5c\nCBNZ            R0, loc_B4D90                                          ; +0x1a, 0xb4d5e\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x1c, 0xb4d60\nLDR.W           R0, [R0,#0xBC]                                         ; +0x1e, 0xb4d62\nDMB.W           ISH                                                    ; +0x22, 0xb4d66\nCBZ             R0, loc_B4D7A                                          ; +0x26, 0xb4d6a\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x28, 0xb4d6c\nLDR.W           R0, [R0,#0xBC]                                         ; +0x2a, 0xb4d6e\nDMB.W           ISH                                                    ; +0x2e, 0xb4d72\nCMP             R0, #7                                                 ; +0x32, 0xb4d76\nBNE             loc_B4D8E                                              ; +0x34, 0xb4d78\nLDR             R0, [SP,#0x108+var_4]                                  ; +0x36, 0xb4d7a\nMOV             R2, R8                                                 ; +0x38, 0xb4d7c\nLDR             R1, [R0]                                               ; +0x3a, 0xb4d7e\nLDR             R3, [R1,#0x20]                                         ; +0x3c, 0xb4d80\nMOV             R1, R6                                                 ; +0x3e, 0xb4d82\nBLX             R3                                                     ; +0x40, 0xb4d84\nMOV             R5, R0                                                 ; +0x42, 0xb4d86\nCBNZ            R0, loc_B4D90                                          ; +0x44, 0xb4d88\nMOVS            R5, #0                                                 ; +0x46, 0xb4d8a\nB               loc_B4DC2                                              ; +0x48, 0xb4d8c\nMOVS            R5, #0x2E ; '.'                                        ; +0x4a, 0xb4d8e\nLDR             R0, =(off_E6144 - 0xB4D96)                             ; +0x4c, 0xb4d90\nADD             R0, PC; off_E6144                                      ; +0x4e, 0xb4d92\nLDR             R0, [R0]; off_E8000                                    ; +0x50, 0xb4d94\nLDR             R0, [R0]; dword_F2488                                  ; +0x52, 0xb4d96\nLDRB            R0, [R0,#(dword_F249C - 0xF2488)]                      ; +0x54, 0xb4d98\nLSLS            R0, R0, #0x18                                          ; +0x56, 0xb4d9a\nBPL             loc_B4DC2                                              ; +0x58, 0xb4d9c\nADD.W           R9, SP, #0x108+var_104                                 ; +0x5a, 0xb4d9e\nMOV.W           R1, #0x100                                             ; +0x5e, 0xb4da2\nMOV             R2, R6                                                 ; +0x62, 0xb4da6\nMOV             R3, R8                                                 ; +0x64, 0xb4da8\nMOV             R0, R9                                                 ; +0x66, 0xb4daa\nBL              sub_B4DD4                                              ; +0x68, 0xb4dac\nSTR.W           R9, [SP,#0x108+var_108]                                ; +0x6c, 0xb4db0\nMOV             R0, R5                                                 ; +0x70, 0xb4db4\nLDR             R3, =(aSoundGetdefaul - 0xB4DC0); \"Sound::getDefaults\" ... ; +0x72, 0xb4db6\nMOVS            R1, #5                                                 ; +0x74, 0xb4db8\nMOV             R2, R4                                                 ; +0x76, 0xb4dba\nADD             R3, PC; \"Sound::getDefaults\"                           ; +0x78, 0xb4dbc\nBL              sub_BAB40                                              ; +0x7a, 0xb4dbe\nMOV             R0, R5                                                 ; +0x7e, 0xb4dc2\nADD             SP, SP, #0x108                                         ; +0x80, 0xb4dc4\nPOP.W           {R8,R9,R11}                                            ; +0x82, 0xb4dc6\nPOP             {R4-R7,PC}                                             ; +0x86, 0xb4dca", "xrefs": ["FMOD::Sound::getDefaults @ 0xe04d8"], "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"}