//
// sub_1005F3F48 from 0x1005f3f48 to 0x1005f3ff4 (172 bytes)
//
// 1 xrefs:
// > sub_100615C18 @ 0x100615d60
//
// 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_1005F3F48(__int64 a1, char *__s)
{
__int64 v4; // x22
__int64 v5; // x0
__int64 v7; // x8
__int64 v8; // x0
if ( __s )
{
if ( a1
&& ((v4 = *(_QWORD *)(a1 + 176)) != 0 || (v4 = sub_1005F55E0(&unk_10083EA88), (*(_QWORD *)(a1 + 176) = v4) != 0))
&& ((v5 = *(_QWORD *)(v4 + 24)) != 0 || (v5 = sub_1005F8F14(), (*(_QWORD *)(v4 + 24) = v5) != 0)) )
{
return sub_1005FB850(v5, __s);
}
else
{
return 0;
}
}
else
{
if ( a1 )
{
v7 = *(_QWORD *)(a1 + 176);
if ( v7 )
{
v8 = *(_QWORD *)(v7 + 24);
if ( v8 )
{
sub_1005F8F20(v8);
*(_QWORD *)(*(_QWORD *)(a1 + 176) + 24LL) = 0;
}
}
}
return 1;
}
}