//
// GJSpecialColorSelect::onSelectColor from 0x1402b8900 to 0x1402b89d9 (217 bytes)
//
// 5 xrefs:
// > GJSpecialColorSelect::init @ 0x1402b8799
// > ??> @ 0x14068be80
// > ??> @ 0x14068beb4
// > ??> @ 0x1406d25b8
// > ??> @ 0x1406d25c4
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJSpecialColorSelect::onSelectColor(GJSpecialColorSelect *a1, cocos2d::CCObject *a2)
{
unsigned int v4; // edi
ButtonSprite *i; // rbp
ButtonSprite *v6; // rbx
int v7; // eax
const char *v8; // rdx
a1->m_colorID = a2->getTag(a2);
v4 = 0;
for ( i = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].copyWithZone)(a2);
v4 < cocos2d::CCArray::count(a1->m_buttonSprites);
++v4 )
{
v6 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_buttonSprites, v4);
v7 = v6->getTag(v6);
v8 = "GJ_button_05.png";
if ( v7 != 1008 )
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, v8);
}
if ( i )
ButtonSprite::updateBGImage(i, "GJ_button_02.png");
}