//
// EditLevelLayer::uploadActionFinished from 0x4a00a0 to 0x4a015e (190 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditLevelLayer::uploadActionFinished @ 0x4a016c
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:49:49 +0000
//
int __fastcall EditLevelLayer::uploadActionFinished(int this, int a2, int a3)
{
char *v3; // r8
int v4; // r6
int v5; // r2
int v6; // r9
size_t v7; // r0
int v8[2]; // [sp+4h] [bp-20h] BYREF
char *v9; // [sp+Ch] [bp-18h]
int v10[3]; // [sp+10h] [bp-14h] BYREF
v4 = this;
v5 = *(_DWORD *)(this + 348);
if ( v5 && *(_DWORD *)(v5 + 268) - *(_DWORD *)(v5 + 272) == a2 && *(_DWORD *)(this + 380) )
{
v8[0] = 0;
v8[1] = 0;
v9 = nullptr;
std::string::__init(v8, "Description updated!", 0x14u);
v10[0] = 0;
v10[1] = 0;
if ( (v8[0] & 1) == 0 )
v3 = (char *)v8 + 1;
v10[2] = 0;
if ( (v8[0] & 1) != 0 )
v3 = v9;
v6 = *(_DWORD *)(v4 + 380);
v7 = strlen(v3);
std::string::__init(v10, v3, v7);
UploadActionPopup::showSuccessMessage(v6, v10);
std::string::~string((int)v10);
*(_DWORD *)(*(_DWORD *)(v4 + 380) + 520) = 0;
*(_DWORD *)(v4 + 380) = 0;
return std::string::~string((int)v8);
}
return this;
}