//
// sub_5C214 from 0x5c214 to 0x5c280 (108 bytes)
//
// 18 xrefs:
// > sub_5A76C @ 0x5a864
// > sub_5A76C @ 0x5a8b8
// > sub_5A918 @ 0x5aa44
// > sub_694B8 @ 0x6965c
// > sub_6995C @ 0x69a0c
// > sub_6995C @ 0x69a58
// > sub_78154 @ 0x783c4
// > sub_7A720 @ 0x7a734
// > sub_888C0 @ 0x88c74
// > sub_88CB8 @ 0x88d44
// > sub_8902C @ 0x89888
// > sub_89C34 @ 0x89ce8
// > sub_9D6E4 @ 0x9d6e8
// > sub_9EA78 @ 0x9eb2c
// > sub_9EB44 @ 0x9ec5c
// > sub_A1D60 @ 0xa1dfc
// > sub_D2E38 @ 0xd2e48
// > sub_D55A8 @ 0xd568c
//
// 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_5C214(unsigned int a1, unsigned int *a2, unsigned int a3, unsigned int a4)
{
unsigned __int64 v7; // x8
int v9; // [xsp+Ch] [xbp-14h] BYREF
v9 = 0;
if ( !a3 )
return 31;
sub_5C4BC(a4, &v9);
if ( v9 )
{
v7 = 8 * (unsigned __int64)a1 / v9;
a1 = (unsigned int)v7 / a3;
*a2 = v7;
}
*a2 = a1;
return 0;
}