//
// UILayer::editorPlaytest from 0x1000517c8 to 0x100051830 (104 bytes)
//
// 5 xrefs:
// > UILayer::enableEditorMode @ 0x1000517b0
// > LevelEditorLayer::onPlaytest @ 0x100404648
// > sub_100405040 @ 0x100405074
// > sub_100405110 @ 0x100405148
// > LevelEditorLayer::onStopPlaytest @ 0x100405284
//
// 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 10:57:43 +0000
//
__int64 __fastcall UILayer::editorPlaytest(__int64 a1, __int64 a2)
{
*(_QWORD *)(a1 + 584) = -1;
*(_WORD *)(a1 + 578) = 0;
*(_BYTE *)(a1 + 580) = 0;
UILayer::resetUINodeState(a1);
UILayer::toggleMenuVisibility(a1, a2);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 344LL))(a1, a2);
*(_BYTE *)(a1 + 627) = a2;
if ( (_DWORD)a2 )
UILayer::resolveLevelControls(a1);
return UILayer::applyLevelBindings(a1);
}