//
// sub_E00B60 from 0xe00b60 to 0xe00c74 (276 bytes)
//
// 3 xrefs:
// > sub_E00C74 @ 0xe00d60
// > sub_E00C74 @ 0xe00dfc
// > sub_E00C74 @ 0xe00f3c
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 13:09:31 +0000
//
_BYTE *__fastcall sub_E00B60(int a1, char *a2)
{
_BYTE *v2; // x20
_BYTE *v3; // x0
unsigned int v4; // w1
int v5; // w2
unsigned int v6; // t1
int v7; // w3
unsigned int v8; // t1
_BYTE *v10; // [xsp+20h] [xbp+20h]
__int64 v11; // [xsp+28h] [xbp+28h]
if ( (unsigned int)sub_E01818(a1, a2) || !v10 )
return nullptr;
v2 = off_154A3C0(2 * v11 + 1);
if ( v2 )
{
v3 = v10;
v4 = (unsigned __int8)*v10;
if ( *v10 )
{
v5 = 0;
do
{
while ( v4 > 0x20 && v4 != 127 && v4 != 39 && v4 != 34 && v4 != 92 )
{
v2[v5++] = v4;
v6 = (unsigned __int8)*++v3;
v4 = v6;
if ( !v6 )
goto LABEL_12;
}
v7 = v5 + 1;
v2[v5] = 92;
v5 += 2;
v2[v7] = v4;
v8 = (unsigned __int8)*++v3;
v4 = v8;
}
while ( v8 );
LABEL_12:
v2[v5] = 0;
}
else
{
*v2 = 0;
}
}
((void (__fastcall *)())off_154A3C8)();
return v2;
}