//
// sub_100376544 from 0x100376544 to 0x1003765d4 (144 bytes)
//
// 3 xrefs:
// > SocialLinksPopup::keyBackClicked @ 0x100376718
// > sub_10037671C @ 0x100376720
// > sub_100375C88 @ 0x100375eb4
//
// 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 11:03:25 +0000
//
__int64 __fastcall sub_100376544(_QWORD *a1)
{
__int64 v2; // x8
unsigned int *v3; // x9
__int64 v4; // x8
_QWORD **v5; // x20
unsigned __int64 v6; // x21
_QWORD *v7; // x0
v2 = a1[84];
if ( v2 )
{
v3 = *(unsigned int **)(v2 + 56);
v4 = *v3;
if ( (_DWORD)v4 )
{
v5 = *((_QWORD ***)v3 + 2);
v6 = (unsigned __int64)&v5[v4 - 1];
do
{
v7 = *v5;
if ( !*v5 )
break;
v7[73] = 0;
(*(void (__fastcall **)(_QWORD *, _QWORD))(*v7 + 1160LL))(v7, 0);
++v5;
}
while ( (unsigned __int64)v5 <= v6 );
}
}
(*(void (__fastcall **)(_QWORD *, _QWORD))(*a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(_QWORD *, __int64))(*a1 + 528LL))(a1, 1);
}