// // GJEffectManager::processInheritedColors from 0x5c3d48 to 0x5c3ede (406 bytes) // // 3 xrefs: // > PlayLayer::loadDefaultColors @ 0x409536 // > GJEffectManager::processColors @ 0x5c6684 // > GJEffectManager::loadFromState @ 0x5d2382 // // 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:53:51 +0000 // int __fastcall GJEffectManager::processInheritedColors(cocos2d::CCDictionary **this) { int result; // r0 int v3; // r3 int v4; // r3 int v5; // r3 int v6; // r2 int v7; // r3 int v8; // r3 int v9; // r8 int v10; // r3 int v11; // r10 int v12; // r3 int v13; // r7 int v14; // r11 int v15; // r5 InheritanceNode *v16; // r2 InheritanceNode *v17; // r2 int v18; // r6 int v19; // r2 int v20; // r3 int v21; // r5 InheritanceNode *v22; // r1 int v23; // r2 result = cocos2d::CCDictionary::count(*(this + 96)); if ( result ) { v3 = (int)*(this + 97); if ( v3 ) { v5 = *(_DWORD *)(v3 + 52); if ( v5 ) v6 = *(_DWORD *)(v5 + 272); else v6 = 0; while ( v5 ) { v7 = *(_DWORD *)(v5 + 260); if ( !*(_BYTE *)(v7 + 65) ) { *(_DWORD *)(v7 + 56) = *(unsigned __int8 *)(v7 + 65); *(_BYTE *)(v7 + 64) = 1; *(_BYTE *)(v7 + 65) = 1; } if ( v6 ) result = *(_DWORD *)(v6 + 272); else result = 0; v5 = v6; v6 = result; } } v4 = (int)*(this + 96); if ( v4 ) { v8 = *(_DWORD *)(v4 + 52); if ( v8 ) v9 = *(_DWORD *)(v8 + 272); else v9 = 0; while ( v8 ) { v11 = *(_DWORD *)(v8 + 260); v12 = *(_DWORD *)(v11 + 116); v13 = *(_DWORD *)(v11 + 88); *(_BYTE *)(v11 + 120) = 0; *(_BYTE *)(v11 + 122) = 0; if ( v12 > 9998 ) v14 = (int)&stru_270C.st_name + 3; else v14 = v12 & ~(v12 >> 31); if ( v13 <= 0 ) { v13 = 0; } else if ( v13 >= (int)&stru_270C.st_name + 3 ) { v13 = (int)&stru_270C.st_name + 3; } v15 = *(_DWORD *)(v11 + 140); if ( !v15 ) { v16 = *(this + 98); v15 = *((_DWORD *)v16 + v13); if ( !v15 ) { v15 = InheritanceNode::create((InheritanceNode *)v13, 0, v16); cocos2d::CCDictionary::setObject(*(this + 97), (cocos2d::CCObject *)v15, v13); *((_DWORD *)*(this + 98) + v13) = v15; } } v17 = *(this + 98); v18 = *((_DWORD *)v17 + v14); if ( !v18 ) { v18 = InheritanceNode::create((InheritanceNode *)v14, 0, v17); cocos2d::CCDictionary::setObject(*(this + 97), (cocos2d::CCObject *)v18, v14); *((_DWORD *)*(this + 98) + v14) = v18; } *(_DWORD *)(v11 + 140) = v15; *(_BYTE *)(v15 + 65) = 0; *(_BYTE *)(v18 + 65) = 0; *(_DWORD *)(v15 + 60) = v11; if ( !*(_DWORD *)(v18 + 60) ) *(_DWORD *)(v18 + 60) = GJEffectManager::getColorAction((GJEffectManager *)this, v14); result = GJEffectManager::wouldCreateLoop((int)this, v18, v13); if ( result ) { *(_BYTE *)(v11 + 122) = 1; } else if ( !*(_DWORD *)(v15 + 56) ) { *(_DWORD *)(v15 + 56) = v18; *(_BYTE *)(v18 + 64) = 0; } if ( v9 ) v19 = *(_DWORD *)(v9 + 272); else v19 = 0; v8 = v9; v9 = v19; } } v10 = (int)*(this + 97); if ( v10 ) { v20 = *(_DWORD *)(v10 + 52); if ( v20 ) v21 = *(_DWORD *)(v20 + 272); else v21 = 0; while ( v20 ) { v22 = *(InheritanceNode **)(v20 + 260); if ( !*((_BYTE *)v22 + 65) && *((_BYTE *)v22 + 64) ) result = GJEffectManager::traverseInheritanceChain(this, v22); if ( v21 ) v23 = *(_DWORD *)(v21 + 272); else v23 = 0; v20 = v21; v21 = v23; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source