//
// SFXSettingsPopup::onClose from 0x1004347e0 to 0x100434852 (114 bytes)
//
// 1 xrefs:
// > ??> @ 0x100b435c0
//
// 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:30:23 +0000
//
__int64 __fastcall SFXSettingsPopup::onClose(__int64 a1, __int64 a2, __int64 a3)
{
__int64 v3; // rax
__int64 v4; // rcx
unsigned int v5; // edx
__int64 v6; // rdx
__int64 v7; // rdx
if ( *(_BYTE *)(a1 + 1128) != 1 )
return SetupTriggerPopup::onClose(a1, a2, a3);
v3 = *(_QWORD *)(a1 + 1120);
if ( !v3 )
return SetupTriggerPopup::onClose(a1, a2, a3);
v4 = *(_QWORD *)(v3 + 712);
if ( !v4 )
return SetupTriggerPopup::onClose(a1, a2, a3);
v5 = *(unsigned __int8 *)(v4 + 104);
if ( (v5 & 1) != 0 )
v6 = *(_QWORD *)(v4 + 112);
else
v6 = v5 >> 1;
if ( !v6 )
return SetupTriggerPopup::onClose(a1, a2, 0);
*(_DWORD *)(v4 + 96) = 0;
sub_100495650(v3);
return SetupTriggerPopup::onClose(a1, a2, v7);
}