//
// SetupAudioLineGuidePopup::selectSettingClosed from 0x1005b08c0 to 0x1005b0954 (148 bytes)
//
// 2 xrefs:
// > sub_1005B0970 @ 0x1005b097c
// > ??> @ 0x100b782e0
//
// 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 12:32:39 +0000
//
__int64 __fastcall SetupAudioLineGuidePopup::selectSettingClosed(_QWORD *a1, __int64 a2)
{
int SelectedValue; // r14d
__int64 v3; // r15
__int64 v4; // r12
const char *v5; // rsi
__int64 v6; // rax
char v8; // [rsp+0h] [rbp-40h] BYREF
char v9; // [rsp+1h] [rbp-3Fh] BYREF
void *__p; // [rsp+10h] [rbp-30h]
SelectedValue = SelectSettingLayer::getSelectedValue(a2);
v3 = a1[128];
v4 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();
SelectSettingLayer::getSelectedFrame((__int64)&v8, a2);
if ( (v8 & 1) != 0 )
v5 = (const char *)__p;
else
v5 = &v9;
v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v4, v5);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 1160LL))(v3, v6);
if ( (v8 & 1) != 0 )
operator delete(__p);
return SetupTriggerPopup::updateValue(a1, 0x1F3u, (float)SelectedValue);
}