//
// SetupArtSwitchPopup::selectArtClosed from 0xb72608 to 0xb726ec (228 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupArtSwitchPopup::selectArtClosed @ 0xb726f0
// > ??> @ 0x58b88
// > ??> @ 0x14d2ab0
//
// This function is hookable on this platform (idp: arm, 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 13:02:21 +0000
//
__int64 __fastcall SetupArtSwitchPopup::selectArtClosed(SetupArtSwitchPopup *this, SelectArtLayer *a2)
{
int v3; // w23
cocos2d::CCSpriteFrameCache **v4; // x21
void (__fastcall *v5)(cocos2d::CCSpriteFrameCache **, __int64); // x24
cocos2d::CCSpriteFrameCache *v6; // x25
char *v7; // x1
__int64 v8; // x0
__int64 v10[2]; // [xsp+50h] [xbp+50h] BYREF
char *v11; // [xsp+60h] [xbp+60h]
v3 = *((_DWORD *)a2 + 170);
SetupTriggerPopup::updateValue((cocos2d::CCDictionary **)this, 0x215u, (float)v3);
v4 = *((cocos2d::CCSpriteFrameCache ***)this + 129);
v5 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v4 + 145);
v6 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v4);
artIconForKey(v3, *((_DWORD *)this + 256), v10);
v7 = (char *)v10 + 1;
if ( (v10[0] & 1) != 0 )
v7 = v11;
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);
v5(v4, v8);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
return _stack_chk_guard;
}