//
// sub_A6F24 from 0xa6f24 to 0xa6fb8 (148 bytes)
//
// 0 xrefs:
//
// 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:35 +0000
//
int __fastcall sub_A6F24(int *a1, int a2, int a3, int a4, int a5, int a6)
{
int v7; // r5
int v8; // r9
int v9; // r6
int v10; // r4
int (__fastcall *v11)(int *, int); // r4
int result; // r0
int (__fastcall *v13)(int *, _DWORD); // r4
_DWORD *v14; // r1
v7 = *a1;
if ( a3 )
{
v8 = *(_DWORD *)(a3 + 16);
v9 = **(_DWORD **)(a3 + 4);
}
else
{
v8 = 0;
v9 = 0;
}
v10 = *(_DWORD *)(v7 + 164);
if ( a6 == 1 )
{
v11 = *(int (__fastcall **)(int *, int))(v10 + 112);
if ( v11 )
result = v11(a1, a5);
else
result = 0;
if ( a4 )
{
v14 = *(_DWORD **)(a4 + 4);
if ( v14 )
{
if ( *(_WORD *)(v7 + 192) )
v9 = *(unsigned __int16 *)(v7 + 192);
*v14 = v9;
}
if ( *(_DWORD *)(v7 + 144) )
v8 = *(_DWORD *)(v7 + 144);
*(_DWORD *)(a4 + 16) = v8;
}
}
else
{
v13 = *(int (__fastcall **)(int *, _DWORD))(v10 + 60);
if ( v13 )
{
result = v13(a1, **(_DWORD **)(a3 + 12));
**(_DWORD **)(a4 + 4) = v9;
}
else
{
return 0;
}
}
return result;
}