//
// sub_A2DCE from 0xa2dce to 0xa2e06 (56 bytes)
//
// 1 xrefs:
// > sub_A2DBC @ 0xa2dc6
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall sub_A2DCE(_DWORD *a1, _DWORD *a2, int a3, int a4)
{
int v5; // r1
int v6; // r4
int v7; // r1
int v9; // [sp+0h] [bp-10h] BYREF
int v10; // [sp+4h] [bp-Ch] BYREF
v9 = a3;
v10 = a4;
if ( !a1[7] )
return 0;
v5 = a1[1];
v6 = 0;
if ( v5 )
{
v7 = *a1 + 4 * ((v5 - 1) & *a2);
v9 = 0;
v10 = v7;
if ( !((int (__fastcall *)(_DWORD *, int *, _DWORD *, int *))sub_A322E)(a1, &v10, a2, &v9) )
return *(_DWORD *)(v9 + 8);
}
return v6;
}