//
// sub_4A1CE from 0x4a1ce to 0x4a238 (106 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:40:40 +0000
//
int __fastcall sub_4A1CE(_DWORD *a1, _QWORD *a2, _QWORD *a3)
{
int result; // r0
int v7; // r1
int v8; // [sp+0h] [bp-18h] BYREF
int v9; // [sp+4h] [bp-14h] BYREF
if ( a2 )
{
result = (*(int (__fastcall **)(_DWORD *, int, int *))(*a1 + 144))(a1, -3, &v9);
if ( result )
return result;
*a2 = *(_QWORD *)(v9 + 16);
}
result = 0;
if ( a3 )
{
v7 = a1[4];
v8 = 0;
if ( v7 )
result = (*(int (__fastcall **)(int, int, int *))(*(_DWORD *)v7 + 144))(v7, -3, &v8);
else
result = (*(int (__fastcall **)(_DWORD *, int, int *))(*a1 + 144))(a1, -3, &v8);
if ( !result )
{
*a3 = *(_QWORD *)(v8 + 16);
return 0;
}
}
return result;
}