// // GJEffectManager::processInheritedColors from 0xa1b580 to 0xa1b80c (652 bytes) // // 4 xrefs: // > PlayLayer::loadDefaultColors @ 0x70599c // > GJEffectManager::loadFromState @ 0xa1bb48 // > GJEffectManager::processColors @ 0xa1be54 // > @ 0xe1c10 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:59:37 +0000 // __int64 __fastcall GJEffectManager::processInheritedColors(cocos2d::CCDictionary **this) { __int64 result; // x0 __int64 v3; // x2 __int64 i; // x0 __int64 v5; // x1 __int64 v6; // x1 __int64 v7; // x19 __int64 v8; // x24 int v9; // w0 int v10; // w21 int v11; // w23 __int64 v12; // x3 __int64 v13; // x20 __int64 v14; // x0 __int64 v15; // x22 __int64 v16; // x0 __int64 j; // x19 InheritanceNode *v18; // x1 __int64 v19; // [xsp+68h] [xbp+68h] __int64 v20; // [xsp+68h] [xbp+68h] result = cocos2d::CCDictionary::count(*(this + 70)); if ( !(_DWORD)result ) return result; result = (__int64)*(this + 71); if ( result ) { v3 = *(_QWORD *)(result + 56); if ( v3 ) { for ( i = *(_QWORD *)(v3 + 288); ; i = *(_QWORD *)(i + 288) ) { v5 = *(_QWORD *)(v3 + 264); v3 = i; if ( !*(_BYTE *)(v5 + 81) ) { *(_QWORD *)(v5 + 64) = 0; *(_BYTE *)(v5 + 80) = 1; *(_BYTE *)(v5 + 81) = 1; } if ( !i ) break; } v6 = (__int64)*(this + 70); if ( !v6 ) goto LABEL_33; } else { v6 = (__int64)*(this + 70); if ( !v6 ) { LABEL_34: result = *(_QWORD *)(result + 56); if ( result ) { for ( j = *(_QWORD *)(result + 288); ; j = *(_QWORD *)(j + 288) ) { v18 = *(InheritanceNode **)(result + 264); result = *((unsigned __int8 *)v18 + 81); if ( !*((_BYTE *)v18 + 81) ) { result = (__int64)this; if ( *((_BYTE *)v18 + 80) ) result = GJEffectManager::traverseInheritanceChain(this, v18); } if ( !j ) break; result = j; } } return result; } } result = *(_QWORD *)(v6 + 56); if ( result ) goto LABEL_14; LABEL_33: result = (__int64)*(this + 71); if ( !result ) return result; goto LABEL_34; } result = (__int64)*(this + 70); if ( result ) { result = *(_QWORD *)(result + 56); if ( result ) { LABEL_14: v7 = *(_QWORD *)(result + 264); v8 = *(_QWORD *)(result + 288); v9 = *(_DWORD *)(v7 + 120); *(_BYTE *)(v7 + 124) = 0; *(_BYTE *)(v7 + 126) = 0; if ( v9 <= 9998 ) goto LABEL_15; LABEL_28: v10 = *(_DWORD *)(v7 + 92); v11 = 9999; v12 = 79992; if ( v10 <= 0 ) { LABEL_29: v13 = *(_QWORD *)(v7 + 152); v10 = 0; v14 = (__int64)*(this + 72); if ( v13 ) goto LABEL_22; LABEL_30: v13 = *(_QWORD *)(v14 + 8LL * v10); if ( !v13 ) { v19 = v12; v13 = InheritanceNode::create(v10, 0); cocos2d::CCDictionary::setObject(*(this + 71), (cocos2d::CCObject *)v13, v10); v12 = v19; *((_QWORD *)*(this + 72) + v10) = v13; v14 = (__int64)*(this + 72); } goto LABEL_22; } while ( 1 ) { v13 = *(_QWORD *)(v7 + 152); if ( v10 > 9998 ) v10 = 9999; v14 = (__int64)*(this + 72); if ( !v13 ) goto LABEL_30; LABEL_22: v15 = *(_QWORD *)(v14 + v12); if ( v15 ) { *(_QWORD *)(v7 + 152) = v13; *(_BYTE *)(v13 + 81) = 0; *(_BYTE *)(v15 + 81) = 0; *(_QWORD *)(v13 + 72) = v7; if ( *(_QWORD *)(v15 + 72) ) goto LABEL_24; } else { v20 = v12; v15 = InheritanceNode::create(v11, 0); cocos2d::CCDictionary::setObject(*(this + 71), (cocos2d::CCObject *)v15, v11); *(_QWORD *)((char *)*(this + 72) + v20) = v15; *(_QWORD *)(v7 + 152) = v13; *(_BYTE *)(v13 + 81) = 0; *(_BYTE *)(v15 + 81) = 0; *(_QWORD *)(v13 + 72) = v7; if ( *(_QWORD *)(v15 + 72) ) goto LABEL_24; } *(_QWORD *)(v15 + 72) = GJEffectManager::getColorAction((GJEffectManager *)this, v11); LABEL_24: if ( (unsigned __int8)GJEffectManager::wouldCreateLoop((__int64)this, v15, v10) ) { *(_BYTE *)(v7 + 126) = 1; } else if ( !*(_QWORD *)(v13 + 64) ) { *(_QWORD *)(v13 + 64) = v15; *(_BYTE *)(v15 + 80) = 0; if ( !v8 ) goto LABEL_33; goto LABEL_27; } if ( !v8 ) goto LABEL_33; LABEL_27: v16 = v8; v8 = *(_QWORD *)(v8 + 288); v7 = *(_QWORD *)(v16 + 264); v9 = *(_DWORD *)(v7 + 120); *(_BYTE *)(v7 + 124) = 0; *(_BYTE *)(v7 + 126) = 0; if ( v9 > 9998 ) goto LABEL_28; LABEL_15: v10 = *(_DWORD *)(v7 + 92); if ( v9 < 0 ) v11 = 0; else v11 = v9; v12 = 8LL * v11; if ( v10 <= 0 ) goto LABEL_29; } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source