//
// sub_10060649C from 0x10060649c to 0x100606530 (148 bytes)
//
// 7 xrefs:
// > ??> @ 0x10083ff00
// > ??> @ 0x10083ff68
// > ??> @ 0x10083ffd0
// > ??> @ 0x100840038
// > ??> @ 0x1008400a0
// > ??> @ 0x100840108
// > ??> @ 0x100840170
//
// 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
//
_BYTE *__fastcall sub_10060649C(__int64 a1, __int64 a2, char *a3)
{
_BYTE *v4; // x19
int v5; // w0
__int16 v6; // w2
int v7; // w4
if ( !a3 )
{
v6 = 107;
v7 = 102;
goto LABEL_7;
}
v4 = sub_1005FBAFC(22);
if ( !v4 )
{
LABEL_5:
v6 = 65;
v7 = 117;
LABEL_7:
sub_1005E0E48(34, 100, v6, (__int64)"v3_ia5.c", v7);
return nullptr;
}
v5 = strlen(a3);
if ( !(unsigned int)sub_1005FB850((__int64)v4, a3, v5) )
{
sub_1005FBA78(v4);
goto LABEL_5;
}
return v4;
}