//
// CustomizeObjectLayer::onUpdateCustomColor from 0x983af0 to 0x983b80 (144 bytes)
//
// 4 xrefs:
// > ??> @ 0x5fd70
// > CustomizeObjectLayer::init @ 0x985f50
// > CustomizeObjectLayer::init @ 0x98601c
// > ??> @ 0x1542418
//
// 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::onUpdateCustomColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
int v3; // w0
int v4; // w1
int v5; // w1
*((_BYTE *)this + 922) = 1;
v3 = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);
v4 = *((_DWORD *)this + 187);
if ( v3 == 1 )
v5 = v4 + 1;
else
v5 = v4 - 1;
if ( v5 < 10 )
v5 = 10;
if ( v5 > 999 )
v5 = 999;
*((_DWORD *)this + 187) = v5;
CustomizeObjectLayer::updateCustomColorLabels((ButtonSprite **)this);
CustomizeObjectLayer::updateSelected(this, *((_DWORD *)this + 187));
*((_BYTE *)this + 922) = 0;
CustomizeObjectLayer::updateColorSprite(this);
return CustomizeObjectLayer::updateChannelLabel(this, (GJSpecialColorSelect *)*((unsigned int *)this + 187));
}