//
// EditorSoundConfigUploadPopup::uploadEditorSoundFailed from 0xcd403c to 0xcd4188 (332 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'EditorSoundConfigUploadPopup::uploadEditorSoundFailed @ 0xcd418c
// > ??> @ 0x56de8
// > ??> @ 0x15000d8
//
// 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 13:06:29 +0000
//
__int64 __fastcall EditorSoundConfigUploadPopup::uploadEditorSoundFailed(EditorSoundConfigUploadPopup *this, int a2)
{
cocos2d::CCNode **v4; // x0
__int64 v5; // x0
__int64 v6; // x0
__int64 v7; // x0
__int64 v8; // x0
__int64 v10; // x0
__int64 v11[2]; // [xsp+30h] [xbp+30h] BYREF
void *v12; // [xsp+40h] [xbp+40h]
v4 = *((cocos2d::CCNode ***)this + 128);
*((_BYTE *)this + 1056) = 0;
if ( v4 )
LoadingCircle::fadeAndRemove(v4);
v5 = *((_QWORD *)this + 129);
*((_QWORD *)this + 128) = 0;
if ( v5 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v5 + 344LL))(v5, 1);
v6 = *((_QWORD *)this + 130);
if ( v6 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 344LL))(v6, 1);
v7 = *((_QWORD *)this + 131);
if ( v7 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 344LL))(v7, 1);
v8 = *((_QWORD *)this + 139);
if ( v8 )
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 344LL))(v8, 1);
if ( a2 == -1 )
{
v11[0] = 0;
v11[1] = 0;
v12 = nullptr;
std::string::__init(v11, "Could not reach the server. Try again later.", 0x2Cu);
v10 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Upload Failed", (char *)v11, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v10 + 1312LL))(v10);
if ( (v11[0] & 1) != 0 )
operator delete(v12);
}
return _stack_chk_guard;
}