//
// InfoLayer::commentUploadFailed from 0x1003f1ca0 to 0x1003f1d4c (172 bytes)
//
// 2 xrefs:
// > sub_1003F1D68 @ 0x1003f1d6c
// > ??> @ 0x10094b568
//
// This function is hookable on this platform (idp: arm, 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 11:04:31 +0000
//
__int64 __fastcall InfoLayer::commentUploadFailed(__int64 result, int a2, int a3)
{
__int64 v5; // x8
__int64 v6; // x19
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v8; // [xsp+1Fh] [xbp-11h]
v5 = *(_QWORD *)(result + 704);
if ( v5 )
{
if ( *(_BYTE *)(result + 880) != 1 )
return result;
result = *(unsigned int *)(v5 + 376);
}
else
{
result = sub_1003F055C((_QWORD *)result);
}
if ( a3 == -1 && (_DWORD)result == a2 )
{
sub_100009900(__p, "Comment upload failed. Please try again later.");
v6 = sub_10034A8F8(0, (__int64)"Failed", (__int64)__p, (__int64)"OK", 0);
if ( v8 < 0 )
operator delete(__p[0]);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1312LL))(v6);
}
return result;
}