//
// sub_59F40 from 0x59f40 to 0x59f8a (74 bytes)
//
// 1 xrefs:
// > FMOD::System::getFileUsage @ 0xb9332
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_59F40(unsigned __int64 *a1, unsigned __int64 *a2, unsigned __int64 *a3, unsigned __int64 *a4)
{
unsigned __int64 v4; // r4
unsigned __int64 v5; // kr00_8
unsigned __int64 v6; // r0
if ( a2 )
{
v4 = __ldrexd(a1 + 8581);
__clrex();
__dmb(0xBu);
*a2 = v4;
}
if ( a3 )
{
v5 = __ldrexd(a1 + 8582);
__clrex();
__dmb(0xBu);
*a3 = v5;
}
if ( a4 )
{
v6 = __ldrexd(a1 + 8583);
__clrex();
__dmb(0xBu);
*a4 = v6;
}
return 0;
}