//
// GJSpecialColorSelect::onSelectColor from 0x100626ad0 to 0x100626ba5 (213 bytes)
//
// 1 xrefs:
// > GJSpecialColorSelect::init @ 0x100626865
//
// 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 __fastcall GJSpecialColorSelect::onSelectColor(GJSpecialColorSelect *a1, cocos2d::CCObject *a2)
{
unsigned int v2; // r15d
ButtonSprite *v3; // r12
const char *v4; // rsi
ButtonSprite *v5; // [rsp+0h] [rbp-30h]
a1->m_colorID = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v5 = (ButtonSprite *)((__int64 (__fastcall *)(cocos2d::CCObject *))a2->__vftable[13].~CCObject_0)(a2);
if ( (unsigned int)sub_100720070(a1->m_buttonSprites) )
{
v2 = 0;
do
{
v3 = (ButtonSprite *)sub_1007200C0(a1->m_buttonSprites, v2);
v4 = "GJ_button_04.png";
if ( ((unsigned int (__fastcall *)(ButtonSprite *))v3->getTag)(v3) == 1008 )
v4 = "GJ_button_05.png";
ButtonSprite::updateBGImage(v3, v4);
++v2;
}
while ( v2 < (unsigned int)sub_100720070(a1->m_buttonSprites) );
}
if ( v5 )
ButtonSprite::updateBGImage(v5, "GJ_button_02.png");
}