//
// sub_1003781C0 from 0x1003781c0 to 0x100378234 (116 bytes)
//
// 4 xrefs:
// > FriendRequestPopup::keyBackClicked @ 0x100378db8
// > sub_100378DBC @ 0x100378dc0
// > FriendRequestPopup::onClosePopup @ 0x100379008
// > FriendRequestPopup::init @ 0x100377e2c
//
// 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:26 +0000
//
__int64 __fastcall sub_1003781C0(__int64 a1)
{
__int64 v2; // x8
__int64 v3; // x0
if ( (*(_BYTE *)(a1 + 689) & 1) == 0 )
{
v2 = *(_QWORD *)(a1 + 696);
if ( v2 )
{
if ( (*(_BYTE *)(v2 + 376) & 1) == 0 )
{
v3 = GameLevelManager::sharedState();
sub_1000CA584(v3, *(_DWORD *)(*(_QWORD *)(a1 + 696) + 316LL));
*(_BYTE *)(*(_QWORD *)(a1 + 696) + 376LL) = 1;
}
}
}
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);
return (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);
}