//
// GJSpecialColorSelect::onSelectColor from 0x100703460 to 0x100703535 (213 bytes)
//
// 1 xrefs:
// > GJSpecialColorSelect::init @ 0x1007031f5
//
// 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 12:35:59 +0000
//
void __fastcall GJSpecialColorSelect::onSelectColor(__int64 a1, __int64 a2)
{
unsigned int v2; // r15d
__int64 v3; // r12
const char *v4; // rsi
__int64 v5; // [rsp+0h] [rbp-30h]
*(_DWORD *)(a1 + 672) = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2);
v5 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 1072LL))(a2);
if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) )
{
v2 = 0;
do
{
v3 = sub_1007FEFE0(*(_QWORD *)(a1 + 680), v2);
v4 = "GJ_button_04.png";
if ( (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)v3 + 64LL))(v3) == 1008 )
v4 = "GJ_button_05.png";
ButtonSprite::updateBGImage(v3, (__int64)v4);
++v2;
}
while ( v2 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 680)) );
}
if ( v5 )
ButtonSprite::updateBGImage(v5, (__int64)"GJ_button_02.png");
}