//
// SongInfoObject::createWithCoder from 0x578350 to 0x57872c (988 bytes)
//
// 1 xrefs:
// > GJObjectDecoder::getDecodedObject @ 0x569bf6
//
// 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:46 +0000
//
int __fastcall SongInfoObject::createWithCoder(SongInfoObject *this, DS_Dictionary *a2)
{
int FloatForKey; // r11
int v4; // r10
char BoolForKey; // r9
int v6; // r9
int v7; // r3
int v8; // r3
int v9; // r3
unsigned int v11; // r3
unsigned int v12; // r3
unsigned int v13; // r3
_BYTE *v15; // r2
int v16; // r3
_BYTE *v17; // r2
int v18; // r3
_BYTE *v19; // r2
int v20; // r3
int IntegerForKey; // [sp+20h] [bp-DCh]
int v22; // [sp+24h] [bp-D8h]
int v23; // [sp+2Ch] [bp-D0h]
int v24; // [sp+30h] [bp-CCh]
_BYTE v25[12]; // [sp+38h] [bp-C4h] BYREF
_BYTE v26[12]; // [sp+44h] [bp-B8h] BYREF
_BYTE v27[12]; // [sp+50h] [bp-ACh] BYREF
_BYTE v28[12]; // [sp+5Ch] [bp-A0h] BYREF
int v29[3]; // [sp+68h] [bp-94h] BYREF
int v30[3]; // [sp+74h] [bp-88h] BYREF
int v31[3]; // [sp+80h] [bp-7Ch] BYREF
int v32[3]; // [sp+8Ch] [bp-70h] BYREF
unsigned __int8 v33[4]; // [sp+98h] [bp-64h] BYREF
unsigned int v34; // [sp+9Ch] [bp-60h]
unsigned __int8 v35[4]; // [sp+A4h] [bp-58h] BYREF
unsigned int v36; // [sp+A8h] [bp-54h]
int v37; // [sp+B0h] [bp-4Ch] BYREF
int v38; // [sp+B4h] [bp-48h]
_BYTE *v39; // [sp+B8h] [bp-44h]
int v40; // [sp+BCh] [bp-40h] BYREF
int v41; // [sp+C0h] [bp-3Ch]
_BYTE *v42; // [sp+C4h] [bp-38h]
int v43; // [sp+C8h] [bp-34h] BYREF
int v44; // [sp+CCh] [bp-30h]
_BYTE *v45; // [sp+D0h] [bp-2Ch]
int v46; // [sp+D4h] [bp-28h] BYREF
int v47; // [sp+D8h] [bp-24h]
int v48; // [sp+E8h] [bp-14h] BYREF
int v49; // [sp+ECh] [bp-10h]
_BYTE *v50; // [sp+F0h] [bp-Ch]
IntegerForKey = DS_Dictionary::getIntegerForKey(this, (const char *)a1i2r3e45s789g);
DS_Dictionary::getStringForKey((DS_Dictionary *)v25, (const char *)this);
DS_Dictionary::getStringForKey((DS_Dictionary *)v26, (const char *)this);
v22 = DS_Dictionary::getIntegerForKey(this, (const char *)&a1i2r3e45s789g[4]);
FloatForKey = DS_Dictionary::getFloatForKey(this, (const char *)&a1i2r3e45s789g[7]);
v23 = DS_Dictionary::getIntegerForKey(this, (const char *)&a1i2r3e45s789g[11]);
DS_Dictionary::getStringForKey((DS_Dictionary *)v27, (const char *)this);
v4 = DS_Dictionary::getIntegerForKey(this, "11");
DS_Dictionary::getStringForKey((DS_Dictionary *)v28, (const char *)this);
BoolForKey = DS_Dictionary::getBoolForKey(this, "13");
v24 = DS_Dictionary::getIntegerForKey(this, "14");
std::string::basic_string(v29, (int)v25);
std::string::basic_string(v30, (int)v26);
std::string::basic_string(v31, (int)v27);
std::string::basic_string(v32, (int)v28);
v6 = SongInfoObject::create(
IntegerForKey,
(int)v29,
(int)v30,
v22,
FloatForKey,
(int)v31,
v4,
(int)v32,
BoolForKey,
v24,
v23);
std::string::~string((int)v32);
std::string::~string((int)v31);
std::string::~string((int)v30);
std::string::~string((int)v29);
DS_Dictionary::getStringForKey((DS_Dictionary *)v33, (const char *)this);
std::string::operator=((unsigned __int8 *)(v6 + 356), v33);
std::string::~string((int)v33);
DS_Dictionary::getStringForKey((DS_Dictionary *)v35, (const char *)this);
SongInfoObject::setSongLinks(v6, v35);
std::string::~string((int)v35);
DS_Dictionary::getStringForKey((DS_Dictionary *)&v46, (const char *)this);
SongInfoObject::setArtistLinks(v6, (unsigned __int8 *)&v46);
std::string::~string((int)&v46);
v7 = *(unsigned __int8 *)(v6 + 388);
if ( (v7 & 1) != 0 )
v8 = *(_DWORD *)(v6 + 392);
else
v8 = v7 >> 1;
if ( !v8 )
{
v9 = *(unsigned __int8 *)(v6 + 400);
if ( !((v9 & 1) != 0 ? *(_DWORD *)(v6 + 404) : v9 >> 1) )
{
DS_Dictionary::getStringForKey((DS_Dictionary *)v32, (const char *)this);
DS_Dictionary::getStringForKey((DS_Dictionary *)v33, (const char *)this);
DS_Dictionary::getStringForKey((DS_Dictionary *)v35, (const char *)this);
if ( (v32[0] & 1) != 0 )
v11 = v32[1];
else
v11 = (int)LOBYTE(v32[0]) >> 1;
if ( v11 > 1 )
{
GJLinkObject::GJLinkObject((GJLinkObject *)&v46);
v46 = IntegerForKey;
v47 = 1;
std::operator+(&v37, "https://www.youtube.com/watch?v=", (unsigned __int8 *)v32);
v16 = v48 & 1;
if ( (v48 & 1) != 0 )
{
v15 = v50;
v16 = 0;
}
else
{
BYTE1(v48) = v48 & 1;
}
if ( (v48 & 1) != 0 )
{
*v15 = v16;
v49 = v16;
}
else
{
LOBYTE(v48) = v16;
}
std::string::reserve(&v48, 0);
v48 = v37;
v49 = v38;
v50 = v39;
v37 = 0;
v38 = 0;
v39 = nullptr;
std::string::~string((int)&v37);
SongInfoObject::addSongLink(v6, (const GJLinkObject *)&v46);
GJLinkObject::~GJLinkObject((GJLinkObject *)&v46);
}
if ( (v33[0] & 1) != 0 )
v12 = v34;
else
v12 = (int)v33[0] >> 1;
if ( v12 > 1 )
{
GJLinkObject::GJLinkObject((GJLinkObject *)&v46);
v46 = IntegerForKey;
cocos2d::ZipUtils::urlDecode(&v40, v33);
v18 = v48 & 1;
if ( (v48 & 1) != 0 )
{
v17 = v50;
v18 = 0;
}
else
{
BYTE1(v48) = v48 & 1;
}
if ( (v48 & 1) != 0 )
{
*v17 = v18;
v49 = v18;
}
else
{
LOBYTE(v48) = v18;
}
std::string::reserve(&v48, 0);
v48 = v40;
v49 = v41;
v50 = v42;
v40 = 0;
v41 = 0;
v42 = nullptr;
std::string::~string((int)&v40);
v47 = MusicDownloadManager::linkTypeForURL((int)&v48);
SongInfoObject::addSongLink(v6, (const GJLinkObject *)&v46);
GJLinkObject::~GJLinkObject((GJLinkObject *)&v46);
}
if ( (v35[0] & 1) != 0 )
v13 = v36;
else
v13 = (int)v35[0] >> 1;
if ( v13 > 1 )
{
GJLinkObject::GJLinkObject((GJLinkObject *)&v46);
v46 = v22;
v47 = 1;
std::operator+(&v43, "https://www.youtube.com/channel/", v35);
v20 = v48 & 1;
if ( (v48 & 1) != 0 )
{
v19 = v50;
v20 = 0;
}
else
{
BYTE1(v48) = v48 & 1;
}
if ( (v48 & 1) != 0 )
{
*v19 = v20;
v49 = v20;
}
else
{
LOBYTE(v48) = v20;
}
std::string::reserve(&v48, 0);
v48 = v43;
v49 = v44;
v50 = v45;
v43 = 0;
v44 = 0;
v45 = nullptr;
std::string::~string((int)&v43);
SongInfoObject::addArtistLink(v6, (const GJLinkObject *)&v46);
GJLinkObject::~GJLinkObject((GJLinkObject *)&v46);
}
std::string::~string((int)v35);
std::string::~string((int)v33);
std::string::~string((int)v32);
}
}
std::string::~string((int)v28);
std::string::~string((int)v27);
std::string::~string((int)v26);
std::string::~string((int)v25);
return v6;
}