//
// GJSpecialColorSelect::highlightSelected from 0xa3f8b8 to 0xa3f964 (172 bytes)
//
// 2 xrefs:
// > GJSpecialColorSelect::onSelectColor @ 0xa3f9b0
// > ??> @ 0x5b150
//
// 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:59:56 +0000
//
__int64 __fastcall GJSpecialColorSelect::highlightSelected(cocos2d::CCArray **this, ButtonSprite *a2)
{
unsigned int v4; // w19
ButtonSprite *v5; // x20
const char *v6; // x1
__int64 result; // x0
bool v8; // cf
unsigned int v9; // w1
v4 = 0;
while ( 1 )
{
result = cocos2d::CCArray::count(*(this + 85));
v8 = v4 >= (unsigned int)result;
v9 = v4++;
if ( v8 )
break;
v5 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(*(this + 85), v9);
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 )
return ButtonSprite::updateBGImage(a2, "GJ_button_02.png");
return result;
}