//
// SelectArtLayer::selectArt from 0x1002703d0 to 0x100270492 (194 bytes)
//
// 1 xrefs:
// > SelectArtLayer::init @ 0x10026fdcc
//
// 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)
{
__int64 v2; // rax
int v4; // r13d
bool v5; // r14
unsigned int v6; // r14d
__int64 v7; // rcx
_QWORD *v8; // rdi
_DWORD *v9; // rsi
_QWORD *v10; // rax
_DWORD v11[11]; // [rsp+0h] [rbp-2Ch] BYREF
v11[0] = HIDWORD(v2);
if ( a2 )
a1->m_art = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2);
v4 = 0;
v5 = a1->m_type < (unsigned int)Middleground;
if ( (unsigned int)sub_100720070(a1->m_artSprites) )
{
LOBYTE(v4) = v5;
v6 = 0;
do
{
v10 = (_QWORD *)sub_1007200C0(a1->m_artSprites, v6);
if ( v6 + v4 == a1->m_art )
{
v7 = *v10;
v8 = v10;
v9 = &unk_100818516;
}
else
{
memset(v11, 125, 3);
v7 = *v10;
v8 = v10;
v9 = v11;
}
(*(void (__fastcall **)(_QWORD *, _DWORD *))(v7 + 944))(v8, v9);
++v6;
}
while ( v6 < (unsigned int)sub_100720070(a1->m_artSprites) );
}
}