//
// EditorSoundConfigInfoLayer::startDownload from 0x784e60 to 0x784ebe (94 bytes)
//
// 3 xrefs:
// > EditorSoundConfigInfoLayer::onUpdate @ 0x784ebe
// > EditorSoundConfigInfoLayer::onFavorite @ 0x785244
// > EditorSoundConfigInfoLayer::init @ 0x7882ca
//
// 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:31 +0000
//
int __fastcall EditorSoundConfigInfoLayer::startDownload(int this)
{
int v1; // r4
int v2; // r3
cocos2d::CCLayerColor *v3; // r0
int v4; // r3
GameLevelManager *refreshed; // r0
GameLevelManager *v6; // r0
GameLevelManager *v7; // r0
v1 = this;
if ( !*(_BYTE *)(this + 764) )
{
v2 = *(_DWORD *)(this + 748);
if ( v2 )
{
if ( *(int *)(v2 + 264) > 0 )
{
*(_BYTE *)(this + 764) = 1;
v3 = LoadingCircle::create((LoadingCircle *)this);
v4 = *(_DWORD *)(v1 + 460);
*(_DWORD *)(v1 + 760) = v3;
*((_DWORD *)v3 + 111) = v4;
LoadingCircle::show(*(cocos2d::CCNode ***)(v1 + 760));
refreshed = (GameLevelManager *)EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)v1);
v6 = (GameLevelManager *)GameLevelManager::sharedState(refreshed);
*((_DWORD *)v6 + 219) = v1 + 712;
v7 = (GameLevelManager *)GameLevelManager::sharedState(v6);
return GameLevelManager::downloadEditorSoundConfig(v7, *(const char **)(*(_DWORD *)(v1 + 748) + 264));
}
}
}
return this;
}