//
// SelectArtLayer::updateSelectedCustom from 0x1002592e0 to 0x100259372 (146 bytes)
//
// 1 xrefs:
// > SetupSmartBlockLayer::onSelectPremade @ 0x1004e1791
//
// 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:27:27 +0000
//
void __fastcall SelectArtLayer::updateSelectedCustom(__int64 a1, int a2)
{
__int64 v3; // rdi
int v4; // eax
int v5; // ecx
unsigned int v6; // r14d
__int64 v7; // rax
const char *v8; // rsi
v3 = *(_QWORD *)(a1 + 672);
if ( v3 )
{
v4 = 1;
if ( a2 >= 2 )
v4 = a2;
v5 = 3;
if ( v4 < 3 )
v5 = v4;
*(_DWORD *)(a1 + 684) = v5;
if ( (unsigned int)sub_1007FEF90(v3) )
{
v6 = 0;
do
{
v7 = sub_1007FEFE0(*(_QWORD *)(a1 + 672), v6++);
v8 = "GJ_button_04.png";
if ( v6 == *(_DWORD *)(a1 + 684) )
v8 = "GJ_button_02.png";
ButtonSprite::updateBGImage(v7, (__int64)v8);
}
while ( v6 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 672)) );
}
}
}