//
// sub_1005F3024 from 0x1005f3024 to 0x1005f30b8 (148 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008621e8
//
// 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_1005F3024(_BYTE **a1, unsigned __int8 *a2, int a3, __int64 a4, __int64 a5, __int64 a6)
{
_BYTE *v10; // x2
_BYTE *v12; // x0
v10 = *a1;
if ( !*a1 )
{
v10 = sub_1005AAD34();
*a1 = v10;
if ( !v10 )
return 0;
}
if ( sub_1005AB1B0(a2, a3, (__int64)v10) )
return 1;
v12 = *a1;
if ( !*a1 )
return 0;
if ( (*(_BYTE *)(a6 + 40) & 1) != 0 )
sub_1005AAC5C((__int64)v12);
else
sub_1005AACD0(v12);
*a1 = nullptr;
return 0;
}