//
// GJSpecialColorSelect::onSelectColor from 0x1403bf6a0 to 0x1403bf77c (220 bytes)
//
// 4 xrefs:
// > GJSpecialColorSelect::init @ 0x1403bf507
// > ??> @ 0x1408c1d74
// > ??> @ 0x1408c1da8
// > ??> @ 0x140923f78
//
// This function is hookable on this platform (idp: pc, 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 11:31:28 +0000
//
void __fastcall GJSpecialColorSelect::onSelectColor(__int64 a1, __int64 a2)
{
unsigned int v4; // edi
__int64 i; // rbp
struct cocos2d::CCObject *v6; // rbx
int v7; // eax
const char *v8; // rdx
*(_DWORD *)(a1 + 672) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 56LL))(a2);
v4 = 0;
for ( i = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 952LL))(a2);
v4 < cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 680));
++v4 )
{
v6 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 680), v4);
v7 = (*(__int64 (__fastcall **)(struct cocos2d::CCObject *))(*(_QWORD *)v6 + 56LL))(v6);
v8 = "GJ_button_05.png";
if ( v7 != 1008 )
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage((__int64)v6, v8);
}
if ( i )
ButtonSprite::updateBGImage(i, "GJ_button_02.png");
}