//
// sub_A322E from 0xa322e to 0xa3266 (56 bytes)
//
// 3 xrefs:
// > sub_A2D14 @ 0xa2d48
// > sub_A2D7A @ 0xa2da2
// > sub_A2DCE @ 0xa2df2
//
// 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:34 +0000
//
int __fastcall sub_A322E(int a1, _DWORD **a2, int *a3, _DWORD *a4)
{
_DWORD *v4; // r4
int v5; // r2
int v6; // r4
int v7; // r6
int v8; // r5
int v9; // r4
v4 = *a2;
v5 = *a3;
while ( 1 )
{
v6 = *v4;
if ( v6 == -1 )
return 74;
v7 = *(_DWORD *)(a1 + 12);
v8 = 3 * v6;
v9 = v7 + 12 * v6;
if ( *(_DWORD *)(v7 + 4 * v8) == v5 )
break;
v4 = (_DWORD *)(v9 + 4);
*a2 = v4;
}
*a4 = v9;
return 0;
}