//
// SetupAudioLineGuidePopup::selectSettingClosed from 0x140470710 to 0x140470802 (242 bytes)
//
// 2 xrefs:
// > ??> @ 0x1405fd910
// > ??> @ 0x1406db2b8
//
// 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 SetupAudioLineGuidePopup::selectSettingClosed(SetupAudioLineGuidePopup *a1, SelectSettingLayer *a2)
{
int v3; // esi
int m_settingID; // r8d
SelectSettingType m_type; // edx
__int64 v6; // rcx
const char *v7; // rdi
__int64 v8; // rbx
cocos2d::CCSpriteFrameCache *v9; // rax
struct cocos2d::CCSpriteFrame *v10; // rax
_QWORD v11[4]; // [rsp+28h] [rbp-40h] BYREF
v3 = 0;
m_settingID = a2->m_settingID;
m_type = a2->m_type;
if ( m_type == StartingSpeed )
{
if ( m_settingID )
{
if ( m_settingID != 1 )
{
switch ( m_settingID )
{
case 2:
v3 = 2;
break;
case 3:
v3 = 3;
break;
case 4:
v3 = 4;
break;
}
}
}
else
{
v3 = 1;
}
}
else
{
v3 = m_settingID;
}
SelectSettingLayer::frameForItem((__int64)v11, m_type, m_settingID);
v7 = (const char *)v11;
if ( v11[3] > 0xFu )
v7 = (const char *)v11[0];
v8 = **(_QWORD **)&a1->m_uID;
v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6);
v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, v7);
(*(void (__fastcall **)(_QWORD, struct cocos2d::CCSpriteFrame *))(v8 + 992))(*(_QWORD *)&a1->m_uID, v10);
sub_14003A830((__int64)v11);
SetupTriggerPopup::updateValue((SetupAudioLineGuidePopup *)((char *)a1 - 936), 499, (float)v3);
}