//
// LevelEditorLayer::levelSettingsUpdated from 0x799a08 to 0x799b38 (304 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelEditorLayer::levelSettingsUpdated @ 0x799b44
// > ??> @ 0x102eb0
// > ??> @ 0x1435ff0
//
// 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 LevelEditorLayer::levelSettingsUpdated(LevelEditorLayer *this)
{
__int64 v2; // x0
__int64 v3; // x0
__int64 v4; // x22
__int64 v5; // x1
float v6; // s8
__int64 v8; // x21
__int64 v9; // [xsp+50h] [xbp+50h] BYREF
__int64 v10; // [xsp+58h] [xbp+58h]
void *v11; // [xsp+60h] [xbp+60h]
v2 = *((_QWORD *)this + 242);
if ( *(_DWORD *)(v2 + 608) )
{
v3 = *((_QWORD *)this + 409);
v9 = 0;
v10 = 0;
v11 = nullptr;
v4 = *((_QWORD *)this + 1786);
if ( (*(_BYTE *)(v3 + 392) & 1) != 0 )
{
std::string::__init(&v9, *(void **)(v3 + 408), *(_QWORD *)(v3 + 400));
}
else
{
v5 = *(_QWORD *)(v3 + 400);
v9 = *(_QWORD *)(v3 + 392);
v10 = v5;
v11 = *(void **)(v3 + 408);
}
DrawGridLayer::loadTimeMarkers(v4, (__int64)&v9);
}
else
{
v8 = *((_QWORD *)this + 1786);
LevelTools::getAudioString((LevelTools *)*(unsigned int *)(v2 + 604), &v9);
DrawGridLayer::loadTimeMarkers(v8, (__int64)&v9);
}
if ( (v9 & 1) != 0 )
operator delete(v11);
v6 = *((float *)this + 3409);
GJBaseGameLayer::loadLevelSettings(this);
if ( *((float *)this + 3409) != v6 )
GJBaseGameLayer::updateAllObjectSection(this);
return _stack_chk_guard;
}