//
// CustomizeObjectLayer::onSelectColor from 0x983cb4 to 0x983d34 (128 bytes)
//
// 7 xrefs:
// > ??> @ 0x592d8
// > CustomizeObjectLayer::init @ 0x9857fc
// > CustomizeObjectLayer::init @ 0x9858a0
// > CustomizeObjectLayer::init @ 0x985944
// > CustomizeObjectLayer::init @ 0x9859e4
// > CustomizeObjectLayer::init @ 0x985b90
// > ??> @ 0x15420e0
//
// 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::onSelectColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
int v4; // w1
ButtonSprite *v5; // x0
unsigned int ActiveMode; // w0
v4 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
if ( v4 == 1008 )
v4 = *((_DWORD *)this + 187);
CustomizeObjectLayer::updateSelected(this, v4);
v5 = (ButtonSprite *)(*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 1072LL))(a2);
CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, v5);
CustomizeObjectLayer::updateColorSprite(this);
ActiveMode = CustomizeObjectLayer::getActiveMode(this, 1u);
return CustomizeObjectLayer::updateChannelLabel(this, (GJSpecialColorSelect *)ActiveMode);
}