//
// sub_100588800 from 0x100588800 to 0x10058890c (268 bytes)
//
// 1 xrefs:
// > sub_100605D14 @ 0x100605d20
//
// 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
//
char *__fastcall sub_100588800(const char *a1, __int64 a2, __int64 a3)
{
size_t v6; // x0
size_t v7; // x22
char *v8; // x0
char *v9; // x23
v6 = strlen(a1);
v7 = v6 + 1;
if ( (int)v6 + 1 < 1 )
return nullptr;
if ( (byte_100882C20 & 1) == 0 )
byte_100882C20 = 1;
if ( off_100882C28 )
{
if ( (byte_100882C21 & 1) == 0 )
byte_100882C21 = 1;
((void (__fastcall *)(_QWORD, size_t, __int64, __int64, _QWORD))off_100882C28)(0, v7, a2, a3, 0);
}
v8 = (char *)off_10085DEE8((int)v7);
v9 = v8;
if ( off_100882C28 )
((void (__fastcall *)(char *, size_t, __int64, __int64, __int64))off_100882C28)(v8, v7, a2, a3, 1);
if ( (int)v7 < 2049 || !v9 )
{
if ( v9 )
goto LABEL_14;
return nullptr;
}
*v9 = byte_1008B1730;
LABEL_14:
strcpy(v9, a1);
return v9;
}