//
// InfoLayer::commentUploadFailed from 0x908780 to 0x908880 (256 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'InfoLayer::commentUploadFailed @ 0x908884
// > ??> @ 0xdd950
// > ??> @ 0x1466540
//
// 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 12:57:10 +0000
//
__int64 __fastcall InfoLayer::commentUploadFailed(__int64 a1, int a2, int a3)
{
__int64 v4; // x20
__int64 v6[2]; // [xsp+30h] [xbp+30h] BYREF
void *v7; // [xsp+40h] [xbp+40h]
if ( (!*(_QWORD *)(a1 + 704) || *(_BYTE *)(a1 + 880))
&& (unsigned int)InfoLayer::activeCommentID((InfoLayer *)a1) == a2
&& a3 == -1 )
{
v6[0] = 0;
v6[1] = 0;
v7 = nullptr;
std::string::__init(v6, "Comment upload failed. Please try again later.", 0x2Eu);
v4 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Failed", (char *)v6, (ButtonSprite *)"OK", nullptr);
if ( (v6[0] & 1) != 0 )
operator delete(v7);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v4 + 1312LL))(v4);
}
return _stack_chk_guard;
}