//
// SelectArtLayer::onSelectCustom from 0x140322fb0 to 0x14032306c (188 bytes)
//
// 8 xrefs:
// > LevelSettingsLayer::onGArt @ 0x140321c8b
// > SetupSmartBlockLayer::onSelectPremade @ 0x1404589f8
// > SelectArtLayer::init @ 0x140322bac
// > SelectArtLayer::init @ 0x140322cda
// > SelectArtLayer::init @ 0x140322dee
// > ??> @ 0x140693660
// > ??> @ 0x140693670
// > ??> @ 0x1406d4cf4
//
// 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 SelectArtLayer::onSelectCustom(SelectArtLayer *a1, cocos2d::CCObject *a2)
{
int *p_m_line; // rbx
int v4; // eax
cocos2d::CCArray *m_lineSprites; // rcx
unsigned int v6; // edi
ButtonSprite *v7; // rax
const char *v8; // rdx
p_m_line = &a1->m_line;
if ( a2 )
*p_m_line = a2->getTag(a2);
v4 = *p_m_line;
if ( *p_m_line >= 1 )
{
*p_m_line = v4;
if ( v4 > 3 )
v4 = 3;
}
else
{
v4 = 1;
*p_m_line = 1;
}
m_lineSprites = a1->m_lineSprites;
v6 = 0;
*p_m_line = v4;
if ( cocos2d::CCArray::count(m_lineSprites) )
{
do
{
v7 = (ButtonSprite *)cocos2d::CCArray::objectAtIndex(a1->m_lineSprites, v6++);
v8 = "GJ_button_02.png";
if ( *p_m_line != v6 )
v8 = "GJ_button_04.png";
ButtonSprite::updateBGImage(v7, v8);
}
while ( v6 < cocos2d::CCArray::count(a1->m_lineSprites) );
}
}