//
// sub_10061D858 from 0x10061d858 to 0x10061d918 (192 bytes)
//
// 1 xrefs:
// > sub_10061D450 @ 0x10061d504
//
// 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 sub_10061D858()
{
int v1; // w0
__int16 v2; // w2
int v3; // w4
if ( qword_100885A88 )
sub_100588C44((void *)qword_100885A88);
qword_100885A88 = 0;
if ( qword_100885A90 )
{
if ( (unsigned int)sub_1005D5EB4((__int64 *)qword_100885A90) )
{
qword_100885A90 = 0;
off_1008B1748 = nullptr;
off_1008B1750 = nullptr;
off_1008B1758 = nullptr;
off_1008B1760 = nullptr;
return 1;
}
v1 = dword_100885A84;
if ( !dword_100885A84 )
{
v1 = sub_1005E197C();
dword_100885A84 = v1;
}
v2 = 108;
v3 = 454;
}
else
{
v1 = dword_100885A84;
if ( !dword_100885A84 )
{
v1 = sub_1005E197C();
dword_100885A84 = v1;
}
v2 = 106;
v3 = 450;
}
sub_1005E0E48(v1, 103, v2, (__int64)"e_cswift.c", v3);
return 0;
}