//
// sub_10096DA20 from 0x10096da20 to 0x10096da80 (96 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_10096DA20(__int64 a1, __int64 a2)
{
__int64 result; // rax
__int64 v3; // rcx
result = *(_QWORD *)(a1 + 648);
if ( result )
{
v3 = a1 + 648;
do
{
if ( *(_DWORD *)(result + 32) >= (int)a2 )
v3 = result;
result = *(_QWORD *)(result + 8LL * (*(_DWORD *)(result + 32) < (int)a2));
}
while ( result );
if ( v3 != a1 + 648 && *(_DWORD *)(v3 + 32) <= (int)a2 )
{
sub_10096DA80(a1, a2);
return sub_10096DB60(a1, (unsigned int)a2);
}
}
return result;
}