//
// SongInfoObject::createWithCoder from 0x1005974f0 to 0x100597a5d (1389 bytes)
//
// 1 xrefs:
// > GJObjectDecoder::getDecodedObject @ 0x1007248d2
//
// 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 *__fastcall SongInfoObject::createWithCoder(DS_Dictionary *a1)
{
double v1; // xmm0_8
int v2; // r12d
int v3; // r13d
unsigned __int8 BoolForKey; // r14
int v5; // r15d
double v6; // xmm0_8
cocos2d::CCObject *v7; // r14
std::string __str; // [rsp+38h] [rbp-1D8h] BYREF
__int128 v10; // [rsp+50h] [rbp-1C0h] BYREF
void *__p; // [rsp+60h] [rbp-1B0h]
__int128 v12; // [rsp+70h] [rbp-1A0h] BYREF
void *v13; // [rsp+80h] [rbp-190h]
__int128 v14; // [rsp+90h] [rbp-180h] BYREF
void *v15; // [rsp+A0h] [rbp-170h]
__int128 v16; // [rsp+B0h] [rbp-160h] BYREF
void *v17; // [rsp+C0h] [rbp-150h]
__int128 v18; // [rsp+D0h] [rbp-140h] BYREF
void *v19; // [rsp+E0h] [rbp-130h]
__int128 v20; // [rsp+F0h] [rbp-120h] BYREF
void *v21; // [rsp+100h] [rbp-110h]
__int128 v22; // [rsp+110h] [rbp-100h] BYREF
void *v23; // [rsp+120h] [rbp-F0h]
__int128 v24; // [rsp+130h] [rbp-E0h] BYREF
void *v25; // [rsp+140h] [rbp-D0h]
__int128 v26; // [rsp+148h] [rbp-C8h] BYREF
void *v27; // [rsp+158h] [rbp-B8h]
__int128 v28; // [rsp+160h] [rbp-B0h] BYREF
void *v29; // [rsp+170h] [rbp-A0h]
__int128 v30; // [rsp+178h] [rbp-98h] BYREF
void *v31; // [rsp+188h] [rbp-88h]
__int128 v32; // [rsp+190h] [rbp-80h] BYREF
void *v33; // [rsp+1A0h] [rbp-70h]
__int128 v34; // [rsp+1A8h] [rbp-68h] BYREF
void *v35; // [rsp+1B8h] [rbp-58h]
__int128 v36; // [rsp+1C0h] [rbp-50h] BYREF
void *v37; // [rsp+1D0h] [rbp-40h]
unsigned int IntegerForKey; // [rsp+1DCh] [rbp-34h]
unsigned int v39; // [rsp+1E0h] [rbp-30h]
float v40; // [rsp+1E4h] [rbp-2Ch]
IntegerForKey = DS_Dictionary::getIntegerForKey(a1, "1");
DS_Dictionary::getStringForKey(&v24, (__int64)a1, "2", v1);
DS_Dictionary::getStringForKey(&v26, (__int64)a1, "4", v1);
v39 = DS_Dictionary::getIntegerForKey(a1, "3");
*(float *)&v1 = DS_Dictionary::getFloatForKey(a1, "5");
v40 = *(float *)&v1;
DS_Dictionary::getStringForKey(&v28, (__int64)a1, "6", v1);
DS_Dictionary::getStringForKey(&v30, (__int64)a1, "7", v1);
v2 = DS_Dictionary::getIntegerForKey(a1, "9");
DS_Dictionary::getStringForKey(&v32, (__int64)a1, "10", v1);
DS_Dictionary::getStringForKey(&v34, (__int64)a1, "16", v1);
v3 = DS_Dictionary::getIntegerForKey(a1, "11");
DS_Dictionary::getStringForKey(&v36, (__int64)a1, "12", v1);
BoolForKey = DS_Dictionary::getBoolForKey(a1, "13");
v5 = DS_Dictionary::getIntegerForKey(a1, "14");
if ( (v24 & 1) != 0 )
{
sub_100006B70(&v10, v25, *((unsigned __int64 *)&v24 + 1), v1);
}
else
{
__p = v25;
v1 = *(double *)&v24;
v10 = v24;
}
if ( (v26 & 1) != 0 )
{
sub_100006B70(&v12, v27, *((unsigned __int64 *)&v26 + 1), v1);
}
else
{
v13 = v27;
v1 = *(double *)&v26;
v12 = v26;
}
if ( (v28 & 1) != 0 )
{
sub_100006B70(&v14, v29, *((unsigned __int64 *)&v28 + 1), v1);
}
else
{
v15 = v29;
v1 = *(double *)&v28;
v14 = v28;
}
if ( (v30 & 1) != 0 )
{
sub_100006B70(&v16, v31, *((unsigned __int64 *)&v30 + 1), v1);
}
else
{
v17 = v31;
v1 = *(double *)&v30;
v16 = v30;
}
if ( (v32 & 1) != 0 )
{
sub_100006B70(&v18, v33, *((unsigned __int64 *)&v32 + 1), v1);
}
else
{
v19 = v33;
v1 = *(double *)&v32;
v18 = v32;
}
if ( (v34 & 1) != 0 )
{
sub_100006B70(&v20, v35, *((unsigned __int64 *)&v34 + 1), v1);
}
else
{
v21 = v35;
v1 = *(double *)&v34;
v20 = v34;
}
if ( (v36 & 1) != 0 )
{
sub_100006B70(&v22, v37, *((unsigned __int64 *)&v36 + 1), v1);
}
else
{
v23 = v37;
v22 = v36;
}
*(_QWORD *)&v6 = LODWORD(v40);
v7 = SongInfoObject::create(IntegerForKey, &v10, &v12, v39, &v14, &v16, v40, &v18, &v20, v3, &v22, BoolForKey, v5, v2);
if ( (v22 & 1) != 0 )
{
operator delete(v23);
if ( (v20 & 1) == 0 )
{
LABEL_24:
if ( (v18 & 1) == 0 )
goto LABEL_25;
goto LABEL_42;
}
}
else if ( (v20 & 1) == 0 )
{
goto LABEL_24;
}
operator delete(v21);
if ( (v18 & 1) == 0 )
{
LABEL_25:
if ( (v16 & 1) == 0 )
goto LABEL_26;
goto LABEL_43;
}
LABEL_42:
operator delete(v19);
if ( (v16 & 1) == 0 )
{
LABEL_26:
if ( (v14 & 1) == 0 )
goto LABEL_27;
goto LABEL_44;
}
LABEL_43:
operator delete(v17);
if ( (v14 & 1) == 0 )
{
LABEL_27:
if ( (v12 & 1) == 0 )
goto LABEL_28;
goto LABEL_45;
}
LABEL_44:
operator delete(v15);
if ( (v12 & 1) == 0 )
{
LABEL_28:
if ( (v10 & 1) == 0 )
goto LABEL_30;
goto LABEL_29;
}
LABEL_45:
operator delete(v13);
if ( (v10 & 1) != 0 )
LABEL_29:
operator delete(__p);
LABEL_30:
DS_Dictionary::getStringForKey(&__str, (__int64)a1, "15", v6);
std::string::operator=((std::string *)&v7[9].m_uIndexInArray, &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
{
operator delete(__str.__r_.__value_.__l.__data_);
if ( (v36 & 1) == 0 )
{
LABEL_32:
if ( (v34 & 1) == 0 )
goto LABEL_33;
goto LABEL_49;
}
}
else if ( (v36 & 1) == 0 )
{
goto LABEL_32;
}
operator delete(v37);
if ( (v34 & 1) == 0 )
{
LABEL_33:
if ( (v32 & 1) == 0 )
goto LABEL_34;
goto LABEL_50;
}
LABEL_49:
operator delete(v35);
if ( (v32 & 1) == 0 )
{
LABEL_34:
if ( (v30 & 1) == 0 )
goto LABEL_35;
goto LABEL_51;
}
LABEL_50:
operator delete(v33);
if ( (v30 & 1) == 0 )
{
LABEL_35:
if ( (v28 & 1) == 0 )
goto LABEL_36;
goto LABEL_52;
}
LABEL_51:
operator delete(v31);
if ( (v28 & 1) == 0 )
{
LABEL_36:
if ( (v26 & 1) == 0 )
goto LABEL_37;
LABEL_53:
operator delete(v27);
if ( (v24 & 1) == 0 )
return (SongInfoObject *)v7;
goto LABEL_38;
}
LABEL_52:
operator delete(v29);
if ( (v26 & 1) != 0 )
goto LABEL_53;
LABEL_37:
if ( (v24 & 1) != 0 )
LABEL_38:
operator delete(v25);
return (SongInfoObject *)v7;
}