//
// SetupArtSwitchPopup::selectArtClosed from 0x1005b2020 to 0x1005b20ad (141 bytes)
//
// 2 xrefs:
// > sub_1005B20D0 @ 0x1005b20dc
// > ??> @ 0x100b79370
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 12:32:39 +0000
//
void __fastcall SetupArtSwitchPopup::selectArtClosed(__int64 a1, __int64 a2)
{
int v2; // r12d
__int64 v3; // rbx
__int64 v4; // r14
const char *v5; // rsi
__int64 v6; // rax
char v7; // [rsp+8h] [rbp-38h] BYREF
char v8; // [rsp+9h] [rbp-37h] BYREF
void *__p; // [rsp+18h] [rbp-28h]
v2 = *(_DWORD *)(a2 + 680);
SetupTriggerPopup::updateValue((_QWORD *)a1, 0x215u, (float)v2);
v3 = *(_QWORD *)(a1 + 1032);
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
sub_1005B1EA0(&v7, (unsigned int)v2, *(_DWORD *)(a1 + 1024));
if ( (v7 & 1) != 0 )
v5 = (const char *)__p;
else
v5 = &v8;
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v6);
if ( (v7 & 1) != 0 )
operator delete(__p);
}