//
// sub_642254 from 0x642254 to 0x642284 (48 bytes)
//
// 0 xrefs:
//
// 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_642254(void *a1, int a2, int a3, char *a4)
{
size_t v8; // r0
int v9; // r4
if ( a3 )
return 0;
v8 = strlen(a4);
v9 = sub_63B7E0(v8);
if ( a2 <= v9 )
return 0;
memcpy(a1, a4, v9 + 1);
return v9;
}