{"type": "func", "start": 4301194992, "end": 4301195396, "name": "FMOD::System::getSpeakerPosition", "pseudocode": "// \n// FMOD::System::getSpeakerPosition from 0x1005f06f0 to 0x1005f0884 (404 bytes)\n// \n// 1 xrefs:\n// > sub_100578CE4 @ 0x100578d00\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:48 +0000\n// \n\n__int64 __fastcall FMOD::System::getSpeakerPosition(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)\n{\n  int v10; // w3\n  int v11; // w4\n  int v12; // w5\n  int v13; // w6\n  int v14; // w7\n  __int64 v15; // x19\n  int v16; // w0\n  int v17; // w3\n  int v18; // w4\n  int v19; // w5\n  int v20; // w6\n  int v21; // w7\n  __int64 v22; // x27\n  int v23; // w3\n  int v24; // w4\n  int v25; // w5\n  int v26; // w6\n  int v27; // w7\n  int v28; // w23\n  int v29; // w3\n  int v30; // w4\n  int v31; // w5\n  int v32; // w6\n  int v33; // w7\n  int v34; // w23\n  int v35; // w3\n  int v36; // w4\n  int v37; // w5\n  int v38; // w6\n  int v39; // w7\n  int v40; // w22\n  int v41; // w3\n  int v42; // w4\n  int v43; // w5\n  int v44; // w6\n  int v45; // w7\n  int v46; // w0\n  int v47; // w3\n  int v48; // w4\n  int v49; // w5\n  int v50; // w6\n  int v51; // w7\n  __int64 v53; // [xsp+8h] [xbp-168h] BYREF\n  __int64 v54; // [xsp+10h] [xbp-160h] BYREF\n  _BYTE v55[256]; // [xsp+18h] [xbp-158h] BYREF\n\n  v53 = 0;\n  v15 = sub_1005F45A8(a1, &v54, &v53);\n  if ( (_DWORD)v15 || (v15 = sub_1005F7F40(v54, a2, a3, a4, a5), (_DWORD)v15) )\n  {\n    if ( (*((_BYTE *)off_1009DA5E8 + 32) & 0x80) != 0 )\n    {\n      v16 = sub_10055BE44(v55, 0x100u, a2, v10, v11, v12, v13, v14);\n      v22 = v16 + (__int64)(int)sub_10055C01C(&v55[v16], (unsigned int)(256 - v16), \", \", v17, v18, v19, v20, v21);\n      v28 = v22 + sub_10055C314((int)&v55[v22], (unsigned int)(256 - v22), a3, v23, v24, v25, v26, v27);\n      v34 = v28 + sub_10055C01C(&v55[v28], (unsigned int)(256 - v28), \", \", v29, v30, v31, v32, v33);\n      v40 = v34 + sub_10055C314((int)&v55[v34], (unsigned int)(256 - v34), a4, v35, v36, v37, v38, v39);\n      v46 = sub_10055C01C(&v55[v40], (unsigned int)(256 - v40), \", \", v41, v42, v43, v44, v45);\n      sub_10055C35C((int)&v55[v40 + v46], (unsigned int)(256 - (v40 + v46)), a5, v47, v48, v49, v50, v51);\n      sub_1005AAA04(v15, 1, a1, (__int64)\"System::getSpeakerPosition\", (__int64)v55);\n    }\n  }\n  if ( v53 )\n    sub_100568EE8(v53);\n  return v15;\n}", "assembly": "; \n; FMOD::System::getSpeakerPosition from 0x1005f06f0 to 0x1005f0884 (404 bytes)\n; \n; 1 xrefs:\n; > sub_100578CE4 @ 0x100578d00\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:48 +0000\n; \nSUB             SP, SP, #0x180                                         ; +0x0, 0x1005f06f0\nSTP             X28, X27, [SP,#0x170+var_50]                           ; +0x4, 0x1005f06f4\nSTP             X26, X25, [SP,#0x170+var_40]                           ; +0x8, 0x1005f06f8\nSTP             X24, X23, [SP,#0x170+var_30]                           ; +0xc, 0x1005f06fc\nSTP             X22, X21, [SP,#0x170+var_20]                           ; +0x10, 0x1005f0700\nSTP             X20, X19, [SP,#0x170+var_10]                           ; +0x14, 0x1005f0704\nSTP             X29, X30, [SP,#0x170+var_s0]                           ; +0x18, 0x1005f0708\nADD             X29, SP, #0x170                                        ; +0x1c, 0x1005f070c\nMOV             X21, X4                                                ; +0x20, 0x1005f0710\nMOV             X22, X3                                                ; +0x24, 0x1005f0714\nMOV             X23, X2                                                ; +0x28, 0x1005f0718\nMOV             X24, X1                                                ; +0x2c, 0x1005f071c\nMOV             X20, X0                                                ; +0x30, 0x1005f0720\nADRP            X8, #___stack_chk_guard_ptr@PAGE                       ; +0x34, 0x1005f0724\nLDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x38, 0x1005f0728\nLDR             X8, [X8]                                               ; +0x3c, 0x1005f072c\nSTUR            X8, [X29,#var_58]                                      ; +0x40, 0x1005f0730\nSTR             XZR, [SP,#0x170+var_168]                               ; +0x44, 0x1005f0734\nADD             X1, SP, #0x170+var_160                                 ; +0x48, 0x1005f0738\nADD             X2, SP, #0x170+var_168                                 ; +0x4c, 0x1005f073c\nBL              sub_1005F45A8                                          ; +0x50, 0x1005f0740\nMOV             X19, X0                                                ; +0x54, 0x1005f0744\nCBNZ            W0, loc_1005F076C                                      ; +0x58, 0x1005f0748\nLDR             X0, [SP,#0x170+var_160]                                ; +0x5c, 0x1005f074c\nMOV             X1, X24                                                ; +0x60, 0x1005f0750\nMOV             X2, X23                                                ; +0x64, 0x1005f0754\nMOV             X3, X22                                                ; +0x68, 0x1005f0758\nMOV             X4, X21                                                ; +0x6c, 0x1005f075c\nBL              sub_1005F7F40                                          ; +0x70, 0x1005f0760\nMOV             X19, X0                                                ; +0x74, 0x1005f0764\nCBZ             W0, loc_1005F0838                                      ; +0x78, 0x1005f0768\nADRL            X8, off_1009DA5E8                                      ; +0x7c, 0x1005f076c\nLDR             X8, [X8]; unk_100A02230                                ; +0x84, 0x1005f0774\nLDRB            W8, [X8,#(dword_100A02250 - 0x100A02230)]              ; +0x88, 0x1005f0778\nTBZ             W8, #7, loc_1005F0838                                  ; +0x8c, 0x1005f077c\nADD             X25, SP, #0x170+var_158                                ; +0x90, 0x1005f0780\nMOV             W26, #0x100                                            ; +0x94, 0x1005f0784\nADD             X0, SP, #0x170+var_158; int                            ; +0x98, 0x1005f0788\nMOV             W1, #0x100; int                                        ; +0x9c, 0x1005f078c\nMOV             X2, X24; char                                          ; +0xa0, 0x1005f0790\nBL              sub_10055BE44                                          ; +0xa4, 0x1005f0794\nSXTW            X27, W0                                                ; +0xa8, 0x1005f0798\nADD             X8, X25, X27                                           ; +0xac, 0x1005f079c\nSUB             W1, W26, W0                                            ; +0xb0, 0x1005f07a0\nADRL            X24, asc_100802E69; \", \"                               ; +0xb4, 0x1005f07a4\nMOV             X0, X8                                                 ; +0xbc, 0x1005f07ac\nMOV             X2, X24                                                ; +0xc0, 0x1005f07b0\nBL              sub_10055C01C                                          ; +0xc4, 0x1005f07b4\nADD             X27, X27, W0,SXTW                                      ; +0xc8, 0x1005f07b8\nADD             X0, X25, X27                                           ; +0xcc, 0x1005f07bc\nSUB             W1, W26, W27                                           ; +0xd0, 0x1005f07c0\nMOV             X2, X23                                                ; +0xd4, 0x1005f07c4\nBL              sub_10055C314                                          ; +0xd8, 0x1005f07c8\nADD             W23, W27, W0                                           ; +0xdc, 0x1005f07cc\nADD             X0, X25, W23,SXTW                                      ; +0xe0, 0x1005f07d0\nSUB             W1, W26, W23                                           ; +0xe4, 0x1005f07d4\nMOV             X2, X24                                                ; +0xe8, 0x1005f07d8\nBL              sub_10055C01C                                          ; +0xec, 0x1005f07dc\nADD             W23, W23, W0                                           ; +0xf0, 0x1005f07e0\nADD             X0, X25, W23,SXTW                                      ; +0xf4, 0x1005f07e4\nSUB             W1, W26, W23                                           ; +0xf8, 0x1005f07e8\nMOV             X2, X22                                                ; +0xfc, 0x1005f07ec\nBL              sub_10055C314                                          ; +0x100, 0x1005f07f0\nADD             W22, W23, W0                                           ; +0x104, 0x1005f07f4\nADD             X0, X25, W22,SXTW                                      ; +0x108, 0x1005f07f8\nSUB             W1, W26, W22                                           ; +0x10c, 0x1005f07fc\nMOV             X2, X24                                                ; +0x110, 0x1005f0800\nBL              sub_10055C01C                                          ; +0x114, 0x1005f0804\nADD             W8, W22, W0                                            ; +0x118, 0x1005f0808\nADD             X0, X25, W8,SXTW                                       ; +0x11c, 0x1005f080c\nSUB             W1, W26, W8                                            ; +0x120, 0x1005f0810\nMOV             X2, X21                                                ; +0x124, 0x1005f0814\nBL              sub_10055C35C                                          ; +0x128, 0x1005f0818\nADRL            X3, aSystemGetspeak; \"System::getSpeakerPosition\"      ; +0x12c, 0x1005f081c\nADD             X4, SP, #0x170+var_158                                 ; +0x134, 0x1005f0824\nMOV             X0, X19                                                ; +0x138, 0x1005f0828\nMOV             W1, #1                                                 ; +0x13c, 0x1005f082c\nMOV             X2, X20                                                ; +0x140, 0x1005f0830\nBL              sub_1005AAA04                                          ; +0x144, 0x1005f0834\nLDR             X0, [SP,#0x170+var_168]                                ; +0x148, 0x1005f0838\nCBZ             X0, loc_1005F0844                                      ; +0x14c, 0x1005f083c\nBL              sub_100568EE8                                          ; +0x150, 0x1005f0840\nLDUR            X8, [X29,#var_58]                                      ; +0x154, 0x1005f0844\nADRP            X9, #___stack_chk_guard_ptr@PAGE                       ; +0x158, 0x1005f0848\nLDR             X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x15c, 0x1005f084c\nLDR             X9, [X9]                                               ; +0x160, 0x1005f0850\nCMP             X9, X8                                                 ; +0x164, 0x1005f0854\nB.NE            loc_1005F0880                                          ; +0x168, 0x1005f0858\nMOV             X0, X19                                                ; +0x16c, 0x1005f085c\nLDP             X29, X30, [SP,#0x170+var_s0]                           ; +0x170, 0x1005f0860\nLDP             X20, X19, [SP,#0x170+var_10]                           ; +0x174, 0x1005f0864\nLDP             X22, X21, [SP,#0x170+var_20]                           ; +0x178, 0x1005f0868\nLDP             X24, X23, [SP,#0x170+var_30]                           ; +0x17c, 0x1005f086c\nLDP             X26, X25, [SP,#0x170+var_40]                           ; +0x180, 0x1005f0870\nLDP             X28, X27, [SP,#0x170+var_50]                           ; +0x184, 0x1005f0874\nADD             SP, SP, #0x180                                         ; +0x188, 0x1005f0878\nRET                                                                    ; +0x18c, 0x1005f087c\nBL              ___stack_chk_fail                                      ; +0x190, 0x1005f0880", "xrefs": ["sub_100578CE4 @ 0x100578d00"], "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"}