//
// CustomizeObjectLayer::onSelectColor from 0x100058278 to 0x1000582f8 (128 bytes)
//
// 1 xrefs:
// > CustomizeObjectLayer::init @ 0x1000565d4
//
// 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::onSelectColor(__int64 a1, __int64 a2)
{
__int64 v4; // x1
__int64 v5; // x0
__int64 ActiveMode; // x1
v4 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
if ( (_DWORD)v4 == 1008 )
v4 = *(unsigned int *)(a1 + 748);
CustomizeObjectLayer::updateSelected(a1, v4);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2);
CustomizeObjectLayer::highlightSelected(a1, v5);
CustomizeObjectLayer::updateColorSprite(a1);
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 1);
return CustomizeObjectLayer::updateChannelLabel(a1, ActiveMode);
}