//
// EditorOptionsLayer::onClose from 0xa1d758 to 0xa1d828 (208 bytes)
//
// 2 xrefs:
// > ??> @ 0x51238
// > ??> @ 0x147bf88
//
// This function is hookable on this platform (idp: arm, 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:59:38 +0000
//
__int64 __fastcall EditorOptionsLayer::onClose(EditorOptionsLayer *this, cocos2d::CCObject *a2)
{
GameManager *v4; // x0
GameManager *IntGameVariable; // x0
unsigned int v6; // w23
GameManager *v7; // x0
GameManager *v8; // x0
GameManager *v9; // x0
GameManager *v10; // x0
GameManager *v11; // x0
GameManager *v12; // x0
GameManager *v13; // x0
__int64 v14; // x0
v4 = (GameManager *)GameManager::sharedState(this);
IntGameVariable = (GameManager *)GameManager::getIntGameVariable(v4, "0049");
v6 = (unsigned int)IntGameVariable;
v7 = (GameManager *)GameManager::sharedState(IntGameVariable);
v8 = (GameManager *)GameManager::getIntGameVariable(v7, "0050");
if ( __PAIR64__((unsigned int)v8, v6) != *((_QWORD *)this + 140) )
{
v9 = (GameManager *)GameManager::sharedState(v8);
v10 = (GameManager *)GameManager::setIntGameVariable(v9, "0049", *((_DWORD *)this + 280));
v11 = (GameManager *)GameManager::sharedState(v10);
v12 = (GameManager *)GameManager::setIntGameVariable(v11, "0050", *((_DWORD *)this + 281));
v8 = *(GameManager **)(GameManager::sharedState(v12) + 552);
if ( v8 )
{
v8 = *(GameManager **)(*(_QWORD *)(GameManager::sharedState(v8) + 552) + 14248LL);
*((_BYTE *)v8 + 1591) = 1;
}
}
v13 = *(GameManager **)(GameManager::sharedState(v8) + 552);
if ( v13 )
{
v14 = GameManager::sharedState(v13);
LevelEditorLayer::updatePreviewParticles(*(cocos2d::CCArray ***)(v14 + 552));
}
return SetupTriggerPopup::onClose(this, a2);
}