//
// SetupSFXPopup::pageChanged from 0x1405dd970 to 0x1405dd9d2 (98 bytes)
//
// 2 xrefs:
// > ??> @ 0x1407feaa8
// > ??> @ 0x14092ecb8
//
// 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 11:34:59 +0000
//
__int64 __fastcall SetupSFXPopup::pageChanged(__int64 a1)
{
__int64 result; // rax
__int64 v3; // rdx
__int64 v4; // rcx
int v5; // eax
result = SetupTriggerPopup::updateValue(a1, 427);
v4 = *(_QWORD *)(a1 + 1032);
if ( v4 )
{
v5 = *(_DWORD *)(a1 + 904);
if ( v5 < 2 || v5 == 4 )
{
LOBYTE(v3) = 1;
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 336LL))(v4, v3);
}
else
{
return (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v4 + 336LL))(v4, 0);
}
}
return result;
}