//
// SongInfoObject::create from 0x45c0f8 to 0x45c564 (1132 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetTopArtistsCompleted @ 0x3c4dd8
// > MusicDownloadManager::addSongObjectFromString @ 0x45c5da
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
SongInfoObject *SongInfoObject::create(cocos2d::CCDictionary *a1)
{
cocos2d::CCString *v2; // r0
cocos2d::CCString *v3; // r0
char *CString; // r0
cocos2d::CCString *v5; // r0
char *v6; // r0
cocos2d::CCString *v7; // r0
cocos2d::CCString *v8; // r0
cocos2d::CCString *v9; // r0
char *v10; // r0
cocos2d::CCString *v11; // r0
char *v12; // r0
cocos2d::CCString *v13; // r0
char *v14; // r0
cocos2d::CCString *v15; // r0
char *v16; // r0
cocos2d::CCString *v17; // r0
cocos2d::CCString *v18; // r0
char *v19; // r0
cocos2d::CCString *v20; // r0
cocos2d::CCString *v21; // r0
int v22; // r8
SongInfoObject *v23; // r8
cocos2d::CCString *v24; // r0
char *v25; // r0
int v27; // [sp+34h] [bp-90h]
int v28; // [sp+38h] [bp-8Ch]
int v29; // [sp+3Ch] [bp-88h]
int v30; // [sp+40h] [bp-84h]
char v31; // [sp+44h] [bp-80h]
_BYTE v32[4]; // [sp+48h] [bp-7Ch] BYREF
_BYTE v33[4]; // [sp+4Ch] [bp-78h] BYREF
std::string v34; // [sp+50h] [bp-74h] BYREF
std::string v35; // [sp+54h] [bp-70h] BYREF
std::string v36; // [sp+58h] [bp-6Ch] BYREF
_BYTE v37[4]; // [sp+5Ch] [bp-68h] BYREF
std::string v38; // [sp+60h] [bp-64h] BYREF
_BYTE v39[4]; // [sp+64h] [bp-60h] BYREF
std::string v40; // [sp+68h] [bp-5Ch] BYREF
std::string v41; // [sp+6Ch] [bp-58h] BYREF
std::string v42; // [sp+70h] [bp-54h] BYREF
std::string v43; // [sp+74h] [bp-50h] BYREF
std::string v44; // [sp+78h] [bp-4Ch] BYREF
cocos2d::ZipUtils v45; // [sp+7Ch] [bp-48h] BYREF
cocos2d::ZipUtils v46; // [sp+80h] [bp-44h] BYREF
std::string v47; // [sp+84h] [bp-40h] BYREF
_BYTE v48[4]; // [sp+88h] [bp-3Ch] BYREF
std::string v49; // [sp+8Ch] [bp-38h] BYREF
std::string v50; // [sp+90h] [bp-34h] BYREF
std::string v51; // [sp+94h] [bp-30h] BYREF
_BYTE v52[4]; // [sp+98h] [bp-2Ch] BYREF
_BYTE v53[4]; // [sp+9Ch] [bp-28h] BYREF
_BYTE v54[4]; // [sp+A0h] [bp-24h] BYREF
_BYTE v55[4]; // [sp+A4h] [bp-20h] BYREF
_BYTE v56[4]; // [sp+A8h] [bp-1Ch] BYREF
_BYTE v57[4]; // [sp+ACh] [bp-18h] BYREF
_BYTE v58[4]; // [sp+B0h] [bp-14h] BYREF
std::string v59; // [sp+B4h] [bp-10h] BYREF
std::string v60; // [sp+B8h] [bp-Ch] BYREF
sub_776584((int)&v60, (char *)&aO1i2r3e45s7t89[1]);
v2 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v60);
v27 = cocos2d::CCString::intValue(v2);
sub_774008(&v60);
sub_776584((int)&v60, (char *)&aO1i2r3e45s7t89[3]);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v60);
CString = (char *)cocos2d::CCString::getCString(v3);
sub_776584((int)v32, CString);
sub_774008(&v60);
sub_776584((int)&v34, (char *)&aO1i2r3e45s7t89[7]);
v5 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v34);
v6 = (char *)cocos2d::CCString::getCString(v5);
sub_776584((int)v33, v6);
sub_774008(&v34);
sub_776584((int)&v35, (char *)&aO1i2r3e45s7t89[5]);
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v35);
v28 = cocos2d::CCString::intValue(v7);
sub_774008(&v35);
sub_776584((int)&v36, (char *)&aO1i2r3e45s7t89[8]);
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v36);
v29 = cocos2d::CCString::floatValue(v8);
sub_774008(&v36);
sub_776584((int)&v38, "6");
v9 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v38);
v10 = (char *)cocos2d::CCString::getCString(v9);
sub_776584((int)v37, v10);
sub_774008(&v38);
sub_776584((int)&v40, (char *)&aO1i2r3e45s7t89[10]);
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v40);
v12 = (char *)cocos2d::CCString::getCString(v11);
sub_776584((int)v39, v12);
sub_774008(&v40);
sub_776584((int)&v42, "10");
v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v42);
v14 = (char *)cocos2d::CCString::getCString(v13);
sub_776584((int)&v41, v14);
sub_774008(&v42);
sub_776584((int)&v44, "16");
v15 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v44);
v16 = (char *)cocos2d::CCString::getCString(v15);
sub_776584((int)&v43, v16);
sub_774008(&v44);
if ( *((_DWORD *)v41.m_data.m_data - 3) > 1u )
{
cocos2d::ZipUtils::urlDecode(&v45, &v41);
sub_774794(&v41, &v45);
sub_774008(&v45);
}
else
{
sub_7753D4((int)&v41, (char *)&unk_939830);
}
if ( *((_DWORD *)v43.m_data.m_data - 3) > 1u )
{
cocos2d::ZipUtils::urlDecode(&v46, &v43);
sub_774794(&v43, &v46);
sub_774008(&v46);
}
else
{
sub_7753D4((int)&v43, (char *)&unk_939830);
}
sub_776584((int)&v47, "11");
v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v47);
v30 = cocos2d::CCString::intValue(v17);
sub_774008(&v47);
sub_776584((int)&v49, "12");
v18 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v49);
v19 = (char *)cocos2d::CCString::getCString(v18);
sub_776584((int)v48, v19);
sub_774008(&v49);
sub_776584((int)&v50, "13");
v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v50);
v31 = cocos2d::CCString::boolValue(v20);
sub_774008(&v50);
sub_776584((int)&v51, "14");
v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v51);
v22 = cocos2d::CCString::intValue(v21);
sub_774008(&v51);
sub_775C20(v52);
sub_775C20(v53);
sub_775C20(v54);
sub_775C20(v55);
sub_775C20(v56);
sub_775C20(v57);
sub_775C20(v58);
v23 = (SongInfoObject *)SongInfoObject::create(
v27,
(int)v52,
(int)v53,
v28,
v29,
(int)v54,
(int)v55,
(int)v56,
(int)v57,
v30,
(int)v58,
v31,
v22,
-1);
sub_774008(v58);
sub_774008(v57);
sub_774008(v56);
sub_774008(v55);
sub_774008(v54);
sub_774008(v53);
sub_774008(v52);
sub_776584((int)&v59, "15");
v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a1, &v59);
v25 = (char *)cocos2d::CCString::getCString(v24);
sub_776584((int)&v60, v25);
sub_775D40(&v23->m_extraArtistNames, &v60);
sub_774008(&v60);
sub_774008(&v59);
sub_774008(v48);
sub_774008(&v43);
sub_774008(&v41);
sub_774008(v39);
sub_774008(v37);
sub_774008(v33);
sub_774008(v32);
return v23;
}