//
// LevelSettingsObject::setupColorsFromLegacyMode from 0x4663f0 to 0x466aec (1788 bytes)
//
// 1 xrefs:
// > LevelSettingsObject::objectFromDict @ 0x4754e0
//
// 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:48:57 +0000
//
_BYTE *__fastcall LevelSettingsObject::setupColorsFromLegacyMode(GJEffectManager **this, cocos2d::CCDictionary *a2)
{
cocos2d::CCString *v4; // r0
char v5; // r9
cocos2d::CCString *v6; // r0
char v7; // r8
cocos2d::CCString *v8; // r0
char v9; // r10
cocos2d::CCString *v10; // r0
char v11; // r6
cocos2d::CCString *v12; // r0
char v13; // r8
cocos2d::CCString *v14; // r0
char 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
char v56; // r9
cocos2d::CCString *v57; // r0
char v58; // r5
int ColorAction; // r0
int v60; // r0
int v61; // r0
int v62; // r0
int v63; // r0
int v64; // r0
_BYTE *v65; // r0
_BYTE *result; // 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]
char v78; // [sp+2Ch] [bp-48h]
char v79; // [sp+30h] [bp-44h]
char v80; // [sp+34h] [bp-40h]
char v81; // [sp+38h] [bp-3Ch]
char v82; // [sp+3Ch] [bp-38h]
char 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]
int v90; // [sp+60h] [bp-14h] BYREF
int v91; // [sp+64h] [bp-10h]
int v92; // [sp+68h] [bp-Ch]
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS1", 3u);
v4 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v5 = cocos2d::CCString::intValue(v4);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS2", 3u);
v6 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v7 = cocos2d::CCString::intValue(v6);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS3", 3u);
v8 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v9 = cocos2d::CCString::intValue(v8);
std::string::~string((int)&v90);
v90 = 0;
v78 = v5;
v91 = 0;
v79 = v7;
v92 = 0;
v80 = v9;
std::string::__init(&v90, "kS4", 3u);
v10 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v11 = cocos2d::CCString::intValue(v10);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS5", 3u);
v12 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v13 = cocos2d::CCString::intValue(v12);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS6", 3u);
v14 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v15 = cocos2d::CCString::intValue(v14);
std::string::~string((int)&v90);
v81 = v11;
v82 = v13;
v83 = v15;
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS7", 3u);
v16 = cocos2d::CCDictionary::objectForKey(a2, &v90);
std::string::~string((int)&v90);
if ( v16 )
{
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS7", 3u);
v17 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v18 = cocos2d::CCString::intValue(v17);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS8", 3u);
v19 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v20 = cocos2d::CCString::intValue(v19);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS9", 3u);
v21 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v22 = cocos2d::CCString::intValue(v21);
std::string::~string((int)&v90);
v77 = v18;
v76 = v20;
v75 = v22;
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS10", 4u);
v23 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v24 = cocos2d::CCString::intValue(v23);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS11", 4u);
v25 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v26 = cocos2d::CCString::intValue(v25);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS12", 4u);
v27 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v28 = cocos2d::CCString::intValue(v27);
std::string::~string((int)&v90);
v74 = v24;
v73 = v26;
v72 = v28;
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS13", 4u);
v29 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v30 = cocos2d::CCString::intValue(v29);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS14", 4u);
v31 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v32 = cocos2d::CCString::intValue(v31);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS15", 4u);
v33 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v34 = cocos2d::CCString::intValue(v33);
std::string::~string((int)&v90);
v71 = v30;
v70 = v32;
v69 = v34;
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS21", 4u);
v35 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v36 = cocos2d::CCString::intValue(v35);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS22", 4u);
v37 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v38 = cocos2d::CCString::intValue(v37);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS23", 4u);
v39 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v40 = cocos2d::CCString::intValue(v39);
std::string::~string((int)&v90);
v68 = v36;
v67 = v38;
v90 = 0;
v41 = v40;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS24", 4u);
v42 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v43 = cocos2d::CCString::intValue(v42);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS25", 4u);
v44 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v45 = cocos2d::CCString::intValue(v44);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS26", 4u);
v46 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v47 = cocos2d::CCString::intValue(v46);
std::string::~string((int)&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;
}
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS16", 4u);
v49 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v84 = cocos2d::CCString::intValue(v49);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS17", 4u);
v50 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v85 = cocos2d::CCString::intValue(v50);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS18", 4u);
v51 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v86 = cocos2d::CCString::intValue(v51);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS19", 4u);
v52 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v87 = cocos2d::CCString::intValue(v52);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS20", 4u);
v53 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v88 = cocos2d::CCString::intValue(v53);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kS28", 4u);
v54 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v89 = cocos2d::CCString::intValue(v54);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kA5", 3u);
v55 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v56 = cocos2d::CCString::boolValue(v55);
std::string::~string((int)&v90);
v90 = 0;
v91 = 0;
v92 = 0;
std::string::__init(&v90, "kA12", 4u);
v57 = (cocos2d::CCString *)cocos2d::CCDictionary::valueForKey(a2, &v90);
v58 = cocos2d::CCString::boolValue(v57);
std::string::~string((int)&v90);
ColorAction = GJEffectManager::getColorAction(*(this + 66), 1000);
*(_BYTE *)(ColorAction + 68) = v78;
*(_BYTE *)(ColorAction + 69) = v79;
*(_BYTE *)(ColorAction + 70) = v80;
*(_DWORD *)(ColorAction + 84) = v84;
v60 = GJEffectManager::getColorAction(*(this + 66), 1001);
*(_BYTE *)(v60 + 68) = v81;
*(_BYTE *)(v60 + 69) = v82;
*(_BYTE *)(v60 + 70) = v83;
*(_DWORD *)(v60 + 84) = v85;
v61 = GJEffectManager::getColorAction(*(this + 66), 1002);
*(_BYTE *)(v61 + 68) = v77;
*(_BYTE *)(v61 + 80) = 1;
*(_BYTE *)(v61 + 69) = v76;
*(_BYTE *)(v61 + 70) = v75;
*(_DWORD *)(v61 + 84) = v86;
v62 = GJEffectManager::getColorAction(*(this + 66), 1004);
*(_BYTE *)(v62 + 68) = v74;
*(_BYTE *)(v62 + 69) = v73;
*(_BYTE *)(v62 + 70) = v72;
*(_DWORD *)(v62 + 84) = v87;
v63 = GJEffectManager::getColorAction(*(this + 66), 1);
*(_BYTE *)(v63 + 68) = v71;
*(_BYTE *)(v63 + 80) = v56;
*(_BYTE *)(v63 + 69) = v70;
*(_BYTE *)(v63 + 70) = v69;
*(_DWORD *)(v63 + 84) = v88;
v64 = GJEffectManager::getColorAction(*(this + 66), 2);
*(_BYTE *)(v64 + 68) = v68;
*(_BYTE *)(v64 + 70) = v41;
*(_BYTE *)(v64 + 69) = v67;
*(_DWORD *)(v64 + 84) = v89;
v65 = (_BYTE *)GJEffectManager::getColorAction(*(this + 66), 3);
v65[68] = v48;
v65[69] = v45;
v65[70] = v47;
v65[80] = v58;
result = (_BYTE *)GJEffectManager::getColorAction(*(this + 66), 4);
result[68] = -1;
result[69] = -1;
result[70] = -1;
return result;
}