//
// SetupArtSwitchPopup::selectArtClosed from 0x140472440 to 0x1404724ea (170 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405fecf8
// > ??> @ 0x1406db348
//
// 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
//
// Hidden C++ exception states: #wind=1
void SetupArtSwitchPopup::selectArtClosed(SetupArtSwitchPopup *a1, SelectArtLayer *a2)
{
int m_art; // ebx
char **v4; // rax
__int64 v5; // rcx
const char *v6; // rdi
__int64 v7; // rbx
cocos2d::CCSpriteFrameCache *v8; // rax
struct cocos2d::CCSpriteFrame *v9; // rax
char *v10[4]; // [rsp+20h] [rbp-38h] BYREF
m_art = a2->m_art;
SetupTriggerPopup::updateValue((SetupArtSwitchPopup *)((char *)a1 - 936), 533, (float)m_art);
v4 = sub_1404718C0(v10, (unsigned int)m_art, a1->m_uID);
v6 = (const char *)v4;
if ( (unsigned __int64)v4[3] > 0xF )
v6 = *v4;
v7 = **(_QWORD **)&a1->m_nTag;
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v5);
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v6);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v7 + 992))(*(_QWORD *)&a1->m_nTag, v9);
sub_14003A830((__int64)v10);
}