//
// sub_1007CC420 from 0x1007cc420 to 0x1007cc461 (65 bytes)
//
// 1 xrefs:
// > sub_1004E2350 @ 0x1004e2807
//
// 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
//
__int16 __fastcall sub_1007CC420(int a1, int a2, double a3)
{
int v3; // edi
int v4; // eax
v3 = a1 - 1;
v4 = 0;
while ( v4 >= (int)fmin(a3, (double)(v3 + v4)) )
{
if ( a2 == ++v4 )
return 2;
}
return v4 >= (unsigned int)a2 || v4 >= a2;
}