//
// SetupObjectOptionsPopup::onClose from 0x639926 to 0x639970 (74 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:55:23 +0000
//
int __fastcall SetupObjectOptionsPopup::onClose(SetupObjectOptionsPopup *this, cocos2d::CCObject *a2)
{
int v3; // r0
int v4; // r5
EffectGameObject *v5; // r1
v3 = GameManager::sharedState(this);
v4 = *(_DWORD *)(v3 + 408);
if ( v4 )
{
if ( *((_BYTE *)this + 551) )
{
v5 = *((EffectGameObject **)this + 130);
if ( v5 )
{
LevelEditorLayer::reverseObjectChanged(*(LevelEditorLayer **)(v3 + 408), v5);
LevelEditorLayer::timeObjectChanged(v4);
}
}
*(_BYTE *)(v4 + 12278) = 1;
}
(*(void (__fastcall **)(SetupObjectOptionsPopup *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(SetupObjectOptionsPopup *, int))(*(_DWORD *)this + 264))(this, 1);
}