//
// EditorSoundConfigInfoLayer::downloadEditorSoundFailed from 0x785750 to 0x7857de (142 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'EditorSoundConfigInfoLayer::downloadEditorSoundFailed @ 0x7857f4
//
// 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:59:32 +0000
//
int __fastcall EditorSoundConfigInfoLayer::downloadEditorSoundFailed(int this, int a2, int a3)
{
int v3; // r5
int v4; // r2
cocos2d::CCNode **v5; // r0
int *v6; // r0
int v7[3]; // [sp+8h] [bp-10h] BYREF
v3 = this;
v4 = *(_DWORD *)(this + 748);
if ( !v4 || a2 == *(_DWORD *)(v4 + 264) )
{
v5 = *(cocos2d::CCNode ***)(this + 760);
*(_BYTE *)(v3 + 764) = 0;
*(_BYTE *)(v3 + 765) = 0;
if ( v5 )
LoadingCircle::fadeAndRemove(v5, a2, v4);
*(_DWORD *)(v3 + 760) = 0;
EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)v3);
memset(v7, 0, sizeof(v7));
std::string::__init(v7, "Could not download this sound pack. Try again later.", 0x34u);
v6 = FLAlertLayer::create(0, (cocos2d::CCLabelBMFont *)"Download Failed", (int)v7, (ButtonSprite *)"OK", nullptr);
(*(void (__fastcall **)(int *))(*v6 + 656))(v6);
return std::string::~string((int)v7);
}
return this;
}