//
// sub_10096D9D0 from 0x10096d9d0 to 0x10096da1c (76 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:38:51 +0000
//
__int64 __fastcall sub_10096D9D0(__int64 a1, int a2)
{
__int64 v2; // rcx
__int64 v3; // rdi
__int64 v4; // rax
v2 = *(_QWORD *)(a1 + 648);
if ( !v2 )
return 0;
v3 = a1 + 648;
v4 = v3;
do
{
if ( *(_DWORD *)(v2 + 32) >= a2 )
v4 = v2;
v2 = *(_QWORD *)(v2 + 8LL * (*(_DWORD *)(v2 + 32) < a2));
}
while ( v2 );
if ( v4 == v3 || *(_DWORD *)(v4 + 32) > a2 )
return 0;
else
return *(_QWORD *)(v4 + 40);
}