//
// LevelListLayer::onToggleEditMode from 0x100349580 to 0x1003495bc (60 bytes)
//
// 1 xrefs:
// > LevelListLayer::init @ 0x100348219
//
// 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 12:28:46 +0000
//
char __fastcall LevelListLayer::onToggleEditMode(__int64 a1, __int64 a2, double a3)
{
int v3; // ecx
int v4; // eax
__int64 v5; // rcx
__int64 v6; // rdi
v3 = *(_DWORD *)(a1 + 968);
v4 = 0;
if ( v3 < 2 )
v4 = v3 + 1;
*(_DWORD *)(a1 + 968) = v4;
v5 = *(_QWORD *)(a1 + 608);
if ( v5 )
{
v6 = *(_QWORD *)(v5 + 544);
*(_DWORD *)(v6 + 464) = v4;
LOBYTE(v4) = CustomListView::reloadAll(v6, a2, a3);
}
return v4;
}