{"type": "func", "start": 4299944224, "end": 4299944636, "name": "FMOD::Sound::get3DConeSettings", "pseudocode": "// \n// FMOD::Sound::get3DConeSettings from 0x1004bf120 to 0x1004bf2bc (412 bytes)\n// \n// 1 xrefs:\n// > sub_100453014 @ 0x100453018\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nFMOD_RESULT __fastcall FMOD::Sound::get3DConeSettings(FMOD::Sound *a1, float *a2, float *a3, float *a4)\n{\n  int v8; // w3\n  int v9; // w4\n  int v10; // w5\n  int v11; // w6\n  int v12; // w7\n  __int64 v13; // x21\n  unsigned int v14; // w8\n  unsigned int v15; // w8\n  unsigned int v16; // w8\n  int v17; // w0\n  int v18; // w3\n  int v19; // w4\n  int v20; // w5\n  int v21; // w6\n  int v22; // w7\n  __int64 v23; // x26\n  int v24; // w3\n  int v25; // w4\n  int v26; // w5\n  int v27; // w6\n  int v28; // w7\n  int v29; // w22\n  int v30; // w3\n  int v31; // w4\n  int v32; // w5\n  int v33; // w6\n  int v34; // w7\n  int v35; // w0\n  int v36; // w3\n  int v37; // w4\n  int v38; // w5\n  int v39; // w6\n  int v40; // w7\n  unsigned int *v42; // [xsp+0h] [xbp-160h] BYREF\n  _BYTE v43[256]; // [xsp+8h] [xbp-158h] BYREF\n\n  v13 = sub_1004C3CE0(a1, &v42, 0);\n  if ( !(_DWORD)v13 )\n  {\n    v14 = atomic_load(v42 + 68);\n    if ( !v14 || (v15 = atomic_load(v42 + 68), v15 == 7) || (v16 = atomic_load(v42 + 68), v16 == 5) )\n    {\n      v13 = (*(__int64 (__fastcall **)(unsigned int *, float *, float *, float *))(*(_QWORD *)v42 + 96LL))(\n              v42,\n              a2,\n              a3,\n              a4);\n      if ( !(_DWORD)v13 )\n        return (unsigned int)v13;\n    }\n    else\n    {\n      v13 = 46;\n    }\n  }\n  if ( (*((_BYTE *)off_1008524C8 + 32) & 0x80) != 0 )\n  {\n    v17 = sub_1004361AC((int)v43, 0x100u, (__int64)a2, v8, v9, v10, v11, v12);\n    v23 = v17 + (__int64)(int)sub_100435EB4(&v43[v17], (unsigned int)(256 - v17), \", \", v18, v19, v20, v21, v22);\n    v29 = v23 + sub_1004361AC((int)&v43[v23], (unsigned int)(256 - v23), (__int64)a3, v24, v25, v26, v27, v28);\n    v35 = sub_100435EB4(&v43[v29], (unsigned int)(256 - v29), \", \", v30, v31, v32, v33, v34);\n    sub_1004361AC((int)&v43[v29 + v35], (unsigned int)(256 - (v29 + v35)), (__int64)a4, v36, v37, v38, v39, v40);\n    sub_10048489C(v13, 5, (__int64)a1, (__int64)\"Sound::get3DConeSettings\", (__int64)v43);\n  }\n  return (unsigned int)v13;\n}", "assembly": "; \n; FMOD::Sound::get3DConeSettings from 0x1004bf120 to 0x1004bf2bc (412 bytes)\n; \n; 1 xrefs:\n; > sub_100453014 @ 0x100453018\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x170                                         ; +0x0, 0x1004bf120\nSTP             X28, X27, [SP,#0x160+var_50]                           ; +0x4, 0x1004bf124\nSTP             X26, X25, [SP,#0x160+var_40]                           ; +0x8, 0x1004bf128\nSTP             X24, X23, [SP,#0x160+var_30]                           ; +0xc, 0x1004bf12c\nSTP             X22, X21, [SP,#0x160+var_20]                           ; +0x10, 0x1004bf130\nSTP             X20, X19, [SP,#0x160+var_10]                           ; +0x14, 0x1004bf134\nSTP             X29, X30, [SP,#0x160+var_s0]                           ; +0x18, 0x1004bf138\nADD             X29, SP, #0x160                                        ; +0x1c, 0x1004bf13c\nMOV             X20, X3                                                ; +0x20, 0x1004bf140\nMOV             X22, X2                                                ; +0x24, 0x1004bf144\nMOV             X23, X1                                                ; +0x28, 0x1004bf148\nMOV             X19, X0                                                ; +0x2c, 0x1004bf14c\nADRP            X8, #___stack_chk_guard_ptr@PAGE                       ; +0x30, 0x1004bf150\nLDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x34, 0x1004bf154\nLDR             X8, [X8]                                               ; +0x38, 0x1004bf158\nSTUR            X8, [X29,#var_58]                                      ; +0x3c, 0x1004bf15c\nMOV             X1, SP                                                 ; +0x40, 0x1004bf160\nMOV             X2, #0                                                 ; +0x44, 0x1004bf164\nBL              sub_1004C3CE0                                          ; +0x48, 0x1004bf168\nMOV             X21, X0                                                ; +0x4c, 0x1004bf16c\nCBNZ            W0, loc_1004BF1D8                                      ; +0x50, 0x1004bf170\nLDR             X8, [SP,#0x160+var_160]                                ; +0x54, 0x1004bf174\nADD             X8, X8, #0x110                                         ; +0x58, 0x1004bf178\nLDAR            W8, [X8]                                               ; +0x5c, 0x1004bf17c\nCBZ             W8, loc_1004BF1AC                                      ; +0x60, 0x1004bf180\nLDR             X8, [SP,#0x160+var_160]                                ; +0x64, 0x1004bf184\nADD             X8, X8, #0x110                                         ; +0x68, 0x1004bf188\nLDAR            W8, [X8]                                               ; +0x6c, 0x1004bf18c\nCMP             W8, #7                                                 ; +0x70, 0x1004bf190\nB.EQ            loc_1004BF1AC                                          ; +0x74, 0x1004bf194\nLDR             X8, [SP,#0x160+var_160]                                ; +0x78, 0x1004bf198\nADD             X8, X8, #0x110                                         ; +0x7c, 0x1004bf19c\nLDAR            W8, [X8]                                               ; +0x80, 0x1004bf1a0\nCMP             W8, #5                                                 ; +0x84, 0x1004bf1a4\nB.NE            loc_1004BF1D4                                          ; +0x88, 0x1004bf1a8\nLDR             X0, [SP,#0x160+var_160]                                ; +0x8c, 0x1004bf1ac\nLDR             X8, [X0]                                               ; +0x90, 0x1004bf1b0\nLDR             X8, [X8,#0x60]                                         ; +0x94, 0x1004bf1b4\nMOV             X1, X23                                                ; +0x98, 0x1004bf1b8\nMOV             X2, X22                                                ; +0x9c, 0x1004bf1bc\nMOV             X3, X20                                                ; +0xa0, 0x1004bf1c0\nBLR             X8                                                     ; +0xa4, 0x1004bf1c4\nMOV             X21, X0                                                ; +0xa8, 0x1004bf1c8\nCBNZ            W0, loc_1004BF1D8                                      ; +0xac, 0x1004bf1cc\nB               loc_1004BF27C                                          ; +0xb0, 0x1004bf1d0\nMOV             W21, #0x2E ; '.'                                       ; +0xb4, 0x1004bf1d4\nADRL            X8, off_1008524C8                                      ; +0xb8, 0x1004bf1d8\nLDR             X8, [X8]; unk_1008786E0                                ; +0xc0, 0x1004bf1e0\nLDRB            W8, [X8,#(dword_100878700 - 0x1008786E0)]              ; +0xc4, 0x1004bf1e4\nTBZ             W8, #7, loc_1004BF27C                                  ; +0xc8, 0x1004bf1e8\nADD             X24, SP, #0x160+var_158                                ; +0xcc, 0x1004bf1ec\nMOV             W25, #0x100                                            ; +0xd0, 0x1004bf1f0\nADD             X0, SP, #0x160+var_158                                 ; +0xd4, 0x1004bf1f4\nMOV             W1, #0x100                                             ; +0xd8, 0x1004bf1f8\nMOV             X2, X23                                                ; +0xdc, 0x1004bf1fc\nBL              sub_1004361AC                                          ; +0xe0, 0x1004bf200\nSXTW            X26, W0                                                ; +0xe4, 0x1004bf204\nADD             X8, X24, X26                                           ; +0xe8, 0x1004bf208\nSUB             W1, W25, W0                                            ; +0xec, 0x1004bf20c\nADRL            X23, asc_1006C9A07; \", \"                               ; +0xf0, 0x1004bf210\nMOV             X0, X8                                                 ; +0xf8, 0x1004bf218\nMOV             X2, X23                                                ; +0xfc, 0x1004bf21c\nBL              sub_100435EB4                                          ; +0x100, 0x1004bf220\nADD             X26, X26, W0,SXTW                                      ; +0x104, 0x1004bf224\nADD             X0, X24, X26                                           ; +0x108, 0x1004bf228\nSUB             W1, W25, W26                                           ; +0x10c, 0x1004bf22c\nMOV             X2, X22                                                ; +0x110, 0x1004bf230\nBL              sub_1004361AC                                          ; +0x114, 0x1004bf234\nADD             W22, W26, W0                                           ; +0x118, 0x1004bf238\nADD             X0, X24, W22,SXTW                                      ; +0x11c, 0x1004bf23c\nSUB             W1, W25, W22                                           ; +0x120, 0x1004bf240\nMOV             X2, X23                                                ; +0x124, 0x1004bf244\nBL              sub_100435EB4                                          ; +0x128, 0x1004bf248\nADD             W8, W22, W0                                            ; +0x12c, 0x1004bf24c\nADD             X0, X24, W8,SXTW                                       ; +0x130, 0x1004bf250\nSUB             W1, W25, W8                                            ; +0x134, 0x1004bf254\nMOV             X2, X20                                                ; +0x138, 0x1004bf258\nBL              sub_1004361AC                                          ; +0x13c, 0x1004bf25c\nADRL            X3, aSoundGet3dcone; \"Sound::get3DConeSettings\"        ; +0x140, 0x1004bf260\nADD             X4, SP, #0x160+var_158                                 ; +0x148, 0x1004bf268\nMOV             X0, X21                                                ; +0x14c, 0x1004bf26c\nMOV             W1, #5                                                 ; +0x150, 0x1004bf270\nMOV             X2, X19                                                ; +0x154, 0x1004bf274\nBL              sub_10048489C                                          ; +0x158, 0x1004bf278\nLDUR            X8, [X29,#var_58]                                      ; +0x15c, 0x1004bf27c\nADRP            X9, #___stack_chk_guard_ptr@PAGE                       ; +0x160, 0x1004bf280\nLDR             X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x164, 0x1004bf284\nLDR             X9, [X9]                                               ; +0x168, 0x1004bf288\nCMP             X9, X8                                                 ; +0x16c, 0x1004bf28c\nB.NE            loc_1004BF2B8                                          ; +0x170, 0x1004bf290\nMOV             X0, X21                                                ; +0x174, 0x1004bf294\nLDP             X29, X30, [SP,#0x160+var_s0]                           ; +0x178, 0x1004bf298\nLDP             X20, X19, [SP,#0x160+var_10]                           ; +0x17c, 0x1004bf29c\nLDP             X22, X21, [SP,#0x160+var_20]                           ; +0x180, 0x1004bf2a0\nLDP             X24, X23, [SP,#0x160+var_30]                           ; +0x184, 0x1004bf2a4\nLDP             X26, X25, [SP,#0x160+var_40]                           ; +0x188, 0x1004bf2a8\nLDP             X28, X27, [SP,#0x160+var_50]                           ; +0x18c, 0x1004bf2ac\nADD             SP, SP, #0x170                                         ; +0x190, 0x1004bf2b0\nRET                                                                    ; +0x194, 0x1004bf2b4\nBL              ___stack_chk_fail                                      ; +0x198, 0x1004bf2b8", "xrefs": ["sub_100453014 @ 0x100453018"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}