//
// CustomizeObjectLayer::onSelectColor from 0x57e94c to 0x57e998 (76 bytes)
//
// 0 xrefs:
//
// 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::onSelectColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
int v4; // r0
int v5; // r1
ButtonSprite *v6; // r0
GJSpecialColorSelect *ActiveMode; // r1
v4 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
if ( v4 == 1008 )
v5 = *((_DWORD *)this + 141);
else
v5 = v4;
CustomizeObjectLayer::updateSelected(this, v5);
v6 = (ButtonSprite *)(*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 536))(a2);
CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, v6);
CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);
ActiveMode = (GJSpecialColorSelect *)CustomizeObjectLayer::getActiveMode(this, 1);
return CustomizeObjectLayer::updateChannelLabel(this, ActiveMode);
}