//
// SocialLinksPopup::onClose from 0xa1c0fc to 0xa1c1a0 (164 bytes)
//
// 4 xrefs:
// > SocialLinksPopup::keyBackClicked @ 0xa1c1a4
// > ??> @ 0x46108
// > SocialLinksPopup::init @ 0xa367e0
// > ??> @ 0x1541530
//
// This function is hookable on this platform (idp: arm, 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:59:37 +0000
//
__int64 __fastcall SocialLinksPopup::onClose(SocialLinksPopup *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
unsigned int *v4; // x1
char *v5; // x19
__int64 v6; // x0
char *v7; // x21
__int64 *v8; // x1
__int64 v9; // x2
__int64 *v10; // x0
v3 = *((_QWORD *)this + 84);
if ( v3 )
{
v4 = *(unsigned int **)(v3 + 56);
if ( *v4 )
{
v5 = *((char **)v4 + 2);
v6 = 8LL * *v4 - 8;
v7 = &v5[v6];
while ( v7 >= v5 )
{
v8 = *(__int64 **)v5;
if ( !*(_QWORD *)v5 )
break;
v9 = *v8;
v10 = *(__int64 **)v5;
v8[73] = 0;
v5 += 8;
(*(void (__fastcall **)(__int64 *, _QWORD))(v9 + 1160))(v10, 0);
}
}
}
(*(void (__fastcall **)(SocialLinksPopup *, _QWORD))(*(_QWORD *)this + 1072LL))(this, 0);
return (*(__int64 (__fastcall **)(SocialLinksPopup *, __int64))(*(_QWORD *)this + 528LL))(this, 1);
}