//
// MusicDownloadManager::handleItND from 0x97d29c to 0x97d3f0 (340 bytes)
//
// 3 xrefs:
// > ??> @ 0xc7cd8
// > MusicDownloadManager::handleItDelayed @ 0x95deec
// > ??> @ 0x1545d68
//
// 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 12:57:49 +0000
//
__int64 __fastcall MusicDownloadManager::handleItND(MusicDownloadManager *this, cocos2d::CCNode *a2, char *a3)
{
char v5; // w0
char *v6; // x2
char v7; // w23
__int64 v8; // x0
__int64 v9; // x1
char v10; // w0
__int64 v11; // x0
__int64 v12; // x1
__int64 v14; // [xsp+48h] [xbp+48h] BYREF
__int64 v15; // [xsp+50h] [xbp+50h]
void *v16; // [xsp+58h] [xbp+58h]
__int64 v17; // [xsp+60h] [xbp+60h] BYREF
__int64 v18; // [xsp+68h] [xbp+68h]
void *v19; // [xsp+70h] [xbp+70h]
v5 = a3[320];
v14 = 0;
v6 = a3 + 320;
v15 = 0;
v16 = nullptr;
v7 = a3[314];
if ( (v5 & 1) != 0 )
{
std::string::__init(&v14, *((void **)v6 + 2), *((_QWORD *)v6 + 1));
}
else
{
v8 = *(_QWORD *)v6;
v9 = *((_QWORD *)v6 + 1);
v16 = *((void **)v6 + 2);
v14 = v8;
v15 = v9;
}
v10 = a3[344];
v17 = 0;
v18 = 0;
v19 = nullptr;
if ( (v10 & 1) != 0 )
{
std::string::__init(&v17, *((void **)a3 + 45), *((_QWORD *)a3 + 44));
}
else
{
v11 = *((_QWORD *)a3 + 43);
v12 = *((_QWORD *)a3 + 44);
v19 = *((void **)a3 + 45);
v17 = v11;
v18 = v12;
}
MusicDownloadManager::handleIt(this, v7, &v14, (char *)&v17, *((_DWORD *)a3 + 92));
if ( (v17 & 1) != 0 )
operator delete(v19);
if ( (v14 & 1) != 0 )
operator delete(v16);
cocos2d::CCObject::release((cocos2d::CCObject *)a3);
return _stack_chk_guard;
}