//
// FriendRequestPopup::uploadActionFailed from 0x100378ef4 to 0x100378f80 (140 bytes)
//
// 2 xrefs:
// > sub_100378F9C @ 0x100378fa0
// > ??> @ 0x100934d78
//
// 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
//
void __fastcall FriendRequestPopup::uploadActionFailed(__int64 a1, int a2)
{
__int64 v2; // x8
__int64 v4; // x20
int v5; // w0
char v6; // w20
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
v2 = *(_QWORD *)(a1 + 696);
if ( v2 && (*(_DWORD *)(v2 + 316) == a2 || *(_DWORD *)(v2 + 320) == a2) )
{
v4 = *(_QWORD *)(a1 + 720);
if ( v4 )
{
sub_100009900(__p, "Failed. Please try again later.");
v5 = sub_10037785C(v4, (__int64)__p);
v6 = v5;
if ( v8 < 0 )
{
operator delete(__p[0]);
if ( (v6 & 1) == 0 )
return;
}
else if ( !v5 )
{
return;
}
*(_QWORD *)(a1 + 720) = 0;
}
}
}