//
// sub_811390 from 0x811390 to 0x8113fe (110 bytes)
//
// 2 xrefs:
// > sub_812514 @ 0x812708
// > sub_812514 @ 0x8127ac
//
// 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_811390(int a1, unsigned __int8 *a2)
{
unsigned __int8 *v4; // r3
int v5; // r2
unsigned __int8 *v6; // r4
int result; // r0
while ( 1 )
{
sub_810F9A(a1, 60, 33, 91, 67, 68);
sub_810FDA(a1, 65, 84, 65, 91);
v4 = a2;
while ( 1 )
{
v5 = *v4;
v6 = v4++;
if ( !v5 )
break;
if ( v5 == 93 && *v4 == 93 && v4[1] == 62 )
{
v6 += 2;
break;
}
}
sub_811200(a1, a2, v6 - a2);
result = sub_810F3E(a1, 93, 93, 62);
if ( !*v6 )
return result;
a2 = v6;
}
}