//
// sub_1004427BC from 0x1004427bc to 0x10044281c (96 bytes)
//
// 1 xrefs:
// > sub_1004CFA1C @ 0x1004cfedc
//
// 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
//
__int64 __fastcall sub_1004427BC(__int64 a1, int a2, __int64 a3, float a4, float a5)
{
__int64 v5; // x8
if ( !a3 )
return 31;
v5 = *(_QWORD *)(*(_QWORD *)a1 + 168LL);
if ( a2 )
{
if ( *(_BYTE *)(v5 + 8) )
goto LABEL_4;
}
else
{
a2 = *(_DWORD *)(v5 + 70460);
if ( *(_BYTE *)(v5 + 8) )
{
LABEL_4:
if ( (unsigned int)(a2 - 1) <= 7 )
return sub_10043AB40(v5 + 192LL * (unsigned int)(a2 - 1) + 71136, a3, a4, a5);
return 31;
}
}
return 67;
}