//
// SocialLinksPopup::onClose from 0x1403a0020 to 0x1403a00b5 (149 bytes)
//
// 5 xrefs:
// > SocialLinksPopup::keyBackClicked @ 0x1403a00c9
// > SocialLinksPopup::init @ 0x14039f5cd
// > ??> @ 0x1408bf698
// > ??> @ 0x1408bf6f0
// > ??> @ 0x14092351c
//
// 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 SocialLinksPopup::onClose(_QWORD *a1)
{
__int64 v1; // rax
unsigned int *v3; // rbx
__int64 v4; // rax
__int64 **v5; // rbx
__int64 **i; // rdi
__int64 *v7; // rcx
__int64 v8; // rax
__int64 v9; // rdx
v1 = a1[84];
if ( v1 )
{
v3 = *(unsigned int **)(v1 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v5 = *((__int64 ***)v3 + 2);
for ( i = &v5[v4 - 1]; v5 <= i; ++v5 )
{
v7 = *v5;
if ( !*v5 )
break;
v8 = *v7;
v7[75] = 0;
(*(void (__fastcall **)(__int64 *, _QWORD))(v8 + 1032))(v7, 0);
}
}
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 992LL))(a1, 0);
LOBYTE(v9) = 1;
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 520LL))(a1, v9);
}