//
// CustomizeObjectLayer::onClose from 0x982b0c to 0x982bac (160 bytes)
//
// 7 xrefs:
// > CustomizeObjectLayer::onBreakApart @ 0x982bc8
// > CustomizeObjectLayer::keyBackClicked @ 0x982bf4
// > CustomizeObjectLayer::onLiveEdit @ 0x983690
// > CustomizeObjectLayer::recreateLayer @ 0x9871f4
// > ??> @ 0xd8298
// > CustomizeObjectLayer::init @ 0x98514c
// > ??> @ 0x1546758
//
// 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:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::onClose(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
GameManager *v3; // x0
GameManager *v4; // x0
__int64 v5; // x0
*(_QWORD *)(*((_QWORD *)this + 102) + 584LL) = 0;
(*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 102) + 1160LL))(*((_QWORD *)this + 102), 0);
v3 = *((GameManager **)this + 103);
if ( v3 )
{
(*(void (__fastcall **)(GameManager *, _QWORD))(*(_QWORD *)v3 + 1160LL))(v3, 0);
v3 = *((GameManager **)this + 103);
*((_QWORD *)v3 + 73) = 0;
}
v4 = (GameManager *)GameManager::sharedState(v3);
*((_DWORD *)v4 + 243) = *((_DWORD *)this + 187);
v5 = GameManager::sharedState(v4);
EditorUI::updateObjectInfoLabel(*(EditorUI **)(*(_QWORD *)(v5 + 552) + 14248LL));
(*(void (__fastcall **)(CustomizeObjectLayer *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(CustomizeObjectLayer *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}