//
// GJRateLevelLayer::uploadActionFailed from 0x100506ba0 to 0x100506c49 (169 bytes)
//
// 2 xrefs:
// > sub_100506C70 @ 0x100506c7c
// > ??> @ 0x100b65930
//
// 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 12:31:32 +0000
//
__int64 __fastcall GJRateLevelLayer::uploadActionFailed(__int64 a1, int a2)
{
__int64 result; // rax
__int64 v3; // rbx
_QWORD v4[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
result = *(_QWORD *)(a1 + 1048);
if ( *(_DWORD *)(result + 328) - *(_DWORD *)(result + 332) == a2 )
{
v3 = *(_QWORD *)(a1 + 1096);
if ( v3 )
{
__p = operator new(0x20u);
v4[0] = 33;
v4[1] = 31;
strcpy((char *)__p, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(v3, (__int64)v4, 1.133375894043806e-153);
if ( (v4[0] & 1) != 0 )
operator delete(__p);
result = *(_QWORD *)(a1 + 1096);
*(_QWORD *)(result + 664) = 0;
*(_QWORD *)(a1 + 1096) = 0;
}
}
return result;
}