//
// PlatformerControlsPopup::uploadActionFailed from 0xcfa128 to 0xcfa250 (296 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'PlatformerControlsPopup::uploadActionFailed @ 0xcfa254
// > ??> @ 0xc1d68
// > ??> @ 0x1505bb8
//
// 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 13:06:50 +0000
//
__int64 __fastcall PlatformerControlsPopup::uploadActionFailed(PlatformerControlsPopup *this, int a2, int a3)
{
__int64 v5; // x0
__int64 v6; // x21
_QWORD v7[2]; // [xsp+30h] [xbp+30h] BYREF
void *v8; // [xsp+40h] [xbp+40h]
if ( (unsigned int)(a3 - 28) <= 1 )
{
v5 = *((_QWORD *)this + 131);
if ( v5 )
{
if ( a2 == *(_DWORD *)(v5 + 328) - *(_DWORD *)(v5 + 332) )
{
v6 = *((_QWORD *)this + 149);
if ( v6 )
{
v8 = (void *)operator new(0x20u);
v7[0] = 33;
v7[1] = 31;
strcpy((char *)v8, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(v6, (char *)v7);
if ( (v7[0] & 1) != 0 )
operator delete(v8);
*(_QWORD *)(*((_QWORD *)this + 149) + 664LL) = 0;
*((_QWORD *)this + 149) = 0;
}
}
}
}
return _stack_chk_guard;
}