//
// InfoLayer::commentUploadFailed from 0x1403d2400 to 0x1403d254f (335 bytes)
//
// 2 xrefs:
// > ??> @ 0x140785838
// > ??> @ 0x140924770
//
// 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 11:31:35 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall InfoLayer::commentUploadFailed(__int64 a1, int a2, int a3)
{
int v3; // r9d
__int64 result; // rax
__int64 v5; // rcx
__int64 v6; // rax
cocos2d::CCObject *v7; // rbx
__int128 v8; // [rsp+50h] [rbp-48h] BYREF
__int64 v9; // [rsp+60h] [rbp-38h]
__int64 v10; // [rsp+68h] [rbp-30h]
_BYTE v11[40]; // [rsp+70h] [rbp-28h] BYREF
v3 = a2;
result = *(_QWORD *)(a1 + 32);
if ( !result || *(_BYTE *)(a1 + 216) )
{
v5 = a1 - 672;
if ( result && *(_BYTE *)(v5 + 888) )
result = *(unsigned int *)(result + 392);
else
result = InfoLayer::getID((_QWORD *)v5);
if ( v3 == (_DWORD)result && a3 == -1 )
{
v8 = 0;
*(_QWORD *)&v8 = sub_14003D460(0x30u);
v9 = 46;
v10 = 47;
strcpy((char *)v8, "Comment upload failed. Please try again later.");
v6 = sub_14003F4F0((__int64)v11, (__int64)&v8);
v7 = FLAlertLayer::create(0, (int)"Failed", v6, (__int64)"OK", 0, 1132068864, 0, 0, 1065353216);
sub_14003D310((__int64)&v8);
return (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v7 + 1064LL))(v7);
}
}
return result;
}