//
// sub_100183490 from 0x100183490 to 0x1001834d1 (65 bytes)
//
// 1 xrefs:
// > ??> @ 0x1008c3fa0
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_100183490(__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;
}