//
// UploadActionPopup::showFailMessage from 0x8cc46c to 0x8cc5d0 (356 bytes)
//
// 17 xrefs:
// > GJRequestCell::uploadActionFailed @ 0x60b338
// > GJUserCell::uploadActionFailed @ 0x60c18c
// > GJMessageCell::uploadActionFailed @ 0x60ced4
// > EditLevelLayer::uploadActionFailed @ 0x6de118
// > SupportLayer::uploadActionFailed @ 0x7dce04
// > ShareCommentLayer::uploadActionFailed @ 0x7e62a8
// > GJRateLevelLayer::uploadActionFailed @ 0x820870
// > RateStarsLayer::uploadActionFailed @ 0x824614
// > FriendRequestPopup::uploadActionFailed @ 0x8cc65c
// > GJMessagePopup::uploadActionFailed @ 0x8cc784
// > GJWriteMessagePopup::uploadMessageFailed @ 0x8cc894
// > MessagesProfilePage::uploadActionFailed @ 0x8f2000
// > FRequestProfilePage::uploadActionFailed @ 0x8f4688
// > ProfilePage::uploadActionFailed @ 0x8f87a4
// > RateDemonLayer::uploadActionFailed @ 0x933d18
// > MPLobbyLayer::uploadActionFailed @ 0x9c9c74
// > ??> @ 0x6f2e8
//
// 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
//
__int64 __fastcall UploadActionPopup::showFailMessage(__int64 a1, char **a2)
{
cocos2d::CCSprite *v4; // x22
void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x24
__int64 v6; // x0
__int64 v7; // x22
char *v8; // x0
unsigned int *v10; // x2
int v11; // w1
_DWORD *v12; // [xsp+50h] [xbp+50h] BYREF
v4 = cocos2d::CCSprite::createWithSpriteFrameName("exMark_001.png");
setPosition = v4->setPosition;
v6 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(*(_QWORD *)(a1 + 648) + 544LL) + 192LL))(*(_QWORD *)(*(_QWORD *)(a1 + 648) + 544LL));
setPosition(v4, (const cocos2d::CCPoint *)v6);
(*(void (__fastcall **)(_QWORD, cocos2d::CCSprite *))(**(_QWORD **)(a1 + 576) + 440LL))(*(_QWORD *)(a1 + 576), v4);
LoadingCircle::fadeAndRemove(*(LoadingCircle **)(a1 + 648));
v7 = *(_QWORD *)(a1 + 640);
sub_D153B8((int)&v12, *a2);
TextArea::setString(v7, (const void **)&v12);
v8 = (char *)(v12 - 6);
if ( v12 - 6 != (_DWORD *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v10 = v12 - 2;
do
v11 = __ldaxr(v10);
while ( __stlxr(v11 - 1, v10) );
}
else
{
v11 = *(v12 - 2);
*(v12 - 2) = v11 - 1;
}
if ( v11 <= 0 )
operator delete(v8);
}
*(_BYTE *)(a1 + 664) = 0;
return _stack_chk_guard;
}