//
// ProfilePage::commentUploadFailed from 0x1008a7670 to 0x1008a7724 (180 bytes)
//
// 2 xrefs:
// > sub_1008A7740 @ 0x1008a7745
// > ??> @ 0x100ba9bf8
//
// 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:37:16 +0000
//
__int64 __fastcall ProfilePage::commentUploadFailed(__int64 a1, __int64 a2, int a3)
{
__int64 result; // rax
__int64 v5; // rbx
__int128 v6; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
result = GJAccountManager::sharedState(a1, a2);
if ( a3 == -1 && *(_DWORD *)(result + 352) - *(_DWORD *)(result + 356) == (_DWORD)a2 )
{
__p = operator new(0x30u);
*(_QWORD *)&v6 = 49;
*((_QWORD *)&v6 + 1) = 46;
strcpy((char *)__p, "Comment upload failed. Please try again later.");
v5 = sub_100493AB0(0, (__int64)"Failed", &v6, (__int64)"OK", 0);
if ( (v6 & 1) != 0 )
operator delete(__p);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 1312LL))(v5);
}
return result;
}