//
// EditorSoundConfigInfoLayer::startDownload from 0xccdba4 to 0xccdc28 (132 bytes)
//
// 4 xrefs:
// > EditorSoundConfigInfoLayer::onUpdate @ 0xccdc28
// > EditorSoundConfigInfoLayer::onFavorite @ 0xccdfe4
// > EditorSoundConfigInfoLayer::init @ 0xcd216c
// > ??> @ 0x6aa80
//
// 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:25 +0000
//
__int64 __fastcall EditorSoundConfigInfoLayer::startDownload(__int64 this)
{
__int64 v1; // x1
__int64 v2; // x19
__int64 v3; // x0
GameLevelManager *refreshed; // x0
GameLevelManager *v5; // x0
GameLevelManager *v6; // x0
if ( !*(_BYTE *)(this + 1120) )
{
v1 = *(_QWORD *)(this + 1088);
if ( v1 )
{
if ( *(int *)(v1 + 316) > 0 )
{
v2 = this;
*(_BYTE *)(this + 1120) = (unsigned __int8)&dword_0 + 1;
v3 = LoadingCircle::create((LoadingCircle *)((char *)&dword_0 + 1));
*(_QWORD *)(v2 + 1112) = v3;
*(_QWORD *)(v3 + 552) = *(_QWORD *)(v2 + 584);
LoadingCircle::show(*(cocos2d::CCNode ***)(v2 + 1112));
refreshed = (GameLevelManager *)EditorSoundConfigInfoLayer::refreshActionButtons((EditorSoundConfigInfoLayer *)v2);
v5 = (GameLevelManager *)GameLevelManager::sharedState(refreshed);
*((_QWORD *)v5 + 167) = v2 + 1016;
v6 = (GameLevelManager *)GameLevelManager::sharedState(v5);
return GameLevelManager::downloadEditorSoundConfig(
v6,
(const char *)*(unsigned int *)(*(_QWORD *)(v2 + 1088) + 316LL));
}
}
}
return this;
}