//
// sub_1005F3E9C from 0x1005f3e9c to 0x1005f3f48 (172 bytes)
//
// 1 xrefs:
// > sub_100615C18 @ 0x100615d8c
//
// 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_1005F3E9C(__int64 a1, char *__s)
{
__int64 v4; // x22
__int64 v5; // x0
__int64 v7; // x8
if ( __s )
{
if ( a1
&& ((v4 = *(_QWORD *)(a1 + 176)) != 0 || (v4 = sub_1005F55E0(&unk_10083EA88), (*(_QWORD *)(a1 + 176) = v4) != 0))
&& ((v5 = *(_QWORD *)(v4 + 16)) != 0 || (v5 = sub_1005F8F38(), (*(_QWORD *)(v4 + 16) = v5) != 0)) )
{
return sub_1005FB850(v5, __s);
}
else
{
return 0;
}
}
else
{
if ( a1 )
{
v7 = *(_QWORD *)(a1 + 176);
if ( v7 )
{
if ( *(_QWORD *)(v7 + 16) )
{
sub_1005F8F44();
*(_QWORD *)(*(_QWORD *)(a1 + 176) + 16LL) = 0;
}
}
}
return 1;
}
}