//
// sub_10061A940 from 0x10061a940 to 0x10061aa1c (220 bytes)
//
// 1 xrefs:
// > sub_10061A4D8 @ 0x10061a580
//
// 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
//
bool __fastcall sub_10061A940(int a1, int a2, int a3, char *__s)
{
int v5; // w0
__int16 v6; // w2
int v7; // w4
if ( a2 != 200 )
{
v5 = dword_1008851A4;
if ( !dword_1008851A4 )
{
v5 = sub_1005E197C();
dword_1008851A4 = v5;
}
v6 = 102;
v7 = 388;
goto LABEL_13;
}
if ( !__s )
{
v5 = dword_1008851A4;
if ( !dword_1008851A4 )
{
v5 = sub_1005E197C();
dword_1008851A4 = v5;
}
v6 = 67;
v7 = 376;
goto LABEL_13;
}
if ( qword_1008851D8 )
{
v5 = dword_1008851A4;
if ( !dword_1008851A4 )
{
v5 = sub_1005E197C();
dword_1008851A4 = v5;
}
v6 = 100;
v7 = 380;
LABEL_13:
sub_1005E0E48(v5, 100, v6, (__int64)"e_4758cca.c", v7);
return 0;
}
if ( qword_1008851D0 )
sub_100588C44((void *)qword_1008851D0);
qword_1008851D0 = 0;
qword_1008851D0 = (__int64)sub_1005DA128(__s);
return qword_1008851D0 != 0;
}