//
// InfoLayer::commentUploadFailed from 0x100353114 to 0x1003531c4 (176 bytes)
//
// 2 xrefs:
// > sub_1003531E0 @ 0x1003531e4
// > ??> @ 0x1007f3470
//
// 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 InfoLayer::commentUploadFailed(InfoLayer *a1, int a2, CommentError a3)
{
_DWORD *m_levelList; // x8
__int64 v4; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v6; // [xsp+1Fh] [xbp-11h]
if ( !a1->m_score )
{
m_levelList = a1->m_levelList;
if ( m_levelList )
{
LODWORD(m_levelList) = -m_levelList[86];
}
else
{
m_levelList = a1->m_level;
if ( m_levelList )
LODWORD(m_levelList) = m_levelList[82] - m_levelList[83];
}
if ( !a3 && (_DWORD)m_levelList == a2 )
{
sub_100009900(__p, "Comment upload failed. Please try again later.");
v4 = sub_1002ABCCC(0, (__int64)"Failed", (__int64)__p, (__int64)"OK", 0);
if ( v6 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4);
}
}
}