//
// UploadActionPopup::showSuccessMessage from 0x8cbd5c to 0x8cbed4 (376 bytes)
//
// 19 xrefs:
// > GJRequestCell::uploadActionFinished @ 0x60b79c
// > GJUserCell::uploadActionFinished @ 0x60c588
// > GJMessageCell::uploadActionFinished @ 0x60cd18
// > EditLevelLayer::uploadActionFinished @ 0x6dea20
// > SupportLayer::uploadActionFinished @ 0x7dcc28
// > SupportLayer::uploadActionFinished @ 0x7dcc8c
// > SupportLayer::uploadActionFinished @ 0x7dccf0
// > ShareCommentLayer::uploadActionFinished @ 0x7e618c
// > GJRateLevelLayer::uploadActionFinished @ 0x820da4
// > RateStarsLayer::uploadActionFinished @ 0x8248bc
// > FriendRequestPopup::uploadActionFinished @ 0x8cbfa8
// > GJMessagePopup::uploadActionFinished @ 0x8cc1cc
// > GJWriteMessagePopup::uploadMessageFinished @ 0x8cc3c8
// > MessagesProfilePage::uploadActionFinished @ 0x8f22c0
// > FRequestProfilePage::uploadActionFinished @ 0x8f47b8
// > ProfilePage::uploadActionFinished @ 0x8f9ad4
// > RateDemonLayer::uploadActionFinished @ 0x933fc0
// > MPLobbyLayer::uploadActionFinished @ 0x9ca990
// > ??> @ 0x70680
//
// 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::showSuccessMessage(__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("GJ_completesIcon_001.png");
v4->setScale(v4, 1.5);
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) = 1;
return _stack_chk_guard;
}