//
// PlatformerControlsPopup::uploadActionFailed from 0x140451eb0 to 0x140451f9e (238 bytes)
//
// 4 xrefs:
// > ??> @ 0x1407948f0
// > ??> @ 0x1408cc9e0
// > ??> @ 0x1408cc9f0
// > ??> @ 0x140927848
//
// This function is hookable on this platform (idp: pc, 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 11:32:27 +0000
//
__int64 __fastcall PlatformerControlsPopup::uploadActionFailed(__int64 a1, int a2, int a3)
{
__int64 result; // rax
__int64 v5; // r8
__int128 v6; // [rsp+20h] [rbp-28h] BYREF
__int64 v7; // [rsp+30h] [rbp-18h]
__int64 v8; // [rsp+38h] [rbp-10h]
result = (unsigned int)(a3 - 28);
if ( (unsigned int)result <= 1 )
{
v5 = *(_QWORD *)(a1 + 32);
if ( v5 )
{
result = (unsigned int)(*(_DWORD *)(v5 + 328) - *(_DWORD *)(v5 + 332));
if ( (_DWORD)result == a2 )
{
if ( *(_QWORD *)(a1 + 184) )
{
v6 = 0;
*(_QWORD *)&v6 = sub_14003D460(0x20u);
v7 = 31;
v8 = 31;
strcpy((char *)v6, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(*(_QWORD *)(a1 + 184), &v6);
result = *(_QWORD *)(a1 + 184);
*(_QWORD *)(result + 664) = 0;
*(_QWORD *)(a1 + 184) = 0;
}
}
}
}
return result;
}