//
// sub_C12E6 from 0xc12e6 to 0xc1358 (114 bytes)
//
// 0 xrefs:
//
// 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 11:41:49 +0000
//
int __fastcall sub_C12E6(int *a1, int a2, _BYTE *a3, int a4, int a5, _DWORD *a6, int a7, _DWORD *a8)
{
int v8; // r5
int v10; // r1
int v11; // r2
int v12; // r1
v8 = *a1;
if ( a3 && a4 >= 1 )
sub_BE220(a3, (char *)(v8 + 276 * a2 + 44), a4);
if ( a5 )
{
v10 = v8 + 276 * a2;
v11 = *(_DWORD *)(v10 + 40);
*(_DWORD *)a5 = v11;
v12 = *(_DWORD *)(v10 + 312);
*(_WORD *)(a5 + 6) = v12;
if ( !((unsigned __int16)v12 | v11) )
*(_BYTE *)(a5 + 8) = 1;
}
if ( a6 )
*a6 = *(_DWORD *)(v8 + 276 * a2 + 300);
if ( a8 )
*a8 = *(_DWORD *)(v8 + 276 * a2 + 304);
return 0;
}