//
// UpdateAccountSettingsPopup::onClose from 0x1403a0c50 to 0x1403a0cca (122 bytes)
//
// 3 xrefs:
// > UpdateAccountSettingsPopup::keyBackClicked @ 0x1403a0cd9
// > UpdateAccountSettingsPopup::init @ 0x1403a0957
// > ??> @ 0x1409235a0
//
// 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:31:17 +0000
//
__int64 __fastcall UpdateAccountSettingsPopup::onClose(__int64 a1)
{
__int64 v2; // rdx
__int64 result; // rax
__int64 v4; // rcx
__int64 *v5; // rbx
__int64 v6; // rdx
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 992LL))(a1, 0);
LOBYTE(v2) = 1;
result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 520LL))(a1, v2);
if ( *(_BYTE *)(a1 + 672) )
{
v4 = *(_QWORD *)(a1 + 680);
if ( v4 )
{
GJAccountSettingsLayer::updateScoreValues(v4);
v5 = *(__int64 **)(a1 + 680);
GJAccountSettingsLayer::closeAccInputNodes((__int64)v5, v5[86]);
(*(void (__fastcall **)(__int64 *, _QWORD))(*v5 + 992))(v5, 0);
LOBYTE(v6) = 1;
return (*(__int64 (__fastcall **)(__int64 *, __int64))(*v5 + 520))(v5, v6);
}
}
return result;
}