//
// ProfilePage::uploadActionFinished from 0x10019bf54 to 0x10019c02c (216 bytes)
//
// 2 xrefs:
// > sub_10019C060 @ 0x10019c064
// > ??> @ 0x1007a8ef8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall ProfilePage::uploadActionFinished(ProfilePage *a1, int a2, int a3)
{
const std::string::value_type *v5; // x1
UploadActionPopup *m_popupDelegate; // x19
std::string *v7; // x1
void *__p[2]; // [xsp+0h] [xbp-40h] BYREF
char v9; // [xsp+17h] [xbp-29h]
std::string v10; // [xsp+18h] [xbp-28h] BYREF
if ( a1->m_accountID != a2 || !a1->m_popupDelegate )
return;
sub_100009900(&v10, "Unknown action finished");
switch ( a3 )
{
case 34:
v5 = "User blocked";
goto LABEL_9;
case 33:
v5 = "Friend removed";
goto LABEL_9;
case 30:
v5 = "Request removed";
LABEL_9:
std::string::assign(&v10, v5);
break;
}
m_popupDelegate = a1->m_popupDelegate;
if ( (v10.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v7 = &v10;
else
v7 = (std::string *)v10.__r_.__value_.__r.__words[0];
sub_100009900(__p, (char *)v7);
UploadActionPopup::showSuccessMessage(m_popupDelegate, __p);
if ( v9 < 0 )
operator delete(__p[0]);
if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v10.__r_.__value_.__l.__data_);
}