//
// UploadActionPopup::showSuccessMessage from 0x5da038 to 0x5da0ea (178 bytes)
//
// 27 xrefs:
// > GJMessageCell::uploadActionFinished @ 0x42d2b4
// > EditLevelLayer::uploadActionFinished @ 0x4a011a
// > ParentalPrivacyPopup::updateSettingsFinished @ 0x52fb6c
// > SupportLayer::uploadActionFinished @ 0x539a8c
// > SupportLayer::uploadActionFinished @ 0x539ac2
// > SupportLayer::uploadActionFinished @ 0x539af0
// > ShareCommentLayer::uploadActionFinished @ 0x540f12
// > GJRateLevelLayer::uploadActionFinished @ 0x56650e
// > GJRateLevelListLayer::uploadActionFinished @ 0x5668f4
// > GJRateEditorSoundLayer::uploadActionFinished @ 0x566ca0
// > RateStarsLayer::uploadActionFinished @ 0x569498
// > GJWriteMessagePopup::uploadMessageFinished @ 0x5da12e
// > FriendRequestPopup::uploadActionFinished @ 0x5dbdee
// > GJMessagePopup::uploadActionFinished @ 0x5dbede
// > MessagesProfilePage::uploadActionFinished @ 0x5f0210
// > FRequestProfilePage::uploadActionFinished @ 0x5f1fc2
// > FriendsProfilePage::uploadActionFinished @ 0x5f4944
// > ProfilePage::uploadActionFinished @ 0x5fb3de
// > RateDemonLayer::uploadActionFinished @ 0x61672c
// > MPLobbyLayer::uploadActionFinished @ 0x66ab6e
// > AccountReviewPopup::adminDeleteCommentsFinished @ 0x732fa2
// > AccountBanPopup::banLanded @ 0x763db6
// > CreatorSettingsPopup::uploadActionFinished @ 0x765f56
// > EditorSoundConfigInfoLayer::uploadActionFinished @ 0x786552
// > PlatformerControlsPopup::uploadActionFinished @ 0x79de5c
// > PlatformerControlsPopup::uploadActionFinished @ 0x79de8c
// > RateStarsModLayer::uploadActionFinished @ 0x79e894
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:11 +0000
//
int __fastcall UploadActionPopup::showSuccessMessage(int a1, const char *a2, int a3, int a4)
{
const char *v5; // r4
int v6; // r5
void (__fastcall *v7)(int, int); // r8
int v8; // r0
int v9; // r1
int v10; // r2
int v11; // r8
bool v12; // nf
size_t v13; // r0
int result; // r0
int v15; // [sp+0h] [bp-10h] BYREF
const char *v16; // [sp+4h] [bp-Ch]
int v17; // [sp+8h] [bp-8h]
int v18; // [sp+Ch] [bp-4h]
v15 = a1;
v16 = a2;
v17 = a3;
v18 = a4;
v5 = a2;
v6 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_completesIcon_001.png", a2);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 80))(v6, 1069547520);
v7 = *(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 92);
v8 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(*(_DWORD *)(a1 + 528) + 440) + 96))(*(_DWORD *)(*(_DWORD *)(a1 + 528) + 440));
v7(v6, v8);
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(a1 + 460) + 228))(*(_DWORD *)(a1 + 460), v6);
LoadingCircle::fadeAndRemove(*(cocos2d::CCNode ***)(a1 + 528), v9, v10);
v11 = *(_DWORD *)(a1 + 524);
v12 = (*v5 & 1) != 0;
if ( (*v5 & 1) == 0 )
++v5;
v15 = 0;
if ( v12 )
v5 = *((const char **)v5 + 2);
v16 = nullptr;
v17 = 0;
v13 = strlen(v5);
std::string::__init(&v15, v5, v13);
TextArea::setString(v11, &v15);
result = std::string::~string((int)&v15);
*(_BYTE *)(a1 + 536) = 1;
return result;
}