//
// FriendRequestPopup::uploadActionFinished from 0x5dbd44 to 0x5dbe24 (224 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'FriendRequestPopup::uploadActionFinished @ 0x5dbe3c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:12 +0000
//
int __fastcall FriendRequestPopup::uploadActionFinished(int this, int a2, int a3)
{
int v4; // r5
int v5; // r2
char *v6; // r1
int v7; // r8
const char *v8; // r7
size_t v9; // r0
int v10; // r2
int v11; // r3
char v12[4]; // [sp+4h] [bp-1Ch] BYREF
int v13; // [sp+8h] [bp-18h]
const char *v14; // [sp+Ch] [bp-14h]
int v15[3]; // [sp+10h] [bp-10h] BYREF
v4 = this;
v5 = *(_DWORD *)(this + 536);
if ( v5 && (*(_DWORD *)(v5 + 264) == a2 || *(_DWORD *)(v5 + 268) == a2) )
{
*(_BYTE *)(this + 532) = 1;
if ( *(_DWORD *)(this + 548) )
{
*(_DWORD *)v12 = 0;
v13 = 0;
v14 = nullptr;
std::string::__init((int *)v12, "Unknown action", 0xEu);
switch ( a3 )
{
case '$':
v6 = "Request removed";
break;
case '%':
v6 = "Friend added!";
break;
case '(':
v6 = "User blocked!";
break;
default:
goto LABEL_8;
}
std::string::assign((int *)v12, v6);
LABEL_8:
v7 = *(_DWORD *)(v4 + 548);
if ( (v12[0] & 1) != 0 )
v8 = v14;
else
v8 = &v12[1];
memset(v15, 0, sizeof(v15));
v9 = strlen(v8);
std::string::__init(v15, v8, v9);
UploadActionPopup::showSuccessMessage(v7, (const char *)v15, v10, v11);
std::string::~string((int)v15);
return std::string::~string((int)v12);
}
}
return this;
}