//
// DrawGridLayer::updateTimeMarkers from 0x799b48 to 0x799c1c (212 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x79e358
// > EditorUI::onPlayback @ 0x7c2828
// > ??> @ 0xe9fe0
//
// This function is hookable on this platform (idp: arm, 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:53:36 +0000
//
__int64 __fastcall DrawGridLayer::updateTimeMarkers(DrawGridLayer *this)
{
char v2; // w0
__int64 v3; // x0
__int64 v4; // x1
__int64 v6; // [xsp+30h] [xbp+30h] BYREF
__int64 v7; // [xsp+38h] [xbp+38h]
void *v8; // [xsp+40h] [xbp+40h]
*((_BYTE *)this + 600) = 1;
*((_BYTE *)this + 601) = 0;
DrawGridLayer::sortSpeedObjects((LevelTools **)this, _stack_chk_guard, (GJBaseGameLayer *)((char *)&dword_0 + 1));
v6 = 0;
v2 = *((_BYTE *)this + 504);
v7 = 0;
v8 = nullptr;
if ( (v2 & 1) != 0 )
{
std::string::__init(&v6, *((void **)this + 65), *((_QWORD *)this + 64));
}
else
{
v3 = *((_QWORD *)this + 63);
v4 = *((_QWORD *)this + 64);
v8 = *((void **)this + 65);
v6 = v3;
v7 = v4;
}
DrawGridLayer::loadTimeMarkers((__int64)this, (__int64)&v6);
if ( (v6 & 1) != 0 )
operator delete(v8);
return _stack_chk_guard;
}