//
// EditLevelLayer::uploadActionFinished from 0x7ee8a8 to 0x7ee9f0 (328 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x7ee9f4
// > ??> @ 0x47800
// > ??> @ 0x143c968
//
// 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:54:34 +0000
//
__int64 __fastcall EditLevelLayer::uploadActionFinished(EditLevelLayer *this, int a2)
{
__int64 v3; // x0
char *v5; // x21
__int64 v6; // x23
size_t v7; // x0
char v8; // w0
__int64 v9[2]; // [xsp+48h] [xbp+48h] BYREF
void *v10; // [xsp+58h] [xbp+58h]
__int64 v11[2]; // [xsp+60h] [xbp+60h] BYREF
void *v12; // [xsp+70h] [xbp+70h]
v3 = *((_QWORD *)this + 59);
if ( v3 && a2 == *(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332) && *((_QWORD *)this + 66) )
{
v5 = (char *)v9 + 1;
v9[0] = 0;
v9[1] = 0;
v10 = nullptr;
std::string::__init(v9, "Description updated!", 0x14u);
v6 = *((_QWORD *)this + 66);
if ( (v9[0] & 1) != 0 )
v5 = (char *)v10;
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
v7 = strlen(v5);
std::string::__init(v11, v5, v7);
UploadActionPopup::showSuccessMessage(v6, v11);
if ( (v11[0] & 1) != 0 )
operator delete(v12);
v8 = v9[0];
*(_QWORD *)(*((_QWORD *)this + 66) + 664LL) = 0;
*((_QWORD *)this + 66) = 0;
if ( (v8 & 1) != 0 )
operator delete(v10);
}
return _stack_chk_guard;
}