//
// SetupAudioLineGuidePopup::selectSettingClosed from 0xa44038 to 0xa44170 (312 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'SetupAudioLineGuidePopup::selectSettingClosed @ 0xa44174
// > ??> @ 0xb2c68
// > ??> @ 0x11e8510
//
// 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 SetupAudioLineGuidePopup::selectSettingClosed(SetupAudioLineGuidePopup *a1, SelectSettingLayer *a2)
{
int SelectedValue; // w0
cocos2d::CCSprite *m_speedSprite; // x21
int v5; // w22
void (__fastcall *setDisplayFrame)(cocos2d::CCSprite *__hidden, cocos2d::CCSpriteFrame *); // x23
cocos2d::CCSpriteFrameCache *v7; // x24
cocos2d::CCSpriteFrame *v8; // x0
char *v9; // x0
unsigned int *v10; // x2
int v11; // w1
char *v13; // [xsp+60h] [xbp+60h] BYREF
SelectedValue = SelectSettingLayer::getSelectedValue(a2);
m_speedSprite = a1->m_speedSprite;
v5 = SelectedValue;
setDisplayFrame = m_speedSprite->setDisplayFrame;
v7 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
SelectSettingLayer::getSelectedFrame(a2, (__int64)&v13);
v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, v13);
setDisplayFrame(m_speedSprite, v8);
v9 = v13 - 24;
if ( v13 - 24 != (char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v10 = (unsigned int *)(v13 - 8);
do
v11 = __ldaxr(v10);
while ( __stlxr(v11 - 1, v10) );
}
else
{
v11 = *((_DWORD *)v13 - 2);
*((_DWORD *)v13 - 2) = v11 - 1;
}
if ( v11 <= 0 )
operator delete(v9);
}
SetupTriggerPopup::updateValue(a1, 499, (float)v5);
}