//
// LevelListLayer::onToggleEditMode from 0x14042ff70 to 0x14042ffa8 (56 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x14042c885
//
// This function is hookable on this platform (idp: pc, 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 11:32:15 +0000
//
void __fastcall LevelListLayer::onToggleEditMode(__int64 a1)
{
int v1; // eax
__int64 v2; // rcx
__int64 v3; // rcx
v1 = ++*(_DWORD *)(a1 + 984);
if ( v1 > 2 )
{
v1 = 0;
*(_DWORD *)(a1 + 984) = 0;
}
v2 = *(_QWORD *)(a1 + 608);
if ( v2 )
{
v3 = *(_QWORD *)(v2 + 544);
*(_DWORD *)(v3 + 464) = v1;
CustomListView::reloadAll(v3);
}
}