//
// EditorOptionsLayer::onClose from 0x5d3330 to 0x5d33c0 (144 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:07 +0000
//
int __fastcall EditorOptionsLayer::onClose(const char **this, cocos2d::CCObject *a2)
{
GameManager *v4; // r0
GameManager *IntGameVariable; // r6
GameManager *v6; // r0
GameManager *v7; // r0
GameManager *v8; // r0
int v9; // r3
GameManager *v10; // r0
GameManager *v11; // r0
int v12; // r3
GameManager *v13; // r0
GameManager *v14; // r0
int v15; // r0
v4 = (GameManager *)GameManager::sharedState((GameManager *)this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, "0049");
v6 = (GameManager *)GameManager::sharedState(IntGameVariable);
v7 = (GameManager *)GameManager::getIntGameVariable(v6, "0050");
if ( *(this + 195) != (const char *)IntGameVariable || *(this + 196) != (const char *)v7 )
{
v8 = (GameManager *)GameManager::sharedState(v7);
v10 = (GameManager *)GameManager::setIntGameVariable(v8, "0049", *(this + 195), v9);
v11 = (GameManager *)GameManager::sharedState(v10);
v13 = (GameManager *)GameManager::setIntGameVariable(v11, "0050", *(this + 196), v12);
v7 = (GameManager *)GameManager::sharedState(v13);
if ( *((_DWORD *)v7 + 102) )
{
v7 = (GameManager *)GameManager::sharedState(v7);
*(_BYTE *)(*(_DWORD *)(*((_DWORD *)v7 + 102) + 11856) + 1055) = 1;
}
}
v14 = (GameManager *)GameManager::sharedState(v7);
if ( *((_DWORD *)v14 + 102) )
{
v15 = GameManager::sharedState(v14);
LevelEditorLayer::updatePreviewParticles(*(LevelEditorLayer **)(v15 + 408));
}
return SetupTriggerPopup::onClose((SetupTriggerPopup *)this, a2);
}