//
// FriendRequestPopup::uploadActionFinished from 0xa2c0dc to 0xa2c27c (416 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'FriendRequestPopup::uploadActionFinished @ 0xa2c280
// > ??> @ 0xb81b0
// > ??> @ 0x147eba0
//
// 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:45 +0000
//
__int64 __fastcall FriendRequestPopup::uploadActionFinished(FriendRequestPopup *this, int a2, int a3)
{
__int64 v5; // x0
__int64 v7; // x0
const char *v8; // x1
__int64 v9; // x22
size_t v10; // x0
char *v11; // [xsp+38h] [xbp+38h]
__int64 v12[2]; // [xsp+48h] [xbp+48h] BYREF
void *v13; // [xsp+58h] [xbp+58h]
__int64 v14[2]; // [xsp+60h] [xbp+60h] BYREF
void *v15; // [xsp+70h] [xbp+70h]
v5 = *((_QWORD *)this + 87);
if ( v5 && (*(_DWORD *)(v5 + 316) == a2 || a2 == *(_DWORD *)(v5 + 320)) )
{
v7 = *((_QWORD *)this + 90);
*((_BYTE *)this + 688) = 1;
if ( v7 )
{
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
std::string::__init(v12, "Unknown action", 0xEu);
switch ( a3 )
{
case '$':
std::string::assign(v12, "Request removed");
break;
case '%':
std::string::assign(v12, "Friend added!");
break;
case '(':
std::string::assign(v12, "User blocked!");
break;
}
v8 = (char *)v12 + 1;
v9 = *((_QWORD *)this + 90);
if ( (v12[0] & 1) != 0 )
v8 = (const char *)v13;
v11 = (char *)v8;
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v10 = strlen(v8);
std::string::__init(v14, v11, v10);
UploadActionPopup::showSuccessMessage(v9, (__int64)v14);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
}
}
return _stack_chk_guard;
}