//
// sub_80FDD4 from 0x80fdd4 to 0x80fe2c (88 bytes)
//
// 1 xrefs:
// > sub_81406C @ 0x814b1a
//
// 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
//
int __fastcall sub_80FDD4(unsigned __int8 *a1, int a2, int a3, int a4)
{
int v4; // r4
int v5; // r5
int v6; // t1
_DWORD v8[3]; // [sp+4h] [bp-Ch] BYREF
v8[2] = a4;
v8[0] = 0;
v8[1] = 0;
do
{
do
{
v4 = (int)a1;
v6 = *a1++;
v5 = v6;
}
while ( (a7[v6] & 1) == 0 );
if ( v5 == 60 )
{
*(_BYTE *)sub_80FCC2((int)v8, v4) = 0;
return v4 + 1;
}
}
while ( v5 );
*(_BYTE *)sub_80FCC2((int)v8, v4) = 0;
return v4;
}