//
// CustomizeObjectLayer::onClose from 0x57dfcc to 0x57e03a (110 bytes)
//
// 4 xrefs:
// > CustomizeObjectLayer::onBreakApart @ 0x57e046
// > CustomizeObjectLayer::keyBackClicked @ 0x57e062
// > CustomizeObjectLayer::onLiveEdit @ 0x57e6a8
// > CustomizeObjectLayer::recreateLayer @ 0x581024
//
// 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:52:50 +0000
//
int __fastcall CustomizeObjectLayer::onClose(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // r0
GameManager *v4; // r0
int v5; // r0
*(_DWORD *)(*((_DWORD *)this + 150) + 420) = 0;
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 150) + 580))(*((_DWORD *)this + 150), 0);
v3 = *((GameManager **)this + 151);
if ( v3 )
{
v3 = (GameManager *)(*(int (__fastcall **)(GameManager *, _DWORD))(*(_DWORD *)v3 + 580))(v3, 0);
*(_DWORD *)(*((_DWORD *)this + 151) + 420) = 0;
}
v4 = (GameManager *)GameManager::sharedState(v3);
*((_DWORD *)v4 + 190) = *((_DWORD *)this + 141);
v5 = GameManager::sharedState(v4);
EditorUI::updateObjectInfoLabel(*(cocos2d::CCArray ***)(*(_DWORD *)(v5 + 408) + 11856));
(*(void (__fastcall **)(CustomizeObjectLayer *, _DWORD))(*(_DWORD *)this + 536))(this, 0);
return (*(int (__fastcall **)(CustomizeObjectLayer *, int))(*(_DWORD *)this + 264))(this, 1);
}