//
// sub_1004E32A0 from 0x1004e32a0 to 0x1004e330f (111 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b62190
//
// 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:31:18 +0000
//
char __fastcall sub_1004E32A0(__int64 a1, __int64 a2, char a3, double a4)
{
char result; // al
__int64 v5; // rax
__int64 v6; // rax
char *v7; // rax
result = a3 ^ 1 | ((*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) != 5);
if ( !result )
{
v5 = GameLevelManager::sharedState(a4);
GameLevelManager::deleteSmartTemplate(v5, *(_QWORD *)(a1 + 8));
SetupSmartTemplateLayer::onClose(a1 - 664);
v6 = GJSearchObject::create_2(101);
*(_BYTE *)(v6 + 430) = 1;
v7 = LevelBrowserLayer::create(v6);
return LevelBrowserLayer::show((__int64)v7);
}
return result;
}