//
// sub_10096AD10 from 0x10096ad10 to 0x10096ad75 (101 bytes)
//
// 1 xrefs:
// > sub_100969480 @ 0x1009696f0
//
// 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_10096AD10(__int64 a1, __int64 a2)
{
signed int v3; // r14d
__int64 v4; // rdi
signed int v5; // eax
__int64 v6; // rax
void *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 = ProfilePage::create(*(_DWORD *)(v6 + 56), 0);
LOBYTE(v5) = (*(__int64 (__fastcall **)(void *))(*(_QWORD *)v7 + 1312LL))(v7);
}
}
return v5;
}