//
// InfoLayer::commentUploadFailed from 0x1402bf020 to 0x1402bf16e (334 bytes)
//
// 2 xrefs:
// > ??> @ 0x140581948
// > ??> @ 0x1406d28c4
//
// 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
//
// Hidden C++ exception states: #wind=1
void InfoLayer::commentUploadFailed(InfoLayer *a1, int a2, CommentError a3)
{
__int64 v4; // rax
int v5; // eax
__int64 v6; // rdx
__int64 v7; // rax
FLAlertLayer *v8; // rbx
__int128 v9; // [rsp+50h] [rbp-48h] BYREF
__int64 v10; // [rsp+60h] [rbp-38h]
__int64 v11; // [rsp+68h] [rbp-30h]
_BYTE v12[40]; // [rsp+70h] [rbp-28h] BYREF
if ( !*(_QWORD *)&a1->m_uAutoReleaseCount )
{
v4 = *(_QWORD *)&a1->m_uIndexInArray;
if ( v4 )
{
v5 = -*(_DWORD *)(v4 + 344);
}
else
{
v6 = *(_QWORD *)&a1->m_nTag;
if ( v6 )
v5 = *(_DWORD *)(v6 + 328) - *(_DWORD *)(v6 + 332);
else
v5 = 0;
}
if ( a2 == v5 && !a3 )
{
v9 = 0;
*(_QWORD *)&v9 = sub_14003AA10(0x30u);
v10 = 46;
v11 = 47;
strcpy((char *)v9, "Comment upload failed. Please try again later.");
v7 = sub_14003BDB0((__int64)v12, (__int64)&v9);
v8 = FLAlertLayer::create(0, (int)"Failed", v7, (__int64)"OK", 0, 1132068864, 0, 0, 1065353216);
sub_14003A830((__int64)&v9);
v8->show(v8);
}
}
}