//
// sub_100640640 from 0x100640640 to 0x1006406ba (122 bytes)
//
// 0 xrefs:
//
// 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:34:42 +0000
//
char __fastcall sub_100640640(__int64 *a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
unsigned __int64 v5; // r12
a1[3] = 0;
v3 = *a1;
if ( a1[1] == *a1 )
return 0;
v5 = 0;
while ( !(*(unsigned __int8 (__fastcall **)(_QWORD, __int64, __int64))(**(_QWORD **)(v3 + 8 * v5) + 896LL))(
*(_QWORD *)(v3 + 8 * v5),
a2,
a3) )
{
++v5;
v3 = *a1;
if ( v5 >= (a1[1] - *a1) >> 3 )
return 0;
}
a1[3] = *(_QWORD *)(*a1 + 8 * v5);
return 1;
}