//
// sub_A3266 from 0xa3266 to 0xa32ca (100 bytes)
//
// 1 xrefs:
// > sub_A2D14 @ 0xa2d58
//
// 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_A3266(_DWORD *a1, _DWORD *a2, _DWORD *a3, _DWORD *a4)
{
int v4; // r6
_DWORD *v7; // r5
int result; // r0
_DWORD v9[3]; // [sp+4h] [bp-1Ch] BYREF
v4 = a1[6];
if ( v4 == -1 )
{
v4 = a1[4];
v9[0] = *a2;
v9[1] = -1;
v9[2] = *a3;
result = sub_A32CA(a1 + 3, v9);
if ( result )
return result;
}
else
{
v7 = (_DWORD *)(a1[3] + 12 * v4);
a1[6] = v7[1];
v7[1] = -1;
*v7 = *a2;
v7[2] = *a3;
}
*a4 = v4;
++a1[7];
return 0;
}