//
// sub_8C234 from 0x8c234 to 0x8c2b0 (124 bytes)
//
// 3 xrefs:
// > sub_8C1D8 @ 0x8c1f4
// > sub_8F210 @ 0x91124
// > sub_91ADC @ 0x91ae4
//
// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!
//
// 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:14:12 +0000
//
__int64 __fastcall sub_8C234(__int64 a1, char a2)
{
__int64 v3; // x8
int v4; // w9
__int64 v5; // x10
int v6; // w10
sub_5FBCC(a1, a2 & 1);
v3 = *(int *)(a1 + 3068);
v4 = *(_DWORD *)(a1 + 2292);
while ( 1 )
{
v5 = *(unsigned __int8 *)(a1 + v3 + 656);
if ( v4 > (int)v5 )
break;
v6 = *(_DWORD *)(a1 + 2284);
*(_DWORD *)(a1 + 3068) = ++v3;
if ( (int)v3 > 254 || (int)v3 >= v6 )
{
*(_WORD *)(a1 + 3048) = 256;
return 19;
}
}
*(_QWORD *)(a1 + 17440) = *(_QWORD *)(*(_QWORD *)(a1 + 632) + 16 * v5 + 8);
sub_8D55C(a1);
return 0;
}