//
// SelectArtLayer::selectArt from 0x10017ccd0 to 0x10017cda0 (208 bytes)
//
// 2 xrefs:
// > SelectArtLayer::init @ 0x10017c968
// > SelectArtLayer::init @ 0x10017c74c
//
// 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::selectArt(SelectArtLayer *a1, cocos2d::CCObject *a2)
{
_BOOL4 v3; // w22
__int64 v4; // x20
__int64 v5; // x0
_WORD v6[2]; // [xsp+Ch] [xbp-34h] BYREF
if ( a2 )
a1->m_art = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v3 = a1->m_type < (unsigned int)Middleground;
if ( (unsigned int)sub_10024A36C(a1->m_artSprites) )
{
v4 = 0;
do
{
v5 = sub_10024A388(a1->m_artSprites, v4);
if ( v3 + (_DWORD)v4 != a1->m_art )
memset(v6, 125, 3);
(*(void (**)(void))(*(_QWORD *)v5 + 944LL))();
v4 = (unsigned int)(v4 + 1);
}
while ( (unsigned int)v4 < (unsigned int)sub_10024A36C(a1->m_artSprites) );
}
}