//
// CustomizeObjectLayer::highlightSelected from 0x57e890 to 0x57e93e (174 bytes)
//
// 4 xrefs:
// > CustomizeObjectLayer::onSelectColor @ 0x57e97a
// > CustomizeObjectLayer::colorSetupClosed @ 0x57eaee
// > CustomizeObjectLayer::onNextColorChannel @ 0x57eb5c
// > CustomizeObjectLayer::updateCurrentSelection @ 0x57ebb2
//
// 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::highlightSelected(cocos2d::CCArray **this, ButtonSprite *a2)
{
unsigned int v4; // r6
char *v5; // r0
char *v6; // r7
const char *v7; // r1
v4 = 0;
while ( v4 < cocos2d::CCArray::count(*(this + 135)) )
{
v5 = (char *)cocos2d::CCArray::objectAtIndex(*(this + 135), v4++);
v6 = v5;
if ( (*(int (__fastcall **)(char *))(*(_DWORD *)v5 + 32))(v5) == 1008 )
v7 = "GJ_button_05.png";
else
v7 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, v7);
}
if ( a2 )
{
ButtonSprite::updateBGImage((char *)a2, "GJ_button_02.png");
a2 = (ButtonSprite *)((*(int (__fastcall **)(ButtonSprite *))(*(_DWORD *)a2 + 32))(a2) == 1008);
}
(*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 157) + 172))(*(this + 157), a2);
(*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 158) + 172))(*(this + 158), a2);
(*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 150) + 500))(*(this + 150), a2);
(*(void (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 150) + 172))(*(this + 150), a2);
return (*(int (__fastcall **)(_DWORD, ButtonSprite *))(*(_DWORD *)*(this + 159) + 172))(*(this + 159), a2);
}