{"type": "func", "start": 4301187480, "end": 4301187792, "name": "FMOD::System::setFileSystem", "pseudocode": "// \n// FMOD::System::setFileSystem from 0x1005ee998 to 0x1005eead0 (312 bytes)\n// \n// 1 xrefs:\n// > sub_100578B5C @ 0x100578b60\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:47 +0000\n// \n\n__int64 __fastcall FMOD::System::setFileSystem(\n        __int64 a1,\n        __int64 a2,\n        __int64 a3,\n        __int64 a4,\n        __int64 a5,\n        __int64 a6,\n        __int64 a7,\n        __int64 a8)\n{\n  __int64 v16; // x20\n  __int64 v18; // [xsp+8h] [xbp-168h] BYREF\n  __int64 v19; // [xsp+10h] [xbp-160h] BYREF\n  _BYTE v20[256]; // [xsp+18h] [xbp-158h] BYREF\n\n  v18 = 0;\n  v16 = sub_1005F45A8(a1, &v19, &v18);\n  if ( (_DWORD)v16 || (v16 = sub_1005F6870(v19, a2, a3, a4, a5, a6, a7, a8), (_DWORD)v16) )\n  {\n    if ( (*((_BYTE *)off_1009DA5E8 + 32) & 0x80) != 0 )\n    {\n      sub_1005EEAD0(v20, 256, a2, a3, a4, a5, a6, a7, a8);\n      sub_1005AAA04(v16, 1, a1, (__int64)\"System::setFileSystem\", (__int64)v20);\n    }\n  }\n  if ( v18 )\n    sub_100568EE8(v18);\n  return v16;\n}", "assembly": "; \n; FMOD::System::setFileSystem from 0x1005ee998 to 0x1005eead0 (312 bytes)\n; \n; 1 xrefs:\n; > sub_100578B5C @ 0x100578b60\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:47 +0000\n; \nSUB             SP, SP, #0x180                                         ; +0x0, 0x1005ee998\nSTP             X28, X27, [SP,#0x170+var_50]                           ; +0x4, 0x1005ee99c\nSTP             X26, X25, [SP,#0x170+var_40]                           ; +0x8, 0x1005ee9a0\nSTP             X24, X23, [SP,#0x170+var_30]                           ; +0xc, 0x1005ee9a4\nSTP             X22, X21, [SP,#0x170+var_20]                           ; +0x10, 0x1005ee9a8\nSTP             X20, X19, [SP,#0x170+var_10]                           ; +0x14, 0x1005ee9ac\nSTP             X29, X30, [SP,#0x170+var_s0]                           ; +0x18, 0x1005ee9b0\nADD             X29, SP, #0x170                                        ; +0x1c, 0x1005ee9b4\nMOV             X26, X7                                                ; +0x20, 0x1005ee9b8\nMOV             X21, X6                                                ; +0x24, 0x1005ee9bc\nMOV             X22, X5                                                ; +0x28, 0x1005ee9c0\nMOV             X23, X4                                                ; +0x2c, 0x1005ee9c4\nMOV             X24, X3                                                ; +0x30, 0x1005ee9c8\nMOV             X25, X2                                                ; +0x34, 0x1005ee9cc\nMOV             X27, X1                                                ; +0x38, 0x1005ee9d0\nMOV             X19, X0                                                ; +0x3c, 0x1005ee9d4\nADRP            X8, #___stack_chk_guard_ptr@PAGE                       ; +0x40, 0x1005ee9d8\nLDR             X8, [X8,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x44, 0x1005ee9dc\nLDR             X8, [X8]                                               ; +0x48, 0x1005ee9e0\nSTUR            X8, [X29,#var_58]                                      ; +0x4c, 0x1005ee9e4\nSTR             XZR, [SP,#0x170+var_168]                               ; +0x50, 0x1005ee9e8\nADD             X1, SP, #0x170+var_160                                 ; +0x54, 0x1005ee9ec\nADD             X2, SP, #0x170+var_168                                 ; +0x58, 0x1005ee9f0\nBL              sub_1005F45A8                                          ; +0x5c, 0x1005ee9f4\nMOV             X20, X0                                                ; +0x60, 0x1005ee9f8\nCBNZ            W0, loc_1005EEA2C                                      ; +0x64, 0x1005ee9fc\nLDR             X0, [SP,#0x170+var_160]                                ; +0x68, 0x1005eea00\nMOV             X1, X27                                                ; +0x6c, 0x1005eea04\nMOV             X2, X25                                                ; +0x70, 0x1005eea08\nMOV             X3, X24                                                ; +0x74, 0x1005eea0c\nMOV             X4, X23                                                ; +0x78, 0x1005eea10\nMOV             X5, X22                                                ; +0x7c, 0x1005eea14\nMOV             X6, X21                                                ; +0x80, 0x1005eea18\nMOV             X7, X26                                                ; +0x84, 0x1005eea1c\nBL              sub_1005F6870                                          ; +0x88, 0x1005eea20\nMOV             X20, X0                                                ; +0x8c, 0x1005eea24\nCBZ             W0, loc_1005EEA84                                      ; +0x90, 0x1005eea28\nADRL            X8, off_1009DA5E8                                      ; +0x94, 0x1005eea2c\nLDR             X8, [X8]; unk_100A02230                                ; +0x9c, 0x1005eea34\nLDRB            W8, [X8,#(dword_100A02250 - 0x100A02230)]              ; +0xa0, 0x1005eea38\nTBZ             W8, #7, loc_1005EEA84                                  ; +0xa4, 0x1005eea3c\nSTR             W26, [SP,#0x170+var_170]                               ; +0xa8, 0x1005eea40\nADD             X0, SP, #0x170+var_158                                 ; +0xac, 0x1005eea44\nMOV             W1, #0x100                                             ; +0xb0, 0x1005eea48\nMOV             X2, X27                                                ; +0xb4, 0x1005eea4c\nMOV             X3, X25                                                ; +0xb8, 0x1005eea50\nMOV             X4, X24                                                ; +0xbc, 0x1005eea54\nMOV             X5, X23                                                ; +0xc0, 0x1005eea58\nMOV             X6, X22                                                ; +0xc4, 0x1005eea5c\nMOV             X7, X21                                                ; +0xc8, 0x1005eea60\nBL              sub_1005EEAD0                                          ; +0xcc, 0x1005eea64\nADRL            X3, aSystemSetfiles; \"System::setFileSystem\"           ; +0xd0, 0x1005eea68\nADD             X4, SP, #0x170+var_158                                 ; +0xd8, 0x1005eea70\nMOV             X0, X20                                                ; +0xdc, 0x1005eea74\nMOV             W1, #1                                                 ; +0xe0, 0x1005eea78\nMOV             X2, X19                                                ; +0xe4, 0x1005eea7c\nBL              sub_1005AAA04                                          ; +0xe8, 0x1005eea80\nLDR             X0, [SP,#0x170+var_168]                                ; +0xec, 0x1005eea84\nCBZ             X0, loc_1005EEA90                                      ; +0xf0, 0x1005eea88\nBL              sub_100568EE8                                          ; +0xf4, 0x1005eea8c\nLDUR            X8, [X29,#var_58]                                      ; +0xf8, 0x1005eea90\nADRP            X9, #___stack_chk_guard_ptr@PAGE                       ; +0xfc, 0x1005eea94\nLDR             X9, [X9,#___stack_chk_guard_ptr@PAGEOFF]; ___stack_chk_guard ; +0x100, 0x1005eea98\nLDR             X9, [X9]                                               ; +0x104, 0x1005eea9c\nCMP             X9, X8                                                 ; +0x108, 0x1005eeaa0\nB.NE            loc_1005EEACC                                          ; +0x10c, 0x1005eeaa4\nMOV             X0, X20                                                ; +0x110, 0x1005eeaa8\nLDP             X29, X30, [SP,#0x170+var_s0]                           ; +0x114, 0x1005eeaac\nLDP             X20, X19, [SP,#0x170+var_10]                           ; +0x118, 0x1005eeab0\nLDP             X22, X21, [SP,#0x170+var_20]                           ; +0x11c, 0x1005eeab4\nLDP             X24, X23, [SP,#0x170+var_30]                           ; +0x120, 0x1005eeab8\nLDP             X26, X25, [SP,#0x170+var_40]                           ; +0x124, 0x1005eeabc\nLDP             X28, X27, [SP,#0x170+var_50]                           ; +0x128, 0x1005eeac0\nADD             SP, SP, #0x180                                         ; +0x12c, 0x1005eeac4\nRET                                                                    ; +0x130, 0x1005eeac8\nBL              ___stack_chk_fail                                      ; +0x134, 0x1005eeacc", "xrefs": ["sub_100578B5C @ 0x100578b60"], "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"}