//
// sub_4C72A from 0x4c72a to 0x4c7a8 (126 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:41 +0000
//
int __fastcall sub_4C72A(_DWORD *a1, _QWORD *a2, _QWORD *a3)
{
int result; // r0
int v7; // r0
int v8; // r1
int v9; // [sp+4h] [bp-1Ch] BYREF
int v10; // [sp+8h] [bp-18h] BYREF
int v11; // [sp+Ch] [bp-14h] BYREF
if ( !a2 )
goto LABEL_5;
result = (*(int (__fastcall **)(_DWORD *, int, int *))(*a1 + 144))(a1, -3, &v11);
if ( result )
return result;
v7 = v11;
if ( v11 )
goto LABEL_4;
result = (*(int (__fastcall **)(_DWORD *, int, int *))(*a1 + 144))(a1, -1, &v10);
if ( result )
return result;
v7 = v10;
if ( v10 )
{
LABEL_4:
*a2 = *(_QWORD *)(v7 + 16);
LABEL_5:
result = 0;
if ( !a3 )
return result;
v8 = a1[4];
v9 = 0;
if ( v8 )
{
result = (*(int (__fastcall **)(int, int, int *))(*(_DWORD *)v8 + 144))(v8, -3, &v9);
if ( result )
return result;
if ( v9 )
{
*a3 = *(_QWORD *)(v9 + 16);
return 0;
}
}
}
return 9;
}