//
// sub_47CF2 from 0x47cf2 to 0x47d18 (38 bytes)
//
// 2 xrefs:
// > sub_49C60 @ 0x49c76
// > sub_4C372 @ 0x4c390
//
// 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_47CF2(int a1, unsigned int a2, int a3)
{
if ( (a3 & 0x7F800000) == 0x7F800000 )
return 29;
if ( a2 > 3 )
return 59;
*(_DWORD *)(a1 + 4 * a2 + 244) = a3;
return 0;
}