//
// GJRateLevelLayer::uploadActionFailed from 0x566544 to 0x5665bc (120 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'GJRateLevelLayer::uploadActionFailed @ 0x5665c8
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:52:28 +0000
//
int __fastcall GJRateLevelLayer::uploadActionFailed(GJRateLevelLayer *this, int a2, int a3)
{
int v4; // r0
int v5; // r2
int result; // r0
int v7; // r7
int v8[3]; // [sp+0h] [bp-14h] BYREF
v4 = *((_DWORD *)this + 182);
v5 = *(_DWORD *)(v4 + 268);
result = *(_DWORD *)(v4 + 272);
if ( a2 == v5 - result )
{
v7 = *((_DWORD *)this + 189);
if ( v7 )
{
memset(v8, 0, sizeof(v8));
std::string::__init(v8, "Failed. Please try again later.", 0x1Fu);
UploadActionPopup::showFailMessage(v7, v8);
result = std::string::~string((int)v8);
*(_DWORD *)(*((_DWORD *)this + 189) + 520) = 0;
*((_DWORD *)this + 189) = 0;
}
}
return result;
}