//
// GJRequestCell::uploadActionFailed from 0x100257ef0 to 0x100257fbb (203 bytes)
//
// 2 xrefs:
// > sub_100257FE0 @ 0x100257fec
// > ??> @ 0x1008e86a8
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJRequestCell::uploadActionFailed(GJRequestCell *a1, int a2, int a3)
{
GameLevelManager *v3; // rax
GJFriendRequest *v4; // rax
UploadActionPopup *m_popup; // r14
_QWORD v6[2]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
if ( a1->m_score )
{
v3 = GameLevelManager::sharedState();
v4 = GameLevelManager::friendRequestFromAccountID(v3, a1->m_score->m_accountID);
if ( !v4 || v4->m_accountID == a2 )
{
m_popup = a1->m_popup;
if ( m_popup )
{
__p = operator new(0x20u);
v6[0] = 33;
v6[1] = 31;
strcpy((char *)__p, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(m_popup, v6);
if ( (v6[0] & 1) != 0 )
operator delete(__p);
a1->m_popup->m_delegate = nullptr;
a1->m_popup = nullptr;
}
}
}
}