//
// sub_469A4 from 0x469a4 to 0x469f0 (76 bytes)
//
// 0 xrefs:
//
// 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_469A4(_DWORD *a1, _DWORD *a2, int a3, int a4)
{
int result; // r0
int v6; // r0
int v7; // r2
_DWORD v8[2]; // [sp+0h] [bp-10h] BYREF
v8[0] = a3;
v8[1] = a4;
if ( !a2 || !a1[5] )
return 31;
if ( (a3 & 2) != 0 )
{
v6 = a1[11];
LABEL_8:
*a2 = v6;
return 0;
}
if ( (a3 & 0x10) == 0 )
return sub_54934(a1[5], a2);
v7 = a1[32];
if ( !v7 )
{
v6 = a1[10];
goto LABEL_8;
}
result = (*(int (__fastcall **)(_DWORD, _DWORD *))(*(_DWORD *)v7 + 68))(a1[32], v8);
if ( !result )
{
v6 = v8[0];
goto LABEL_8;
}
return result;
}