//
// EditLevelLayer::uploadActionFailed from 0x7ed8b0 to 0x7ed9cc (284 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditLevelLayer::uploadActionFailed @ 0x7ed9d0
// > ??> @ 0xe6278
// > ??> @ 0x143c970
//
// 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:33 +0000
//
__int64 __fastcall EditLevelLayer::uploadActionFailed(EditLevelLayer *this, int a2)
{
__int64 v3; // x0
__int64 v5; // x21
_QWORD v6[2]; // [xsp+30h] [xbp+30h] BYREF
void *v7; // [xsp+40h] [xbp+40h]
v3 = *((_QWORD *)this + 59);
if ( v3 )
{
if ( a2 == *(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332) )
{
v5 = *((_QWORD *)this + 66);
if ( v5 )
{
v7 = (void *)operator new(0x20u);
v6[0] = 33;
v6[1] = 31;
strcpy((char *)v7, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(v5, v6);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
*(_QWORD *)(*((_QWORD *)this + 66) + 664LL) = 0;
*((_QWORD *)this + 66) = 0;
}
}
}
return _stack_chk_guard;
}