//
// sub_100365184 from 0x100365184 to 0x1003651c0 (60 bytes)
//
// 6 xrefs:
// > sub_100364844 @ 0x100364b4c
// > sub_100364844 @ 0x100364e94
// > sub_100364844 @ 0x100364ebc
// > sub_100365890 @ 0x100365d7c
// > sub_100365890 @ 0x100365e5c
// > sub_100365890 @ 0x100365f10
//
// 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_100365184(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_10036E628();
}
else
{
sub_10036E5D8();
result = v2 + 24;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}