//
// sub_1005F2EFC from 0x1005f2efc to 0x1005f2fbc (192 bytes)
//
// 2 xrefs:
// > sub_100614A04 @ 0x100614a90
// > sub_100614A04 @ 0x100614ac8
//
// 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_1005F2EFC(unsigned int a1, int a2, __int64 a3)
{
__int64 v6; // x19
_BYTE *v7; // x0
__int64 v8; // x22
v6 = sub_1005F55E0(&unk_10083E450);
if ( !v6 )
return 0;
*(_QWORD *)v6 = sub_10058AB9C(a1);
*(_DWORD *)(v6 + 8) = 0;
v7 = sub_1005DE4A4();
*(_QWORD *)(v6 + 16) = v7;
if ( !v7 || (v8 = sub_1005F8F80()) == 0 )
{
sub_1005F5B94(v6, &unk_10083E450);
return 0;
}
if ( !(unsigned int)sub_1005DE80C(*(void ***)(v6 + 16), v8) )
{
sub_1005F5B94(v6, &unk_10083E450);
sub_1005F8F8C(v8);
return 0;
}
sub_1005F0350(v8, a2, a3);
return v6;
}