//
// FriendRequestPopup::uploadActionFailed from 0xa29540 to 0xa29660 (288 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'FriendRequestPopup::uploadActionFailed @ 0xa29664
// > ??> @ 0x6c9b8
// > ??> @ 0x147eba8
//
// 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:43 +0000
//
__int64 __fastcall FriendRequestPopup::uploadActionFailed(FriendRequestPopup *this, int a2)
{
__int64 v3; // x0
UploadActionPopup *v5; // x21
int v6; // w21
_QWORD v7[2]; // [xsp+30h] [xbp+30h] BYREF
void *v8; // [xsp+40h] [xbp+40h]
v3 = *((_QWORD *)this + 87);
if ( v3 && (*(_DWORD *)(v3 + 316) == a2 || a2 == *(_DWORD *)(v3 + 320)) )
{
v5 = *((UploadActionPopup **)this + 90);
if ( v5 )
{
v8 = (void *)operator new(0x20u);
v7[0] = 33;
v7[1] = 31;
strcpy((char *)v8, "Failed. Please try again later.");
v6 = (unsigned __int8)UploadActionPopup::showFailMessageOrDismiss(v5, (char *)v7);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
if ( v6 )
*((_QWORD *)this + 90) = 0;
}
}
return _stack_chk_guard;
}