//
// CustomizeObjectLayer::highlightSelected from 0x983b80 to 0x983cb4 (308 bytes)
//
// 5 xrefs:
// > CustomizeObjectLayer::onSelectColor @ 0x983d08
// > CustomizeObjectLayer::colorSetupClosed @ 0x983d88
// > CustomizeObjectLayer::onNextColorChannel @ 0x983e20
// > CustomizeObjectLayer::updateCurrentSelection @ 0x983ea0
// > ??> @ 0x76768
//
// 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::highlightSelected(cocos2d::CCArray **this, ButtonSprite *a2)
{
unsigned int v4; // w19
ButtonSprite *v5; // x20
const char *v6; // x1
bool v7; // cf
unsigned int v8; // w1
_BOOL4 v9; // w19
v4 = 0;
while ( 1 )
{
v7 = v4 >= (unsigned int)cocos2d::CCArray::count(*(this + 88));
v8 = v4++;
if ( v7 )
break;
v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(*(this + 88), v8);
if ( (*(unsigned int (__fastcall **)(ButtonSprite *))(*(_QWORD *)v5 + 64LL))(v5) == 1008 )
v6 = "GJ_button_05.png";
else
v6 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v5, v6);
}
if ( a2 )
{
ButtonSprite::updateBGImage(a2, "GJ_button_02.png");
v9 = (*(__int64 (__fastcall **)(ButtonSprite *))(*(_QWORD *)a2 + 64LL))(a2) == 1008;
}
else
{
v9 = 0;
}
(*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 109) + 344LL))(*(this + 109), v9);
(*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 110) + 344LL))(*(this + 110), v9);
(*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 102) + 1000LL))(*(this + 102), v9);
(*(void (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 102) + 344LL))(*(this + 102), v9);
return (*(__int64 (__fastcall **)(_QWORD, _BOOL4))(*(_QWORD *)*(this + 111) + 344LL))(*(this + 111), v9);
}