//
// SelectArtLayer::onSelectCustom from 0x10017ce00 to 0x10017cea8 (168 bytes)
//
// 3 xrefs:
// > LevelSettingsLayer::onGArt @ 0x10017b5e4
// > SelectArtLayer::updateSelectedCustom @ 0x10017c114
// > SelectArtLayer::init @ 0x10017ca48
//
// 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 SelectArtLayer::onSelectCustom(SelectArtLayer *a1, cocos2d::CCObject *a2)
{
int m_line; // w0
int v4; // w8
__int64 v5; // x20
ButtonSprite *v6; // x0
const char *v7; // x1
if ( a2 )
m_line = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
else
m_line = a1->m_line;
if ( m_line <= 1 )
v4 = 1;
else
v4 = m_line;
if ( v4 >= 3 )
v4 = 3;
a1->m_line = v4;
if ( (unsigned int)sub_10024A36C(a1->m_lineSprites) )
{
v5 = 0;
do
{
v6 = (ButtonSprite *)sub_10024A388(a1->m_lineSprites, v5);
v5 = (unsigned int)(v5 + 1);
if ( (_DWORD)v5 == a1->m_line )
v7 = "GJ_button_02.png";
else
v7 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v6, v7);
}
while ( (unsigned int)v5 < (unsigned int)sub_10024A36C(a1->m_lineSprites) );
}
}