//
// EditorOptionsLayer::onClose from 0x100288ed0 to 0x100288fb1 (225 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b061a0
//
// 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:27:46 +0000
//
__int64 __fastcall EditorOptionsLayer::onClose(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v4; // rax
__int64 v5; // rdi
int v6; // eax
int v7; // r15d
__int64 v8; // rdx
__int64 v9; // rax
__int64 v10; // rdi
int v11; // eax
__int64 v12; // rdx
__int64 v13; // rax
__int64 v14; // rdi
__int64 v15; // rdx
__int64 v16; // rax
__int64 v17; // rdx
__int64 v18; // rax
__int64 v19; // rax
__int64 v20; // rdx
__int64 v21; // rax
__int64 v22; // rax
__int64 v23; // rdx
GameManager::sharedState(a1, a2, a3);
v5 = v4;
GameManager::getIntGameVariable(v4, "0049");
v7 = v6;
GameManager::sharedState(v5, "0049", v8);
v10 = v9;
GameManager::getIntGameVariable(v9, "0050");
if ( *(_DWORD *)(a1 + 1120) != v7 || *(_DWORD *)(a1 + 1124) != v11 )
{
GameManager::sharedState(v10, "0050", v12);
v14 = v13;
GameManager::setIntGameVariable(v13, "0049", *(unsigned int *)(a1 + 1120));
GameManager::sharedState(v14, "0049", v15);
v10 = v16;
GameManager::setIntGameVariable(v16, "0050", *(unsigned int *)(a1 + 1124));
GameManager::sharedState(v10, "0050", v17);
if ( *(_QWORD *)(v18 + 552) )
{
GameManager::sharedState(v10, "0050", v12);
*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(v19 + 552) + 14248LL) + 1591LL) = 1;
}
}
GameManager::sharedState(v10, "0050", v12);
if ( *(_QWORD *)(v21 + 552) )
{
GameManager::sharedState(v10, "0050", v20);
LevelEditorLayer::updatePreviewParticles(*(_QWORD *)(v22 + 552), (__int64)"0050", v23);
}
return SetupTriggerPopup::onClose(a1, a2, v20);
}