//
// sub_1005A0E94 from 0x1005a0e94 to 0x1005a0f10 (124 bytes)
//
// 0 xrefs:
//
// 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 11:09:01 +0000
//
__int64 __fastcall sub_1005A0E94(__int64 a1, __int64 a2, __int64 a3, _DWORD *a4)
{
int v4; // w9
int v5; // w8
__int64 v6; // x9
int v7; // w10
__int64 v8; // x10
__int64 v9; // x8
int v10; // w12
__int64 v11; // x11
v4 = 0;
v5 = 0;
do
{
if ( v5 <= 511 )
v4 = *(unsigned __int8 *)(a2 + v5++);
}
while ( v4 != 34 );
v6 = 0;
if ( v5 <= 510 )
v7 = 510;
else
v7 = v5;
v8 = (unsigned int)(v7 - v5 + 1);
v9 = a2 + v5;
while ( 1 )
{
v10 = *(unsigned __int8 *)(v9 + v6);
if ( v10 == 34 )
break;
v11 = v6 + 1;
*(_BYTE *)(a3 + v6) = v10;
v6 = v11;
if ( v8 == v11 )
goto LABEL_13;
}
LODWORD(v11) = v6;
LABEL_13:
*(_BYTE *)(a3 + (int)v11) = 0;
*a4 = v11;
return 0;
}