//
// sub_601F88 from 0x601f88 to 0x601fcc (68 bytes)
//
// 1 xrefs:
// > sub_609260 @ 0x609622
//
// 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
//
int __fastcall sub_601F88(int a1, char *a2, int a3)
{
bool v6; // r4
size_t v7; // r6
int *v8; // r0
_BYTE *v9; // r3
v6 = *a2 == 0;
if ( *a2 )
{
v7 = strlen(a2);
v8 = sub_601B34(a3, v7 + 1);
v9 = memcpy(v8, a2, v7);
v9[v7] = 0;
}
else
{
v9 = &unk_939830;
}
*(_DWORD *)a1 = v9;
*(_BYTE *)(a1 + 4) = !v6;
return a1;
}