{"type": "func", "start": 4301147332, "end": 4301147664, "name": "FMOD::Sound::getDefaults", "pseudocode": "// \n// FMOD::Sound::getDefaults from 0x1005e4cc4 to 0x1005e4e10 (332 bytes)\n// \n// 1 xrefs:\n// > sub_10057913C @ 0x100579140\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:09:42 +0000\n// \n\n__int64 __fastcall FMOD::Sound::getDefaults(__int64 a1, __int64 a2, __int64 a3)\n{\n  int v6; // w3\n  int v7; // w4\n  int v8; // w5\n  int v9; // w6\n  int v10; // w7\n  __int64 v11; // x21\n  unsigned int v12; // w8\n  unsigned int v13; // w8\n  int v14; // w0\n  __int64 v15; // x22\n  int v16; // w3\n  int v17; // w4\n  int v18; // w5\n  int v19; // w6\n  int v20; // w7\n  int v21; // w0\n  int v22; // w3\n  int v23; // w4\n  int v24; // w5\n  int v25; // w6\n  int v26; // w7\n  unsigned int *v28; // [xsp+0h] [xbp-150h] BYREF\n  _BYTE v29[256]; // [xsp+8h] [xbp-148h] BYREF\n\n  v11 = sub_1005E9E48(a1, &v28, 0);\n  if ( !(_DWORD)v11 )\n  {\n    v12 = atomic_load(v28 + 68);\n    if ( v12 && (v13 = atomic_load(v28 + 68), v13 != 7) )\n    {\n      v11 = 46;\n    }\n    else\n    {\n      v11 = (*(__int64 (__fastcall **)(unsigned int *, __int64, __int64))(*(_QWORD *)v28 + 64LL))(v28, a2, a3);\n      if ( !(_DWORD)v11 )\n        return v11;\n    }\n  }\n  if ( (*((_BYTE *)off_1009DA5E8 + 32) & 0x80) != 0 )\n  {\n    v14 = sub_10055C314((int)v29, 0x100u, a2, v6, v7, v8, v9, v10);\n    v15 = v14;\n    v21 = sub_10055C01C(&v29[v14], (unsigned int)(256 - v14), \", \", v16, v17, v18, v19, v20);\n    sub_10055C214((int)&v29[v15 + v21], (unsigned int)(256 - (v15 + v21)), a3, v22, v23, v24, v25, v26);\n    sub_1005AAA04(v11, 5, a1, (__int64)\"Sound::getDefaults\", (__int64)v29);\n  }\n  return v11;\n}", "assembly": "; \n; FMOD::Sound::getDefaults from 0x1005e4cc4 to 0x1005e4e10 (332 bytes)\n; \n; 1 xrefs:\n; > sub_10057913C @ 0x100579140\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\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:09:42 +0000\n; \nSUB             SP, SP, #0x160                                         ; +0x0, 0x1005e4cc4\nSTP             X28, X27, [SP,#0x150+var_40]                           ; +0x4, 0x1005e4cc8\nSTP             X24, X23, [SP,#0x150+var_30]                           ; +0x8, 0x1005e4ccc\nSTP             X22, X21, [SP,#0x150+var_20]                           ; +0xc, 0x1005e4cd0\nSTP             X20, X19, [SP,#0x150+var_10]                           ; +0x10, 0x1005e4cd4\nSTP             X29, X30, [SP,#0x150+var_s0]                           ; +0x14, 0x1005e4cd8\nADD             X29, SP, #0x150                                        ; +0x18, 0x1005e4cdc\nMOV             X20, X2                                                ; +0x1c, 0x1005e4ce0\nMOV             X22, X1                                                ; +0x20, 0x1005e4ce4\nMOV             X19, X0                                                ; +0x24, 0x1005e4ce8\nADRP            X8, #___stack_chk_guard_ptr@PAGE                       ; +0x28, 0x1005e4cec\nLDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x2c, 0x1005e4cf0\nLDR             X8, [X8]                                               ; +0x30, 0x1005e4cf4\nSTUR            X8, [X29,#var_48]                                      ; +0x34, 0x1005e4cf8\nMOV             X1, SP                                                 ; +0x38, 0x1005e4cfc\nMOV             X2, #0                                                 ; +0x3c, 0x1005e4d00\nBL              sub_1005E9E48                                          ; +0x40, 0x1005e4d04\nMOV             X21, X0                                                ; +0x44, 0x1005e4d08\nCBNZ            W0, loc_1005E4D5C                                      ; +0x48, 0x1005e4d0c\nLDR             X8, [SP,#0x150+var_150]                                ; +0x4c, 0x1005e4d10\nADD             X8, X8, #0x110                                         ; +0x50, 0x1005e4d14\nLDAR            W8, [X8]                                               ; +0x54, 0x1005e4d18\nCBZ             W8, loc_1005E4D34                                      ; +0x58, 0x1005e4d1c\nLDR             X8, [SP,#0x150+var_150]                                ; +0x5c, 0x1005e4d20\nADD             X8, X8, #0x110                                         ; +0x60, 0x1005e4d24\nLDAR            W8, [X8]                                               ; +0x64, 0x1005e4d28\nCMP             W8, #7                                                 ; +0x68, 0x1005e4d2c\nB.NE            loc_1005E4D58                                          ; +0x6c, 0x1005e4d30\nLDR             X0, [SP,#0x150+var_150]                                ; +0x70, 0x1005e4d34\nLDR             X8, [X0]                                               ; +0x74, 0x1005e4d38\nLDR             X8, [X8,#0x40]                                         ; +0x78, 0x1005e4d3c\nMOV             X1, X22                                                ; +0x7c, 0x1005e4d40\nMOV             X2, X20                                                ; +0x80, 0x1005e4d44\nBLR             X8                                                     ; +0x84, 0x1005e4d48\nMOV             X21, X0                                                ; +0x88, 0x1005e4d4c\nCBNZ            W0, loc_1005E4D5C                                      ; +0x8c, 0x1005e4d50\nB               loc_1005E4DD4                                          ; +0x90, 0x1005e4d54\nMOV             W21, #0x2E ; '.'                                       ; +0x94, 0x1005e4d58\nADRL            X8, off_1009DA5E8                                      ; +0x98, 0x1005e4d5c\nLDR             X8, [X8]; unk_100A02230                                ; +0xa0, 0x1005e4d64\nLDRB            W8, [X8,#(dword_100A02250 - 0x100A02230)]              ; +0xa4, 0x1005e4d68\nTBZ             W8, #7, loc_1005E4DD4                                  ; +0xa8, 0x1005e4d6c\nADD             X23, SP, #0x150+var_148                                ; +0xac, 0x1005e4d70\nMOV             W24, #0x100                                            ; +0xb0, 0x1005e4d74\nADD             X0, SP, #0x150+var_148                                 ; +0xb4, 0x1005e4d78\nMOV             W1, #0x100                                             ; +0xb8, 0x1005e4d7c\nMOV             X2, X22                                                ; +0xbc, 0x1005e4d80\nBL              sub_10055C314                                          ; +0xc0, 0x1005e4d84\nSXTW            X22, W0                                                ; +0xc4, 0x1005e4d88\nADD             X8, X23, X22                                           ; +0xc8, 0x1005e4d8c\nSUB             W1, W24, W0                                            ; +0xcc, 0x1005e4d90\nADRL            X2, asc_100802E69; \", \"                                ; +0xd0, 0x1005e4d94\nMOV             X0, X8                                                 ; +0xd8, 0x1005e4d9c\nBL              sub_10055C01C                                          ; +0xdc, 0x1005e4da0\nADD             X8, X22, W0,SXTW                                       ; +0xe0, 0x1005e4da4\nADD             X0, X23, X8                                            ; +0xe4, 0x1005e4da8\nSUB             W1, W24, W8                                            ; +0xe8, 0x1005e4dac\nMOV             X2, X20                                                ; +0xec, 0x1005e4db0\nBL              sub_10055C214                                          ; +0xf0, 0x1005e4db4\nADRL            X3, aSoundGetdefaul; \"Sound::getDefaults\"              ; +0xf4, 0x1005e4db8\nADD             X4, SP, #0x150+var_148                                 ; +0xfc, 0x1005e4dc0\nMOV             X0, X21                                                ; +0x100, 0x1005e4dc4\nMOV             W1, #5                                                 ; +0x104, 0x1005e4dc8\nMOV             X2, X19                                                ; +0x108, 0x1005e4dcc\nBL              sub_1005AAA04                                          ; +0x10c, 0x1005e4dd0\nLDUR            X8, [X29,#var_48]                                      ; +0x110, 0x1005e4dd4\nADRP            X9, #___stack_chk_guard_ptr@PAGE                       ; +0x114, 0x1005e4dd8\nLDR             X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x118, 0x1005e4ddc\nLDR             X9, [X9]                                               ; +0x11c, 0x1005e4de0\nCMP             X9, X8                                                 ; +0x120, 0x1005e4de4\nB.NE            loc_1005E4E0C                                          ; +0x124, 0x1005e4de8\nMOV             X0, X21                                                ; +0x128, 0x1005e4dec\nLDP             X29, X30, [SP,#0x150+var_s0]                           ; +0x12c, 0x1005e4df0\nLDP             X20, X19, [SP,#0x150+var_10]                           ; +0x130, 0x1005e4df4\nLDP             X22, X21, [SP,#0x150+var_20]                           ; +0x134, 0x1005e4df8\nLDP             X24, X23, [SP,#0x150+var_30]                           ; +0x138, 0x1005e4dfc\nLDP             X28, X27, [SP,#0x150+var_40]                           ; +0x13c, 0x1005e4e00\nADD             SP, SP, #0x160                                         ; +0x140, 0x1005e4e04\nRET                                                                    ; +0x144, 0x1005e4e08\nBL              ___stack_chk_fail                                      ; +0x148, 0x1005e4e0c", "xrefs": ["sub_10057913C @ 0x100579140"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}