//
// CustomizeObjectLayer::onUpdateCustomColor from 0x1000582f8 to 0x100058380 (136 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x100056c9c
//
// 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 10:57:46 +0000
//
__int64 __fastcall CustomizeObjectLayer::onUpdateCustomColor(__int64 a1, __int64 a2)
{
int v3; // w9
int v4; // w8
*(_BYTE *)(a1 + 922) = 1;
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 1 )
v3 = 1;
else
v3 = -1;
v4 = *(_DWORD *)(a1 + 748) + v3;
if ( v4 <= 10 )
v4 = 10;
if ( v4 >= 999 )
v4 = 999;
*(_DWORD *)(a1 + 748) = v4;
CustomizeObjectLayer::updateCustomColorLabels(a1);
CustomizeObjectLayer::updateSelected(a1, *(unsigned int *)(a1 + 748));
*(_BYTE *)(a1 + 922) = 0;
CustomizeObjectLayer::updateColorSprite(a1);
return CustomizeObjectLayer::updateChannelLabel(a1, *(unsigned int *)(a1 + 748));
}