//
// ProfilePage::commentUploadFailed from 0x1007c0d00 to 0x1007c0da3 (163 bytes)
//
// 2 xrefs:
// > sub_1007C0DC0 @ 0x1007c0dc5
// > ??> @ 0x1009942e8
//
// 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 ProfilePage::commentUploadFailed(ProfilePage *a1, int a2, CommentError a3)
{
GJAccountManager *v3; // rax
__int64 v4; // rbx
__int128 v5; // [rsp+0h] [rbp-20h] BYREF
void *__p; // [rsp+10h] [rbp-10h]
v3 = GJAccountManager::sharedState();
if ( v3->m_accountID - v3->m_unkInt1 == a2 )
{
__p = operator new(0x30u);
*(_QWORD *)&v5 = 49;
*((_QWORD *)&v5 + 1) = 46;
strcpy((char *)__p, "Comment upload failed. Please try again later.");
v4 = sub_10049B0F0(0, (__int64)"Failed", &v5, (__int64)"OK", 0, 2.438129814130629e-152);
if ( (v5 & 1) != 0 )
operator delete(__p);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1288LL))(v4);
}
}