//
// sub_C1798 from 0xc1798 to 0xc17fa (98 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_C1798(_DWORD *a1, int a2, _BYTE *a3, int a4, int a5, _DWORD *a6, int a7, _DWORD *a8)
{
int v8; // r4
int v9; // r1
int v10; // r2
v8 = *a1 + 276 * a2;
sub_BE220(a3, (char *)(v8 + 8888), a4);
v9 = *(_DWORD *)(v8 + 8884);
*(_DWORD *)a5 = v9;
*(_WORD *)(a5 + 4) = *(_DWORD *)(v8 + 9152) == 7;
v10 = *(_DWORD *)(v8 + 9156);
*(_WORD *)(a5 + 6) = v10;
if ( !(v9 | (unsigned __int16)v10) )
*(_BYTE *)(a5 + 8) = 1;
*a6 = *(_DWORD *)(v8 + 9144);
*a8 = *(_DWORD *)(v8 + 9148);
return 0;
}