//
// ProfilePage::commentUploadFailed from 0x8f98dc to 0x8f9a14 (312 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'ProfilePage::commentUploadFailed @ 0x8f9a18
// > ??> @ 0x773d0
// > ??> @ 0x11a69f0
//
// 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 ProfilePage::commentUploadFailed(ProfilePage *a1, int a2, CommentError a3)
{
GJAccountManager *v3; // x0
FLAlertLayer *v4; // x20
void *v5; // x0
unsigned int *v6; // x2
int v7; // w1
__int64 v9; // [xsp+40h] [xbp+40h] BYREF
v3 = GJAccountManager::sharedState();
if ( a2 == v3->m_accountID - v3->m_unkInt1 )
{
sub_D153B8((int)&v9, "Comment upload failed. Please try again later.");
v4 = FLAlertLayer::create(0, (__int64)"Failed", (__int64)&v9);
v5 = (void *)(v9 - 24);
if ( (__int64 *)(v9 - 24) != &qword_124B6B0 )
{
if ( &pthread_create )
{
v6 = (unsigned int *)(v9 - 8);
do
v7 = __ldaxr(v6);
while ( __stlxr(v7 - 1, v6) );
}
else
{
v7 = *(_DWORD *)(v9 - 8);
*(_DWORD *)(v9 - 8) = v7 - 1;
}
if ( v7 <= 0 )
operator delete(v5);
}
v4->show(v4);
}
}