//
// CustomizeObjectLayer::onUpdateCustomColor from 0x57ee38 to 0x57ee98 (96 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::onUpdateCustomColor(CustomizeObjectLayer *this, cocos2d::CCObject *a2)
{
int v3; // r0
int v4; // r3
int v5; // r3
*((_BYTE *)this + 654) = 1;
v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);
v4 = *((_DWORD *)this + 141);
if ( v3 == 1 )
v5 = v4 + 1;
else
v5 = v4 - 1;
if ( v5 < 10 )
v5 = 10;
if ( v5 > 999 )
*((_DWORD *)this + 141) = 999;
else
*((_DWORD *)this + 141) = v5;
CustomizeObjectLayer::updateCustomColorLabels(this);
CustomizeObjectLayer::updateSelected(this, *((_DWORD *)this + 141));
*((_BYTE *)this + 654) = 0;
CustomizeObjectLayer::updateColorSprite((ColorChannelSprite **)this);
return CustomizeObjectLayer::updateChannelLabel(this, *((GJSpecialColorSelect **)this + 141));
}