//
// sub_100378994 from 0x100378994 to 0x100378a40 (172 bytes)
//
// 2 xrefs:
// > FriendRequestPopup::FLAlert_Clicked @ 0x100379084
// > sub_100378260 @ 0x100378674
//
// 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_100378994(__int64 a1)
{
int v2; // w20
__int64 v3; // x0
__int64 v4; // x1
__int64 result; // x0
char *v6; // x1
char *v7; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
v2 = *(unsigned __int8 *)(a1 + 689);
v3 = GameLevelManager::sharedState();
v4 = *(unsigned int *)(*(_QWORD *)(a1 + 696) + 320LL);
if ( v2 == 1 )
{
result = sub_1000C9D5C(v3, v4);
if ( (result & 1) == 0 )
return result;
}
else
{
result = sub_1000C9D68(v3, v4, 0, 0);
if ( !(_DWORD)result )
return result;
}
if ( *(_BYTE *)(a1 + 689) )
v6 = "Removing Friend Request...";
else
v6 = "Ignoring Request...";
sub_100009900(__p, v6);
v7 = UploadActionPopup::create(a1 + 672, (__int64)__p);
*(_QWORD *)(a1 + 720) = v7;
if ( v9 < 0 )
{
operator delete(__p[0]);
v7 = *(char **)(a1 + 720);
}
return (*(__int64 (__fastcall **)(char *))(*(_QWORD *)v7 + 1312LL))(v7);
}