//
// CustomizeObjectLayer::updateCurrentSelection from 0x57eb72 to 0x57ebb6 (68 bytes)
//
// 2 xrefs:
// > CustomizeObjectLayer::onPaste @ 0x57ebd0
// > CustomizeObjectLayer::toggleVisible @ 0x57ecb4
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:51 +0000
//
int __fastcall CustomizeObjectLayer::updateCurrentSelection(CustomizeObjectLayer *this)
{
int ActiveMode; // r0
int v3; // r1
ButtonSprite *ButtonByTag; // r1
ActiveMode = CustomizeObjectLayer::getActiveMode(this, 0);
v3 = ActiveMode;
if ( (unsigned int)(ActiveMode - 10) <= 0x3DD )
{
*((_DWORD *)this + 141) = ActiveMode;
*((_BYTE *)this + 654) = 1;
CustomizeObjectLayer::updateCustomColorLabels(this);
v3 = 1008;
*((_BYTE *)this + 654) = 0;
}
ButtonByTag = (ButtonSprite *)CustomizeObjectLayer::getButtonByTag((cocos2d::CCArray **)this, v3);
return CustomizeObjectLayer::highlightSelected((cocos2d::CCArray **)this, ButtonByTag);
}