//
// sub_100369218 from 0x100369218 to 0x100369260 (72 bytes)
//
// 4 xrefs:
// > LevelEditorLayer::didRotateGameplay @ 0x100362780
// > LevelEditorLayer::postUpdate @ 0x100363714
// > LevelEditorLayer::postUpdate @ 0x10036380c
// > LevelEditorLayer::addPlayer2Point @ 0x10036398c
//
// 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_100369218(__int64 a1, __int64 *a2)
{
unsigned __int64 v3; // x20
__int64 result; // x0
v3 = *(_QWORD *)(a1 + 8);
if ( v3 >= *(_QWORD *)(a1 + 16) )
{
result = sub_100370124(a1);
}
else
{
sub_1000229B8(*(__int64 **)(a1 + 8), a2);
result = v3 + 8;
*(_QWORD *)(a1 + 8) = v3 + 8;
}
*(_QWORD *)(a1 + 8) = result;
return result;
}