//
// GJSpecialColorSelect::highlightSelected from 0x5e877c to 0x5e87d8 (92 bytes)
//
// 1 xrefs:
// > GJSpecialColorSelect::onSelectColor @ 0x5e8808
//
// 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:54:21 +0000
//
char *__fastcall GJSpecialColorSelect::highlightSelected(cocos2d::CCArray **this, ButtonSprite *a2)
{
unsigned int v4; // r4
char *result; // r0
char *v6; // r0
char *v7; // r7
const char *v8; // r1
v4 = 0;
while ( 1 )
{
result = (char *)cocos2d::CCArray::count(*(this + 132));
if ( v4 >= (unsigned int)result )
break;
v6 = (char *)cocos2d::CCArray::objectAtIndex(*(this + 132), v4++);
v7 = v6;
if ( (*(int (__fastcall **)(char *))(*(_DWORD *)v6 + 32))(v6) == 1008 )
v8 = "GJ_button_05.png";
else
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v7, v8);
}
if ( a2 )
return ButtonSprite::updateBGImage((char *)a2, "GJ_button_02.png");
return result;
}