//
// sub_1009A6F00 from 0x1009a6f00 to 0x1009a6f41 (65 bytes)
//
// 1 xrefs:
// > sub_1004DD340 @ 0x1004dd7f7
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 12:39:19 +0000
//
__int16 __fastcall sub_1009A6F00(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;
}