//
// sub_1005F08D4 from 0x1005f08d4 to 0x1005f09b0 (220 bytes)
//
// 1 xrefs:
// > sub_1006161BC @ 0x1006161d4
//
// 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_1005F08D4(__int64 a1, __int64 a2, __int64 a3)
{
void *v6; // x0
_QWORD *v7; // x0
_DWORD *v8; // x19
int v9; // w0
unsigned __int64 *v10; // x22
__int64 v11; // x21
__int64 v12; // x20
unsigned __int64 v14; // [xsp+0h] [xbp-30h] BYREF
unsigned __int64 *v15; // [xsp+8h] [xbp-28h] BYREF
v6 = sub_1005DB7B0();
v7 = sub_1005DA484((__int64)v6);
v8 = v7;
if ( v7 )
{
sub_1005DAB78(v7, 106, 0, a2);
v15 = nullptr;
v9 = sub_1005F0540((__int64)v8, &v15);
v10 = v15;
if ( v9 < 0 )
{
v11 = 0;
v12 = 0;
if ( !v15 )
{
LABEL_7:
sub_1005DA554(v8);
return v12;
}
}
else
{
v14 = v15[1];
v11 = sub_1005F6E34(a3, &v14, v9, a1);
}
sub_1005D9DF8(v10);
v12 = v11;
goto LABEL_7;
}
sub_1005E0E48(13, 206, 7, (__int64)"a_d2i_fp.c", 133);
return 0;
}