//
// RateDemonLayer::uploadActionFailed from 0xa84238 to 0xa8434c (276 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'RateDemonLayer::uploadActionFailed @ 0xa84350
// > ??> @ 0x99838
// > ??> @ 0x1497fc8
//
// 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:00:33 +0000
//
__int64 __fastcall RateDemonLayer::uploadActionFailed(RateDemonLayer *this, int a2, int a3)
{
__int64 v5; // x21
_QWORD v6[2]; // [xsp+30h] [xbp+30h] BYREF
void *v7; // [xsp+40h] [xbp+40h]
if ( a3 == 56 && *((_DWORD *)this + 178) == a2 )
{
v5 = *((_QWORD *)this + 91);
if ( v5 )
{
v7 = (void *)operator new(0x20u);
v6[0] = 33;
v6[1] = 31;
strcpy((char *)v7, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(v5, (char *)v6);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
*(_QWORD *)(*((_QWORD *)this + 91) + 664LL) = 0;
*((_QWORD *)this + 91) = 0;
}
}
return _stack_chk_guard;
}