//
// CustomizeObjectLayer::updateCurrentSelection from 0x140143680 to 0x1401436d6 (86 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x1401421ea
// > ??> @ 0x1409173fc
//
// This function is hookable on this platform (idp: pc, 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 11:27:10 +0000
//
__int64 __fastcall CustomizeObjectLayer::updateCurrentSelection(__int64 a1)
{
unsigned int ActiveMode; // eax
__int64 ButtonByTag; // rax
ActiveMode = CustomizeObjectLayer::getActiveMode(a1, 0);
if ( ActiveMode - 10 <= 0x3DD )
{
*(_BYTE *)(a1 + 922) = 1;
*(_DWORD *)(a1 + 748) = ActiveMode;
CustomizeObjectLayer::updateCustomColorLabels(a1);
ActiveMode = 1008;
*(_BYTE *)(a1 + 922) = 0;
}
ButtonByTag = CustomizeObjectLayer::getButtonByTag(a1, ActiveMode);
return CustomizeObjectLayer::highlightSelected(a1, ButtonByTag);
}