//
// EditLevelLayer::uploadActionFailed from 0x1001fe870 to 0x1001fe922 (178 bytes)
//
// 2 xrefs:
// > sub_1001FE940 @ 0x1001fe94c
// > ??> @ 0x1008da820
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EditLevelLayer::uploadActionFailed(EditLevelLayer *a1, int a2, int a3)
{
GJGameLevel *m_level; // rax
UploadActionPopup *m_descriptionPopup; // rbx
_QWORD v5[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
m_level = a1->m_level;
if ( m_level )
{
if ( m_level->m_levelID.random - m_level->m_levelID.seed == a2 )
{
m_descriptionPopup = a1->m_descriptionPopup;
if ( m_descriptionPopup )
{
__p = operator new(0x20u);
v5[0] = 33;
v5[1] = 31;
strcpy((char *)__p, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(m_descriptionPopup, v5);
if ( (v5[0] & 1) != 0 )
operator delete(__p);
a1->m_descriptionPopup->m_delegate = nullptr;
a1->m_descriptionPopup = nullptr;
}
}
}
}