//
// ColorSelectLiveOverlay::closeColorSelect from 0x601160 to 0x601196 (54 bytes)
//
// 2 xrefs:
// > EditorUI::closeLiveColorSelect @ 0x483fcc
// > ColorSelectLiveOverlay::keyBackClicked @ 0x601198
//
// 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:54:40 +0000
//
int __fastcall ColorSelectLiveOverlay::closeColorSelect(ColorSelectLiveOverlay *this, cocos2d::CCObject *a2)
{
int v2; // r3
void (__fastcall ***v4)(_DWORD, ColorSelectLiveOverlay *); // r0
v2 = *(_DWORD *)this;
*((_BYTE *)this + 645) = a2 != nullptr;
(*(void (**)(void))(v2 + 536))();
v4 = *((void (__fastcall ****)(_DWORD, ColorSelectLiveOverlay *))this + 142);
if ( v4 )
(**v4)(v4, this);
return (*(int (__fastcall **)(ColorSelectLiveOverlay *, int))(*(_DWORD *)this + 264))(this, 1);
}