//
// CustomizeObjectLayer::onClose from 0x100057b7c to 0x100057c10 (148 bytes)
//
// 6 xrefs:
// > sub_100058468 @ 0x100058488
// > sub_10005863C @ 0x100058654
// > sub_100058C00 @ 0x100058c50
// > CustomizeObjectLayer::keyBackClicked @ 0x1000594ac
// > sub_1000594B0 @ 0x1000594b4
// > CustomizeObjectLayer::init @ 0x100055f08
//
// 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 10:57:46 +0000
//
__int64 __fastcall CustomizeObjectLayer::onClose(__int64 a1)
{
_QWORD *v2; // x0
__int64 v3; // x0
__int64 v4; // x0
__int64 v5; // x0
v2 = *(_QWORD **)(a1 + 816);
v2[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v2 + 1160LL))(v2, 0);
v3 = *(_QWORD *)(a1 + 824);
if ( v3 )
{
v3 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 1160LL))(v3, 0);
*(_QWORD *)(*(_QWORD *)(a1 + 824) + 584LL) = 0;
}
v4 = GameManager::sharedState(v3);
*(_DWORD *)(v4 + 972) = *(_DWORD *)(a1 + 748);
v5 = GameManager::sharedState(v4);
EditorUI::updateObjectInfoLabel(*(_QWORD *)(*(_QWORD *)(v5 + 552) + 14248LL));
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}