//
// GJMessagePopup::uploadActionFinished from 0xa2c284 to 0xa2c440 (444 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJMessagePopup::uploadActionFinished @ 0xa2c444
// > ??> @ 0x82150
// > ??> @ 0x147f360
//
// 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 GJMessagePopup::uploadActionFinished(GJMessagePopup *this, int a2, int a3)
{
__int64 v4; // x0
__int64 v7; // x0
const char *v8; // x1
__int64 v9; // x22
size_t v10; // x0
__int64 v11; // x0
char *v12; // [xsp+38h] [xbp+38h]
__int64 v13; // [xsp+48h] [xbp+48h] BYREF
__int64 v14; // [xsp+50h] [xbp+50h]
void *v15; // [xsp+58h] [xbp+58h]
__int64 v16[2]; // [xsp+60h] [xbp+60h] BYREF
void *v17; // [xsp+70h] [xbp+70h]
v4 = *((_QWORD *)this + 89);
if ( *(_DWORD *)(v4 + 316) != a2 )
{
if ( a3 != 40 )
return _stack_chk_guard;
if ( a2 != *(_DWORD *)(v4 + 320) )
return _stack_chk_guard;
v11 = *((_QWORD *)this + 92);
*((_BYTE *)this + 696) = 1;
if ( !v11 )
return _stack_chk_guard;
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Unknown action", 0xEu);
LABEL_16:
std::string::assign(&v13, "User blocked!");
goto LABEL_7;
}
v7 = *((_QWORD *)this + 92);
*((_BYTE *)this + 696) = 1;
if ( !v7 )
return _stack_chk_guard;
v13 = 0;
v14 = 0;
v15 = nullptr;
std::string::__init(&v13, "Unknown action", 0xEu);
if ( a3 == 45 )
{
std::string::assign(&v13, "Message removed");
goto LABEL_7;
}
if ( a3 == 40 )
goto LABEL_16;
LABEL_7:
v8 = (char *)&v13 + 1;
v9 = *((_QWORD *)this + 92);
if ( (v13 & 1) != 0 )
v8 = (const char *)v15;
v12 = (char *)v8;
v16[0] = 0;
v16[1] = 0;
v17 = nullptr;
v10 = strlen(v8);
std::string::__init(v16, v12, v10);
UploadActionPopup::showSuccessMessage(v9, (__int64)v16);
if ( (v16[0] & 1) != 0 )
operator delete(v17);
if ( (v13 & 1) != 0 )
operator delete(v15);
return _stack_chk_guard;
}