//
// GJMessageCell::uploadActionFinished from 0x743114 to 0x7432ac (408 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'GJMessageCell::uploadActionFinished @ 0x7432b0
// > ??> @ 0x74200
// > ??> @ 0x1431ff8
//
// 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:52:45 +0000
//
__int64 __fastcall GJMessageCell::uploadActionFinished(GJMessageCell *this, int a2, int a3)
{
const char *v5; // x1
__int64 v6; // x22
size_t v7; // x0
char v8; // w0
char *v10; // [xsp+38h] [xbp+38h]
__int64 v11[2]; // [xsp+48h] [xbp+48h] BYREF
void *v12; // [xsp+58h] [xbp+58h]
__int64 v13[2]; // [xsp+60h] [xbp+60h] BYREF
void *v14; // [xsp+70h] [xbp+70h]
if ( *(_DWORD *)(*((_QWORD *)this + 72) + 316LL) == a2 && *((_QWORD *)this + 73) )
{
v11[0] = 33;
v12 = (void *)operator new(0x20u);
v11[1] = 23;
strcpy((char *)v12, "Unknown action finished");
if ( a3 == 45 )
std::string::assign(v11, "Message removed!");
v5 = (char *)v11 + 1;
v6 = *((_QWORD *)this + 73);
if ( (v11[0] & 1) != 0 )
v5 = (const char *)v12;
v10 = (char *)v5;
v13[0] = 0;
v13[1] = 0;
v14 = nullptr;
v7 = strlen(v5);
std::string::__init(v13, v10, v7);
UploadActionPopup::showSuccessMessage(v6, v13);
if ( (v13[0] & 1) != 0 )
operator delete(v14);
v8 = v11[0];
*(_QWORD *)(*((_QWORD *)this + 73) + 664LL) = 0;
*((_QWORD *)this + 73) = 0;
if ( (v8 & 1) != 0 )
operator delete(v12);
}
return _stack_chk_guard;
}