//
// SetupAudioLineGuidePopup::selectSettingClosed from 0x100584450 to 0x1005844e4 (148 bytes)
//
// 2 xrefs:
// > sub_100584500 @ 0x10058450c
// > ??> @ 0x100969b80
//
// 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
//
void __fastcall SetupAudioLineGuidePopup::selectSettingClosed(SetupAudioLineGuidePopup *a1, SelectSettingLayer *a2)
{
int SelectedValue; // r14d
cocos2d::CCSprite *m_speedSprite; // r15
cocos2d::CCSpriteFrameCache *v4; // r12
const char *v5; // rsi
cocos2d::CCSpriteFrame *v6; // rax
char v7; // [rsp+0h] [rbp-40h] BYREF
char v8; // [rsp+1h] [rbp-3Fh] BYREF
void *__p; // [rsp+10h] [rbp-30h]
SelectedValue = SelectSettingLayer::getSelectedValue(a2);
m_speedSprite = a1->m_speedSprite;
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
SelectSettingLayer::getSelectedFrame((__int64)&v7, (__int64)a2);
if ( (v7 & 1) != 0 )
v5 = (const char *)__p;
else
v5 = &v8;
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_speedSprite->setDisplayFrame)(
m_speedSprite,
v6);
if ( (v7 & 1) != 0 )
operator delete(__p);
SetupTriggerPopup::updateValue(a1, 499, (float)SelectedValue);
}