//
// sub_80F7B4 from 0x80f7b4 to 0x80f80a (86 bytes)
//
// 2 xrefs:
// > sub_8183A0 @ 0x81882c
// > sub_8183A0 @ 0x81884e
//
// 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
//
_BYTE *__fastcall sub_80F7B4(_BYTE *result)
{
_BYTE *v1; // r2
_BYTE *v2; // r3
int v3; // r1
_BYTE *v4; // r1
v1 = result;
v2 = result;
while ( 1 )
{
v3 = (unsigned __int8)*v1;
if ( !*v1 )
break;
++v1;
if ( (a7[v3] & 8) != 0 )
{
v4 = v1;
do
v1 = v4++;
while ( (a7[(unsigned __int8)*v1] & 8) != 0 );
if ( v2 != result )
{
*v2 = 32;
goto LABEL_9;
}
}
else
{
*v2 = v3;
LABEL_9:
++v2;
}
}
if ( v2 != result )
{
if ( (a7[(unsigned __int8)*(v2 - 1)] & 8) != 0 )
result = v2 - 1;
else
result = v2;
}
*result = 0;
return result;
}