//
// sub_1005F0854 from 0x1005f0854 to 0x1005f08d4 (128 bytes)
//
// 2 xrefs:
// > sub_100604154 @ 0x10060416c
// > sub_100604170 @ 0x100604188
//
// 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
//
__int64 __fastcall sub_1005F0854(__int64 a1, __int64 a2, __int64 a3)
{
int v5; // w0
__int64 v6; // x22
void *v7; // x21
__int64 v9; // [xsp+0h] [xbp-30h] BYREF
void *v10; // [xsp+8h] [xbp-28h] BYREF
v10 = nullptr;
v5 = sub_1005F0540(a2, (unsigned __int64 **)&v10);
v6 = 0;
v7 = v10;
if ( (v5 & 0x80000000) == 0 )
{
v9 = *((_QWORD *)v10 + 1);
v6 = sub_1005F6E34(a3, &v9, v5, a1);
}
if ( v7 )
sub_1005D9DF8(v7);
return v6;
}