//
// sub_601FD0 from 0x601fd0 to 0x602004 (52 bytes)
//
// 3 xrefs:
// > sub_609260 @ 0x6096c6
// > sub_609260 @ 0x6096e8
// > sub_609260 @ 0x609740
//
// 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_601FD0(int a1, int a2)
{
const char *v4; // r7
size_t v5; // r5
int *v6; // r0
_BYTE *v7; // r0
if ( !*(_BYTE *)(a1 + 4) )
{
v4 = *(const char **)a1;
v5 = strlen(*(const char **)a1);
v6 = sub_601B34(a2, v5 + 1);
v7 = memcpy(v6, v4, v5);
v7[v5] = 0;
*(_DWORD *)a1 = v7;
*(_BYTE *)(a1 + 4) = 1;
}
return *(_DWORD *)a1;
}