//
// ProfilePage::uploadActionFinished from 0xa5cbdc to 0xa5cd98 (444 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ProfilePage::uploadActionFinished @ 0xa5cd9c
// > ??> @ 0x94240
// > ??> @ 0x148d038
//
// 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 13:00:12 +0000
//
__int64 __fastcall ProfilePage::uploadActionFinished(ProfilePage *this, int a2, int a3)
{
const char *v6; // x1
__int64 v7; // x23
size_t v8; // x0
char *v9; // [xsp+48h] [xbp+48h]
__int64 v10[2]; // [xsp+58h] [xbp+58h] BYREF
void *v11; // [xsp+68h] [xbp+68h]
__int64 v12[2]; // [xsp+70h] [xbp+70h] BYREF
void *v13; // [xsp+80h] [xbp+80h]
if ( *((_DWORD *)this + 184) == a2 )
{
if ( *((_QWORD *)this + 109) )
{
v10[0] = 0;
v10[1] = 0;
v11 = nullptr;
std::string::__init(v10, "Unknown action finished", 0x17u);
switch ( a3 )
{
case '$':
std::string::assign(v10, "Request removed");
break;
case '\'':
std::string::assign(v10, "Friend removed");
break;
case '(':
std::string::assign(v10, "User blocked");
break;
case ')':
std::string::assign(v10, "User unblocked");
break;
}
v6 = (char *)v10 + 1;
v7 = *((_QWORD *)this + 109);
if ( (v10[0] & 1) != 0 )
v6 = (const char *)v11;
v9 = (char *)v6;
v12[0] = 0;
v12[1] = 0;
v13 = nullptr;
v8 = strlen(v6);
std::string::__init(v12, v9, v8);
UploadActionPopup::showSuccessMessage(v7, (__int64)v12);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
if ( (v10[0] & 1) != 0 )
operator delete(v11);
}
if ( a3 == 41 )
ProfilePage::onUpdate(this, nullptr);
}
return _stack_chk_guard;
}