//
// sub_1005D60FC from 0x1005d60fc to 0x1005d61e0 (228 bytes)
//
// 1 xrefs:
// > sub_1005D5FB0 @ 0x1005d6020
//
// 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_1005D60FC(__int64 a1, char *__s)
{
__int64 v4; // x2
__int64 v5; // x4
int v7; // w0
_BYTE *v8; // x21
void *v9; // x0
if ( !a1 || !__s )
{
v4 = 67;
v5 = 349;
goto LABEL_6;
}
if ( *(_QWORD *)(a1 + 64) )
{
v4 = 110;
v5 = 353;
LABEL_6:
sub_1005E0E48(37, 129, v4, "dso_lib.c", v5);
return 0;
}
v7 = strlen(__s);
v8 = sub_100588710((unsigned int)(v7 + 1), (__int64)"dso_lib.c", 357);
if ( !v8 )
{
v4 = 65;
v5 = 359;
goto LABEL_6;
}
strlen(__s);
sub_1005DA340((int)v8, __s);
v9 = *(void **)(a1 + 56);
if ( v9 )
sub_100588C44(v9);
*(_QWORD *)(a1 + 56) = v8;
return 1;
}