//
// LevelSettingsObject::setupColorsFromLegacyMode from 0x36c3b0 to 0x36c9ba (1546 bytes)
//
// 1 xrefs:
// > LevelSettingsObject::objectFromDict @ 0x36d3f2
//
// 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
//
void LevelSettingsObject::setupColorsFromLegacyMode(LevelSettingsObject *a1, cocos2d::CCDictionary *a2)
{
cocos2d::CCString *v4; // r0
GLubyte v5; // r10
cocos2d::CCString *v6; // r0
GLubyte v7; // r9
cocos2d::CCString *v8; // r0
GLubyte v9; // r6
cocos2d::CCString *v10; // r0
GLubyte v11; // r6
cocos2d::CCString *v12; // r0
GLubyte v13; // r8
cocos2d::CCString *v14; // r0
GLubyte v15; // r10
int v16; // r6
cocos2d::CCString *v17; // r0
char v18; // r6
cocos2d::CCString *v19; // r0
char v20; // r8
cocos2d::CCString *v21; // r0
char v22; // r10
cocos2d::CCString *v23; // r0
char v24; // r6
cocos2d::CCString *v25; // r0
char v26; // r8
cocos2d::CCString *v27; // r0
char v28; // r10
cocos2d::CCString *v29; // r0
char v30; // r6
cocos2d::CCString *v31; // r0
char v32; // r8
cocos2d::CCString *v33; // r0
char v34; // r10
cocos2d::CCString *v35; // r0
char v36; // r8
cocos2d::CCString *v37; // r0
char v38; // r6
cocos2d::CCString *v39; // r0
char v40; // r9
char v41; // r11
cocos2d::CCString *v42; // r0
char v43; // r9
cocos2d::CCString *v44; // r0
char v45; // r8
cocos2d::CCString *v46; // r0
char v47; // r6
char v48; // r10
cocos2d::CCString *v49; // r0
cocos2d::CCString *v50; // r0
cocos2d::CCString *v51; // r0
cocos2d::CCString *v52; // r0
cocos2d::CCString *v53; // r0
cocos2d::CCString *v54; // r0
cocos2d::CCString *v55; // r0
bool v56; // r9
cocos2d::CCString *v57; // r0
bool v58; // r5
ColorAction *ColorAction; // r0
ColorAction *v60; // r0
ColorAction *v61; // r0
ColorAction *v62; // r0
ColorAction *v63; // r0
ColorAction *v64; // r0
ColorAction *v65; // r0
ColorAction *v66; // r0
char v67; // [sp+0h] [bp-74h]
char v68; // [sp+4h] [bp-70h]
char v69; // [sp+8h] [bp-6Ch]
char v70; // [sp+Ch] [bp-68h]
char v71; // [sp+10h] [bp-64h]
char v72; // [sp+14h] [bp-60h]
char v73; // [sp+18h] [bp-5Ch]
char v74; // [sp+1Ch] [bp-58h]
char v75; // [sp+20h] [bp-54h]
char v76; // [sp+24h] [bp-50h]
char v77; // [sp+28h] [bp-4Ch]
GLubyte v78; // [sp+2Ch] [bp-48h]
GLubyte v79; // [sp+30h] [bp-44h]
GLubyte v80; // [sp+34h] [bp-40h]
GLubyte v81; // [sp+38h] [bp-3Ch]
GLubyte v82; // [sp+3Ch] [bp-38h]
GLubyte v83; // [sp+40h] [bp-34h]
int v84; // [sp+44h] [bp-30h]
int v85; // [sp+48h] [bp-2Ch]
int v86; // [sp+4Ch] [bp-28h]
int v87; // [sp+50h] [bp-24h]
int v88; // [sp+54h] [bp-20h]
int v89; // [sp+58h] [bp-1Ch]
std::string v90; // [sp+68h] [bp-Ch] BYREF
sub_776584((int)&v90, "kS1");
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v5 = cocos2d::CCString::intValue(v4);
sub_774008(&v90);
sub_776584((int)&v90, "kS2");
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v7 = cocos2d::CCString::intValue(v6);
sub_774008(&v90);
sub_776584((int)&v90, "kS3");
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v9 = cocos2d::CCString::intValue(v8);
sub_774008(&v90);
v78 = v5;
v79 = v7;
v80 = v9;
sub_776584((int)&v90, "kS4");
v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v11 = cocos2d::CCString::intValue(v10);
sub_774008(&v90);
sub_776584((int)&v90, "kS5");
v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v13 = cocos2d::CCString::intValue(v12);
sub_774008(&v90);
sub_776584((int)&v90, "kS6");
v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v15 = cocos2d::CCString::intValue(v14);
sub_774008(&v90);
v81 = v11;
v82 = v13;
v83 = v15;
sub_776584((int)&v90, "kS7");
v16 = cocos2d::CCDictionary::objectForKey(a2, &v90);
sub_774008(&v90);
if ( v16 )
{
sub_776584((int)&v90, "kS7");
v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v18 = cocos2d::CCString::intValue(v17);
sub_774008(&v90);
sub_776584((int)&v90, "kS8");
v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v20 = cocos2d::CCString::intValue(v19);
sub_774008(&v90);
sub_776584((int)&v90, "kS9");
v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v22 = cocos2d::CCString::intValue(v21);
sub_774008(&v90);
v77 = v18;
v76 = v20;
v75 = v22;
sub_776584((int)&v90, "kS10");
v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v24 = cocos2d::CCString::intValue(v23);
sub_774008(&v90);
sub_776584((int)&v90, "kS11");
v25 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v26 = cocos2d::CCString::intValue(v25);
sub_774008(&v90);
sub_776584((int)&v90, "kS12");
v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v28 = cocos2d::CCString::intValue(v27);
sub_774008(&v90);
v74 = v24;
v73 = v26;
v72 = v28;
sub_776584((int)&v90, "kS13");
v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v30 = cocos2d::CCString::intValue(v29);
sub_774008(&v90);
sub_776584((int)&v90, "kS14");
v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v32 = cocos2d::CCString::intValue(v31);
sub_774008(&v90);
sub_776584((int)&v90, "kS15");
v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v34 = cocos2d::CCString::intValue(v33);
sub_774008(&v90);
v71 = v30;
v70 = v32;
v69 = v34;
sub_776584((int)&v90, "kS21");
v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v36 = cocos2d::CCString::intValue(v35);
sub_774008(&v90);
sub_776584((int)&v90, "kS22");
v37 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v38 = cocos2d::CCString::intValue(v37);
sub_774008(&v90);
sub_776584((int)&v90, "kS23");
v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v40 = cocos2d::CCString::intValue(v39);
sub_774008(&v90);
v68 = v36;
v67 = v38;
sub_776584((int)&v90, "kS24");
v41 = v40;
v42 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v43 = cocos2d::CCString::intValue(v42);
sub_774008(&v90);
sub_776584((int)&v90, "kS25");
v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v45 = cocos2d::CCString::intValue(v44);
sub_774008(&v90);
sub_776584((int)&v90, "kS26");
v46 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v47 = cocos2d::CCString::intValue(v46);
sub_774008(&v90);
v48 = v43;
}
else
{
v47 = -1;
v67 = -1;
v45 = -1;
v48 = -1;
v41 = -1;
v68 = -1;
v69 = -1;
v70 = -1;
v71 = -1;
v72 = -1;
v73 = -1;
v74 = -1;
v75 = -1;
v76 = -1;
v77 = -1;
}
sub_776584((int)&v90, "kS16");
v49 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v84 = cocos2d::CCString::intValue(v49);
sub_774008(&v90);
sub_776584((int)&v90, "kS17");
v50 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v85 = cocos2d::CCString::intValue(v50);
sub_774008(&v90);
sub_776584((int)&v90, "kS18");
v51 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v86 = cocos2d::CCString::intValue(v51);
sub_774008(&v90);
sub_776584((int)&v90, "kS19");
v52 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v87 = cocos2d::CCString::intValue(v52);
sub_774008(&v90);
sub_776584((int)&v90, "kS20");
v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v88 = cocos2d::CCString::intValue(v53);
sub_774008(&v90);
sub_776584((int)&v90, "kS28");
v54 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v89 = cocos2d::CCString::intValue(v54);
sub_774008(&v90);
sub_776584((int)&v90, "kA5");
v55 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v56 = cocos2d::CCString::boolValue(v55);
sub_774008(&v90);
sub_776584((int)&v90, "kA12");
v57 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v58 = cocos2d::CCString::boolValue(v57);
sub_774008(&v90);
ColorAction = GJEffectManager::getColorAction(a1->m_effectManager, 1000);
ColorAction->m_fromColor.r = v78;
ColorAction->m_fromColor.g = v79;
ColorAction->m_fromColor.b = v80;
ColorAction->m_playerColor = v84;
v60 = GJEffectManager::getColorAction(a1->m_effectManager, 1001);
v60->m_fromColor.r = v81;
v60->m_fromColor.g = v82;
v60->m_fromColor.b = v83;
v60->m_playerColor = v85;
v61 = GJEffectManager::getColorAction(a1->m_effectManager, 1002);
v61->m_fromColor.r = v77;
v61->m_blending = 1;
v61->m_fromColor.g = v76;
v61->m_fromColor.b = v75;
v61->m_playerColor = v86;
v62 = GJEffectManager::getColorAction(a1->m_effectManager, 1004);
v62->m_fromColor.r = v74;
v62->m_fromColor.g = v73;
v62->m_fromColor.b = v72;
v62->m_playerColor = v87;
v63 = GJEffectManager::getColorAction(a1->m_effectManager, 1);
v63->m_fromColor.r = v71;
v63->m_blending = v56;
v63->m_fromColor.g = v70;
v63->m_fromColor.b = v69;
v63->m_playerColor = v88;
v64 = GJEffectManager::getColorAction(a1->m_effectManager, 2);
v64->m_fromColor.r = v68;
v64->m_fromColor.b = v41;
v64->m_fromColor.g = v67;
v64->m_playerColor = v89;
v65 = GJEffectManager::getColorAction(a1->m_effectManager, 3);
v65->m_fromColor.r = v48;
v65->m_fromColor.g = v45;
v65->m_fromColor.b = v47;
v65->m_blending = v58;
v66 = GJEffectManager::getColorAction(a1->m_effectManager, 4);
v66->m_fromColor.r = -1;
v66->m_fromColor.g = -1;
v66->m_fromColor.b = -1;
}