//
// sub_81A290 from 0x81a290 to 0x81a2f2 (98 bytes)
//
// 2 xrefs:
// > sub_819400 @ 0x819850
// > sub_81A2F2 @ 0x81a38a
//
// 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:44 +0000
//
int *__fastcall sub_81A290(int a1, int a2)
{
int *i; // r4
int v4; // r6
int *v5; // r0
int v6; // r1
for ( i = sub_819E88(a1, a2); ; i = sub_819E88(a1, v6) )
{
v4 = *(_DWORD *)(a1 + 20);
if ( (unsigned int)(v4 - 16) > 1 )
break;
sub_80F84C((unsigned __int8 **)(a1 + 4));
if ( v4 == 17 )
{
v5 = sub_8101B8((int **)a1);
v6 = (int)v5;
if ( v5 )
{
*(_BYTE *)v5 = 57;
*((_BYTE *)v5 + 2) = 5;
*((_BYTE *)v5 + 1) = 1;
*((_BYTE *)v5 + 3) = 2;
v5[1] = (int)i;
v5[2] = 0;
v5[3] = 0;
v5[4] = 0;
}
}
else
{
v6 = (int)i;
}
}
return i;
}