//
// sub_59F40 from 0x59f40 to 0x59f8a (74 bytes)
//
// 1 xrefs:
// > FMOD::System::getFileUsage @ 0xb9332
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:40:48 +0000
//
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;
}