//
// SetupArtSwitchPopup::selectArtClosed from 0x140608ec0 to 0x140608f60 (160 bytes)
//
// 2 xrefs:
// > ??> @ 0x14080e878
// > ??> @ 0x14092fa50
//
// 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 11:35:13 +0000
//
// Hidden C++ exception states: #wind=1
void __fastcall SetupArtSwitchPopup::selectArtClosed(__int64 a1, __int64 a2)
{
unsigned int v3; // ebx
char **v4; // rax
__int64 v5; // rdx
__int64 v6; // rcx
const char *v7; // rbx
cocos2d::CCSpriteFrameCache *v8; // rax
struct cocos2d::CCSpriteFrame *v9; // rax
char *v10[4]; // [rsp+20h] [rbp-38h] BYREF
v3 = *(_DWORD *)(a2 + 680);
SetupTriggerPopup::updateValue(a1 - 1000, 533);
v4 = sub_1406082A0(v10, v3, *(_DWORD *)(a1 + 8));
v7 = (const char *)v4;
if ( (unsigned __int64)v4[3] > 0xF )
v7 = *v4;
v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6, v5);
v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v7);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(**(_QWORD **)(a1 + 16) + 1008LL))(
*(_QWORD *)(a1 + 16),
v9);
sub_14003D310((__int64)v10);
}