//
// CustomizeObjectLayer::updateCurrentSelection from 0x983e44 to 0x983ea4 (96 bytes)
//
// 3 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x983ecc
// > CustomizeObjectLayer::toggleVisible @ 0x984014
// > ??> @ 0x9a6c0
//
// 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 12:57:52 +0000
//
__int64 __fastcall CustomizeObjectLayer::updateCurrentSelection(CustomizeObjectLayer *this)
{
int ActiveMode; // w1
ButtonSprite *ButtonByTag; // x0
ActiveMode = CustomizeObjectLayer::getActiveMode(this, 0);
if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )
{
*((_DWORD *)this + 187) = ActiveMode;
*((_BYTE *)this + 922) = 1;
CustomizeObjectLayer::updateCustomColorLabels((ButtonSprite **)this);
*((_BYTE *)this + 922) = 0;
ActiveMode = 1008;
}
ButtonByTag = (ButtonSprite *)CustomizeObjectLayer::getButtonByTag((cocos2d::CCArray **)this, ActiveMode);
return CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, ButtonByTag);
}