//
// sub_80FCE0 from 0x80fce0 to 0x80fd2e (78 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
//
int __fastcall sub_80FCE0(unsigned __int8 *a1, int a2, int a3, int a4)
{
int v4; // r5
int v5; // r3
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] & 2) == 0 );
if ( v5 == a2 )
{
*(_BYTE *)sub_80FCC2((int)v8, v4) = 0;
return v4 + 1;
}
}
while ( v5 );
return 0;
}