//
// sub_9E588 from 0x9e588 to 0x9e5f0 (104 bytes)
//
// 3 xrefs:
// > sub_9DE50 @ 0x9df68
// > sub_9E038 @ 0x9e158
// > sub_9E1AC @ 0x9e300
//
// 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 12:14:28 +0000
//
__int64 __fastcall sub_9E588(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4)
{
char v4; // w8
int v5; // w9
__int64 v6; // x8
__int64 v7; // x10
__int64 v8; // x9
int v9; // w11
int v10; // w12
__int64 v11; // x13
v4 = 0;
v5 = 0;
do
{
if ( v5 <= 511 )
v4 = *(_BYTE *)(a2 + v5++);
}
while ( v4 != 34 );
v6 = 0;
v7 = v5;
v8 = a2 + v5;
while ( 1 )
{
v9 = *(unsigned __int8 *)(v8 + v6);
if ( v9 == 34 )
break;
v10 = v6 + 1;
v11 = v7 + v6 + 1;
*(_BYTE *)(a3 + v6++) = v9;
if ( v11 >= 511 )
{
LODWORD(v6) = v10;
break;
}
}
*(_BYTE *)(a3 + (int)v6) = 0;
*a4 = v6;
return 0;
}