//
// sub_8106BC from 0x8106bc to 0x81072e (114 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:37 +0000
//
unsigned __int8 *__fastcall sub_8106BC(unsigned __int8 *a1, int a2, int a3, int a4)
{
int v5; // r5
_DWORD v7[3]; // [sp+4h] [bp-Ch] BYREF
v7[2] = a4;
v7[0] = 0;
v7[1] = 0;
while ( 1 )
{
while ( 1 )
{
v5 = *a1;
if ( (a7[v5] & 1) == 0 )
goto LABEL_3;
if ( v5 == 60 )
{
*(_BYTE *)sub_80FCC2((int)v7, (int)a1) = 0;
return a1 + 1;
}
if ( v5 != 38 )
break;
a1 = sub_810344(a1, v7);
}
if ( !*a1 )
break;
LABEL_3:
++a1;
}
*(_BYTE *)sub_80FCC2((int)v7, (int)a1) = 0;
return a1;
}