//
// CustomizeObjectLayer::colorSetupClosed from 0x57eab0 to 0x57eb04 (84 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'CustomizeObjectLayer::colorSetupClosed @ 0x57eb08
//
// 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:51 +0000
//
int __fastcall CustomizeObjectLayer::colorSetupClosed(CustomizeObjectLayer *this, GJSpecialColorSelect *a2)
{
GJSpecialColorSelect *v4; // r1
ButtonSprite *ButtonByTag; // r0
CustomizeObjectLayer::updateSelected(this, (int)a2);
if ( (unsigned int)a2 - 10 > 0x3DD )
{
v4 = a2;
}
else
{
*((_DWORD *)this + 141) = a2;
*((_BYTE *)this + 654) = 1;
CustomizeObjectLayer::updateCustomColorLabels(this);
v4 = (GJSpecialColorSelect *)(&stru_3EC + 4);
*((_BYTE *)this + 654) = 0;
}
ButtonByTag = (ButtonSprite *)CustomizeObjectLayer::getButtonByTag((cocos2d::CCArray **)this, (int)v4);
CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, ButtonByTag);
CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);
return CustomizeObjectLayer::updateChannelLabel(this, a2);
}