//
// SongInfoObject::create from 0x577894 to 0x577d46 (1202 bytes)
//
// 2 xrefs:
// > GameLevelManager::onGetTopArtistsCompleted @ 0x4c3bfa
// > MusicDownloadManager::addSongObjectFromString @ 0x577db6
//
// 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:52:44 +0000
//
int __fastcall SongInfoObject::create(SongInfoObject *this, cocos2d::CCDictionary *a2)
{
cocos2d::CCString *v3; // r0
cocos2d::CCString *v4; // r0
const char *CString; // r8
size_t v6; // r0
cocos2d::CCString *v7; // r0
const char *v8; // r9
size_t v9; // r0
cocos2d::CCString *v10; // r0
cocos2d::CCString *v11; // r0
int v12; // r9
cocos2d::CCString *v13; // r0
const char *v14; // r10
size_t v15; // r0
unsigned int v16; // r3
int v17; // r0
unsigned int v18; // r1
_BYTE *v19; // r2
cocos2d::CCString *v20; // r0
cocos2d::CCString *v21; // r0
size_t v22; // r0
cocos2d::CCString *v23; // r0
cocos2d::CCString *v24; // r0
int v25; // r9
cocos2d::CCString *v26; // r0
size_t v27; // r0
cocos2d::CCString *v28; // r0
size_t v29; // r0
cocos2d::CCString *v30; // r0
const char *v31; // r11
size_t v32; // r0
const char *v34; // [sp+24h] [bp-138h]
const char *v35; // [sp+24h] [bp-138h]
const char *v36; // [sp+24h] [bp-138h]
int v37; // [sp+2Ch] [bp-130h]
int v38; // [sp+30h] [bp-12Ch]
int v39; // [sp+34h] [bp-128h]
char v40; // [sp+38h] [bp-124h]
int v41; // [sp+3Ch] [bp-120h]
int v42[3]; // [sp+40h] [bp-11Ch] BYREF
int v43[3]; // [sp+4Ch] [bp-110h] BYREF
int v44[3]; // [sp+58h] [bp-104h] BYREF
int v45[3]; // [sp+64h] [bp-F8h] BYREF
int v46[3]; // [sp+70h] [bp-ECh] BYREF
int v47; // [sp+7Ch] [bp-E0h] BYREF
unsigned int v48; // [sp+80h] [bp-DCh]
_BYTE *v49; // [sp+84h] [bp-D8h]
int v50[3]; // [sp+88h] [bp-D4h] BYREF
int v51; // [sp+94h] [bp-C8h] BYREF
unsigned int v52; // [sp+98h] [bp-C4h]
_BYTE *v53; // [sp+9Ch] [bp-C0h]
int v54[3]; // [sp+A0h] [bp-BCh] BYREF
int v55[3]; // [sp+ACh] [bp-B0h] BYREF
int v56[3]; // [sp+B8h] [bp-A4h] BYREF
int v57[3]; // [sp+C4h] [bp-98h] BYREF
int v58[3]; // [sp+D0h] [bp-8Ch] BYREF
int v59[3]; // [sp+DCh] [bp-80h] BYREF
int v60[3]; // [sp+E8h] [bp-74h] BYREF
int v61[3]; // [sp+F4h] [bp-68h] BYREF
int v62[3]; // [sp+100h] [bp-5Ch] BYREF
int v63[3]; // [sp+10Ch] [bp-50h] BYREF
int v64[3]; // [sp+118h] [bp-44h] BYREF
int v65[3]; // [sp+124h] [bp-38h] BYREF
int v66[3]; // [sp+130h] [bp-2Ch] BYREF
int v67[3]; // [sp+13Ch] [bp-20h] BYREF
int v68; // [sp+148h] [bp-14h] BYREF
int v69; // [sp+14Ch] [bp-10h]
int v70; // [sp+150h] [bp-Ch]
v68 = 0;
v69 = 0;
v70 = 0;
std::string::__init(&v68, a1i2r3e45s789g, 1u);
v3 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v68);
v37 = cocos2d::CCString::intValue(v3);
std::string::~string((int)&v68);
v68 = 0;
v69 = 0;
v70 = 0;
std::string::__init(&v68, &a1i2r3e45s789g[2], 1u);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, &v68);
CString = (const char *)cocos2d::CCString::getCString(v4);
memset(v42, 0, sizeof(v42));
v6 = strlen(CString);
std::string::__init(v42, CString, v6);
std::string::~string((int)&v68);
memset(v44, 0, sizeof(v44));
std::string::__init(v44, &a1i2r3e45s789g[6], 1u);
v7 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v44);
v8 = (const char *)cocos2d::CCString::getCString(v7);
memset(v43, 0, sizeof(v43));
v9 = strlen(v8);
std::string::__init(v43, v8, v9);
std::string::~string((int)v44);
memset(v45, 0, sizeof(v45));
std::string::__init(v45, &a1i2r3e45s789g[4], 1u);
v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v45);
v38 = cocos2d::CCString::intValue(v10);
std::string::~string((int)v45);
memset(v46, 0, sizeof(v46));
std::string::__init(v46, &a1i2r3e45s789g[7], 1u);
v11 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v46);
v12 = cocos2d::CCString::floatValue(v11);
std::string::~string((int)v46);
memset(v50, 0, sizeof(v50));
std::string::__init(v50, "10", 2u);
v13 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v50);
v14 = (const char *)cocos2d::CCString::getCString(v13);
v47 = 0;
v48 = 0;
v49 = nullptr;
v15 = strlen(v14);
std::string::__init(&v47, v14, v15);
std::string::~string((int)v50);
if ( (v47 & 1) != 0 )
v16 = v48;
else
v16 = (int)(unsigned __int8)v47 >> 1;
if ( v16 > 1 )
{
cocos2d::ZipUtils::urlDecode(&v51, &v47);
if ( (v47 & 1) != 0 )
{
*v49 = 0;
v48 = 0;
}
else
{
LOWORD(v47) = 0;
}
std::string::reserve(&v47, 0);
v17 = v51;
v18 = v52;
v19 = v53;
v51 = 0;
v52 = 0;
v53 = nullptr;
v47 = v17;
v48 = v18;
v49 = v19;
std::string::~string((int)&v51);
}
else
{
std::string::assign(&v47, (char *)&unk_B6B226);
}
memset(v54, 0, sizeof(v54));
std::string::__init(v54, "11", 2u);
v20 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v54);
v39 = cocos2d::CCString::intValue(v20);
std::string::~string((int)v54);
memset(v56, 0, sizeof(v56));
std::string::__init(v56, "12", 2u);
v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v56);
v34 = (const char *)cocos2d::CCString::getCString(v21);
memset(v55, 0, sizeof(v55));
v22 = strlen(v34);
std::string::__init(v55, v34, v22);
std::string::~string((int)v56);
memset(v57, 0, sizeof(v57));
std::string::__init(v57, "13", 2u);
v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v57);
v40 = cocos2d::CCString::boolValue(v23);
std::string::~string((int)v57);
memset(v58, 0, sizeof(v58));
std::string::__init(v58, "14", 2u);
v24 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v58);
v41 = cocos2d::CCString::intValue(v24);
std::string::~string((int)v58);
std::string::basic_string(v59, (int)v42);
std::string::basic_string(v60, (int)v43);
std::string::basic_string(v61, (int)&v47);
std::string::basic_string(v62, (int)v55);
v25 = SongInfoObject::create(v37, (int)v59, (int)v60, v38, v12, (int)v61, v39, (int)v62, v40, v41, -1);
std::string::~string((int)v62);
std::string::~string((int)v61);
std::string::~string((int)v60);
std::string::~string((int)v59);
memset(v63, 0, sizeof(v63));
std::string::__init(v63, "15", 2u);
v26 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v63);
v35 = (const char *)cocos2d::CCString::getCString(v26);
memset(v64, 0, sizeof(v64));
v27 = strlen(v35);
std::string::__init(v64, v35, v27);
std::string::operator=((unsigned __int8 *)(v25 + 356), (unsigned __int8 *)v64);
std::string::~string((int)v64);
std::string::~string((int)v63);
memset(v65, 0, sizeof(v65));
std::string::__init(v65, "17", 2u);
v28 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v65);
v36 = (const char *)cocos2d::CCString::getCString(v28);
memset(v66, 0, sizeof(v66));
v29 = strlen(v36);
std::string::__init(v66, v36, v29);
SongInfoObject::setSongLinks(v25, (unsigned __int8 *)v66);
std::string::~string((int)v66);
std::string::~string((int)v65);
memset(v67, 0, sizeof(v67));
std::string::__init(v67, "18", 2u);
v30 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(this, v67);
v31 = (const char *)cocos2d::CCString::getCString(v30);
v68 = 0;
v69 = 0;
v70 = 0;
v32 = strlen(v31);
std::string::__init(&v68, v31, v32);
SongInfoObject::setArtistLinks(v25, (unsigned __int8 *)&v68);
std::string::~string((int)&v68);
std::string::~string((int)v67);
std::string::~string((int)v55);
std::string::~string((int)&v47);
std::string::~string((int)v43);
std::string::~string((int)v42);
return v25;
}