//
// sub_80FF2C from 0x80ff2c to 0x80ffb0 (132 bytes)
//
// 1 xrefs:
// > sub_81406C @ 0x81480a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:01:36 +0000
//
char *__fastcall sub_80FF2C(_BYTE *a1, char *a2)
{
_BYTE *v3; // r1
char *result; // r0
_BYTE *v5; // [sp+4h] [bp-14h] BYREF
_DWORD v6[2]; // [sp+Ch] [bp-Ch] BYREF
v5 = a1;
v6[0] = 0;
v6[1] = 0;
while ( 1 )
{
v3 = v5;
result = (char *)(unsigned __int8)*v5;
if ( (a7[(_DWORD)result] & 4) == 0 )
goto LABEL_3;
if ( result == a2 )
break;
if ( (a7[(_DWORD)result] & 8) != 0 )
{
++v5;
*v3 = 32;
if ( result == &byte_9[4] && *v5 == 10 )
sub_80FE34(v6, &v5, 1);
}
else
{
if ( !*v5 )
return result;
LABEL_3:
++v5;
}
}
*(_BYTE *)sub_80FCC2((int)v6, (int)v5) = 0;
return v5 + 1;
}