//
// sub_602140 from 0x602140 to 0x602184 (68 bytes)
//
// 2 xrefs:
// > pugi::as_utf8 @ 0x606566
// > pugi::as_utf8 @ 0x606578
//
// 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_602140(_BYTE **a1, unsigned int *a2, int a3)
{
int v6; // r0
int v7; // r5
int v8; // r6
v6 = sub_601D4C(a2, a3);
*a1 = &unk_ACDDA8;
v7 = v6;
sub_775608(a1, v6);
if ( v7 )
{
sub_775170(a1);
v8 = (int)*a1;
sub_601420(a2, a3, *a1);
*(_BYTE *)(v8 + v7) = 0;
}
return a1;
}