//
// sub_4C08E from 0x4c08e to 0x4c124 (150 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_4C08E(_DWORD *a1, int a2, int a3, int a4, int a5, int a6)
{
int result; // r0
int v11; // r0
int v12; // r0
int v13; // r9
int v14; // [sp+10h] [bp-20h] BYREF
result = sub_47DCC((int)a1, a2, a3, a4, a5, a6);
if ( !result )
{
v11 = a1[83];
if ( v11 && a1[4] )
{
if ( a6 && (*(_BYTE *)(v11 + 28) & 0x10) != 0 )
{
return 0;
}
else
{
result = (*(int (__fastcall **)(_DWORD *, int, int *))(*a1 + 144))(a1, -2, &v14);
if ( !result )
{
v12 = a1[10];
v13 = v14;
if ( (v12 & 0x10000) != 0 )
{
sub_921B4(v14, v12 << 15);
v12 = a1[10];
}
return sub_92198(
v13,
a2,
a3,
a4,
a5,
((v12 & 0xC0000) == 0) << 6,
((*(_DWORD *)(a1[83] + 32) & 0x10000u) >> 16) ^ 1);
}
}
}
else
{
return 30;
}
}
return result;
}