//
// CustomizeObjectLayer::updateCurrentSelection from 0x100058978 to 0x1000589d8 (96 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x100058824
// > CustomizeObjectLayer::toggleVisible @ 0x1000591c4
//
// 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::updateCurrentSelection(__int64 a1)
{
__int64 ActiveMode; // x0
__int64 v3; // x1
__int64 ButtonByTag; // x1
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0);
v3 = ActiveMode;
if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )
{
*(_BYTE *)(a1 + 922) = 1;
*(_DWORD *)(a1 + 748) = ActiveMode;
CustomizeObjectLayer::updateCustomColorLabels(a1);
*(_BYTE *)(a1 + 922) = 0;
v3 = 1008;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, v3);
return CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
}