//
// sub_10096AD80 from 0x10096ad80 to 0x10096ade9 (105 bytes)
//
// 1 xrefs:
// > sub_100969480 @ 0x10096995f
//
// 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:50 +0000
//
char __fastcall sub_10096AD80(__int64 a1, __int64 a2)
{
signed int v3; // r14d
__int64 v4; // rdi
signed int v5; // eax
__int64 v6; // rax
__int64 v7; // rax
v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *(_QWORD *)(a1 + 800);
LOBYTE(v5) = v4 == 0;
if ( v4 != 0 && v3 >= 0 )
{
v5 = sub_1007FEF90(v4);
if ( v3 < v5 )
{
v6 = sub_1007FEFE0(*(_QWORD *)(a1 + 800), v3);
v7 = sub_1009945B0(*(unsigned int *)(v6 + 56), v6 + 64, 0);
LOBYTE(v5) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
}
}
return v5;
}