//
// sub_810F9A from 0x810f9a to 0x810fda (64 bytes)
//
// 4 xrefs:
// > sub_811294 @ 0x811304
// > sub_811294 @ 0x811378
// > sub_811390 @ 0x8113aa
// > sub_812514 @ 0x812858
//
// 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
//
int __fastcall sub_810F9A(int a1, char a2, char a3, char a4, char a5, char a6)
{
int v10; // r0
_BYTE *v11; // r1
int result; // r0
if ( (unsigned int)(*(_DWORD *)(a1 + 10244) + 5) > 0x800 )
sub_810F28(a1);
v10 = *(_DWORD *)(a1 + 10244);
v11 = (_BYTE *)(a1 + v10);
*(_BYTE *)(a1 + v10) = a2;
result = v10 + 5;
v11[3] = a5;
v11[1] = a3;
v11[2] = a4;
v11[4] = a6;
*(_DWORD *)(a1 + 10244) = result;
return result;
}