//
// sub_100365148 from 0x100365148 to 0x100365184 (60 bytes)
//
// 3 xrefs:
// > sub_100364844 @ 0x100364908
// > sub_100365890 @ 0x100365d70
// > sub_100365890 @ 0x100365e50
//
// 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_100365148(__int64 a1)
{
unsigned __int64 v2; // x20
__int64 result; // x0
v2 = *(_QWORD *)(a1 + 8);
if ( v2 >= *(_QWORD *)(a1 + 16) )
{
result = sub_10036DE18();
}
else
{
sub_10036DDA4();
result = v2 + 64;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}