//
// FMOD::System::attachFileSystem from 0x1005eec48 to 0x1005eedec (420 bytes)
//
// 1 xrefs:
// > sub_100578B6C @ 0x100578b70
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:09:47 +0000
//
__int64 __fastcall FMOD::System::attachFileSystem(__int64 a1, __int64 a2, __int64 a3, __int64 a4, __int64 a5)
{
__int64 v10; // x19
int v11; // w0
int v12; // w3
int v13; // w4
int v14; // w5
int v15; // w6
int v16; // w7
__int64 v17; // x27
int v18; // w23
int v19; // w3
int v20; // w4
int v21; // w5
int v22; // w6
int v23; // w7
int v24; // w23
int v25; // w22
int v26; // w3
int v27; // w4
int v28; // w5
int v29; // w6
int v30; // w7
int v31; // w8
__int64 v33; // [xsp+8h] [xbp-168h] BYREF
__int64 v34; // [xsp+10h] [xbp-160h] BYREF
_BYTE v35[256]; // [xsp+18h] [xbp-158h] BYREF
v33 = 0;
v10 = sub_1005F45A8(a1, &v34, &v33);
if ( (_DWORD)v10 || (v10 = sub_1005F68F8(v34, a2, a3, a4, a5), (_DWORD)v10) )
{
if ( (*((_BYTE *)off_1009DA5E8 + 32) & 0x80) != 0 )
{
v11 = sub_10055BF8C(v35, 0x100u, a2 != 0);
v17 = v11 + (__int64)(int)sub_10055C01C(&v35[v11], (unsigned int)(256 - v11), ", ", v12, v13, v14, v15, v16);
v18 = v17 + sub_10055BF8C(&v35[v17], (unsigned int)(256 - v17), a3 != 0);
v24 = v18 + sub_10055C01C(&v35[v18], (unsigned int)(256 - v18), ", ", v19, v20, v21, v22, v23);
v25 = v24 + sub_10055BF8C(&v35[v24], (unsigned int)(256 - v24), a4 != 0);
v31 = v25 + sub_10055C01C(&v35[v25], (unsigned int)(256 - v25), ", ", v26, v27, v28, v29, v30);
sub_10055BF8C(&v35[v31], (unsigned int)(256 - v31), a5 != 0);
sub_1005AAA04(v10, 1, a1, (__int64)"System::attachFileSystem", (__int64)v35);
}
}
if ( v33 )
sub_100568EE8(v33);
return v10;
}