//
// CustomizeObjectLayer::colorSetupClosed from 0x100058ca0 to 0x100058d14 (116 bytes)
//
// 2 xrefs:
// > sub_100058FBC @ 0x100058fc0
// > ??> @ 0x1008bdd38
//
// 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::colorSetupClosed(__int64 a1, __int64 a2)
{
__int64 v4; // x1
__int64 ButtonByTag; // x0
CustomizeObjectLayer::updateSelected(a1, a2);
v4 = a2;
if ( (unsigned int)(a2 - 10) <= 0x3DD )
{
*(_DWORD *)(a1 + 748) = a2;
*(_BYTE *)(a1 + 922) = 1;
CustomizeObjectLayer::updateCustomColorLabels(a1);
*(_BYTE *)(a1 + 922) = 0;
v4 = 1008;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v4);
CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
CustomizeObjectLayer::updateColorSprite(a1);
return CustomizeObjectLayer::updateChannelLabel(a1, a2);
}