//
// sub_100162880 from 0x100162880 to 0x1001628c1 (65 bytes)
//
// 1 xrefs:
// > ??> @ 0x100bb1ee8
//
// 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:25:08 +0000
//
__int64 __fastcall sub_100162880(__int64 a1)
{
unsigned __int64 v1; // rax
unsigned __int64 v2; // rcx
__int64 result; // rax
unsigned __int64 v4; // rdx
unsigned __int8 *v5; // rcx
v1 = *(_QWORD *)(a1 + 48);
v2 = *(_QWORD *)(a1 + 88);
if ( v2 < v1 )
{
*(_QWORD *)(a1 + 88) = v1;
v2 = v1;
}
result = 0xFFFFFFFFLL;
if ( (*(_BYTE *)(a1 + 96) & 8) != 0 )
{
v4 = *(_QWORD *)(a1 + 32);
if ( v4 < v2 )
{
*(_QWORD *)(a1 + 32) = v2;
v4 = v2;
}
v5 = *(unsigned __int8 **)(a1 + 24);
if ( (unsigned __int64)v5 < v4 )
return *v5;
}
return result;
}