//
// sub_729DA from 0x729da to 0x72a2e (84 bytes)
//
// 4 xrefs:
// > sub_729A0 @ 0x729b0
// > sub_753C4 @ 0x774e2
// > sub_7782E @ 0x7784c
// > sub_7782E @ 0x77894
//
// 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:03 +0000
//
int __fastcall sub_729DA(int a1, int a2)
{
int v3; // r0
int v4; // r1
int v5; // r2
bool v6; // cc
sub_4F22C(a1, a2);
v3 = *(_DWORD *)(a1 + 1672);
v4 = *(_DWORD *)(a1 + 2440);
while ( 1 )
{
v5 = *(unsigned __int8 *)(a1 + v4 + 492);
if ( v3 > v5 )
break;
*(_DWORD *)(a1 + 2440) = ++v4;
v6 = v4 < 254;
if ( v4 <= 254 )
v6 = v4 < *(_DWORD *)(a1 + 1664);
if ( !v6 )
{
*(_WORD *)(a1 + 2420) = 256;
return 19;
}
}
*(_DWORD *)(a1 + 15788) = *(_DWORD *)(*(_DWORD *)(a1 + 480) + 8 * v5 + 4);
sub_7399E(a1);
return 0;
}