//
// GJRequestCell::uploadActionFailed from 0x1001124a4 to 0x100112534 (144 bytes)
//
// 2 xrefs:
// > sub_100112550 @ 0x100112554
// > ??> @ 0x10078d5e8
//
// 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 *v5; // x0
GJFriendRequest *v6; // x0
UploadActionPopup *m_popup; // x20
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v9; // [xsp+1Fh] [xbp-11h]
if ( a1->m_score )
{
v5 = GameLevelManager::sharedState();
v6 = GameLevelManager::friendRequestFromAccountID(v5, a1->m_score->m_accountID);
if ( !v6 || v6->m_accountID == a2 )
{
m_popup = a1->m_popup;
if ( m_popup )
{
sub_100009900(__p, "Failed. Please try again later.");
UploadActionPopup::showFailMessage(m_popup, __p);
if ( v9 < 0 )
operator delete(__p[0]);
a1->m_popup->m_delegate = nullptr;
a1->m_popup = nullptr;
}
}
}
}