// // PlayLayer::loadDefaultColors from 0x1403b1c50 to 0x1403b1f8a (826 bytes) // // 4 xrefs: // > PlayLayer::setupHasCompleted @ 0x1403a73c0 // > PlayLayer::resetLevel @ 0x1403b9480 // > @ 0x1406d6e0c // > @ 0x1406d6e18 // // 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 // // Hidden C++ exception states: #wind=1 void PlayLayer::loadDefaultColors(PlayLayer *a1) { __int64 v1; // r8 cocos2d::CCArray *AllColorActions; // rsi unsigned int i; // ebx struct cocos2d::CCObject *v5; // rax GJEffectManager *m_effectManager; // rbx __int64 v7; // rcx cocos2d::CCArray *v8; // rsi cocos2d::CCDictionary *m_unkObject148; // rdx cocos2d::CCDictElement *m_pElements; // rdx cocos2d::CCDictElement *j; // rbx unsigned int k; // ebx __int64 v13; // rcx struct cocos2d::CCObject *v14; // rax GJEffectManager *v15; // rbx cocos2d::CCArray *v16; // rsi cocos2d::CCDictionary *v17; // rdx cocos2d::CCDictElement *v18; // rdx cocos2d::CCDictElement *m; // rbx unsigned int v20; // ebx struct cocos2d::CCObject *v21; // r9 unsigned int v22; // r8d __int64 v23; // rax int v24; // [rsp+20h] [rbp-A8h] int v25; // [rsp+40h] [rbp-88h] _BYTE v26[16]; // [rsp+60h] [rbp-68h] BYREF char v27[8]; // [rsp+70h] [rbp-58h] BYREF void *v28; // [rsp+78h] [rbp-50h] BYREF __int64 v29[3]; // [rsp+88h] [rbp-40h] BYREF __int64 v30; // [rsp+A0h] [rbp-28h] int m_uUnknown; // [rsp+D0h] [rbp+8h] BYREF m_uUnknown = 0; sub_14005E660((__int64)v27, &m_uUnknown, v1); AllColorActions = GJEffectManager::getAllColorActions(a1->m_effectManager); for ( i = 0; i < cocos2d::CCArray::count(AllColorActions); ++i ) { v5 = cocos2d::CCArray::objectAtIndex(AllColorActions, i); if ( LOBYTE(v5[1].m_eObjType) ) { m_uUnknown = v5[1].m_uUnknown; sub_140060D70((__int64)v27, (__int64)v26, (unsigned __int8 *)&m_uUnknown); } } GJEffectManager::reset(a1->m_effectManager); m_effectManager = a1->m_levelSettings->GJBaseGameLayer::m_effectManager; v8 = (cocos2d::CCArray *)cocos2d::CCArray::create(v7); m_unkObject148 = m_effectManager->m_unkObject148; if ( m_unkObject148 ) { m_pElements = m_unkObject148->m_pElements; if ( m_pElements ) { for ( j = (cocos2d::CCDictElement *)m_pElements->hh.next; ; j = (cocos2d::CCDictElement *)j->hh.next ) { cocos2d::CCArray::addObject(v8, m_pElements->m_pObject); m_pElements = j; if ( !j ) break; } } } for ( k = 0; k < cocos2d::CCArray::count(v8); ++k ) { v14 = cocos2d::CCArray::objectAtIndex(v8, k); LOBYTE(v25) = BYTE1(v14[2].m_nLuaID); LOBYTE(v24) = v14[1].m_eObjType; ((void (__fastcall *)(PlayLayer *, int *, int *, _QWORD, int, int, int *, unsigned int, int, _QWORD, int, unsigned int))a1->updateColor)( a1, &v14[1].m_nTag, &v14[1].m_uOrderOfArrival, (unsigned int)v14[1].m_uUnknown, v24, v14[1].m_unknown2, &v14[1].m_uOrderOfArrival, v14[2].m_uID, v25, 0, v14[2].m_nTag, v14[2].m_uReference); } v15 = a1->m_effectManager; v16 = (cocos2d::CCArray *)cocos2d::CCArray::create(v13); v17 = v15->m_unkObject148; if ( v17 ) { v18 = v17->m_pElements; if ( v18 ) { for ( m = (cocos2d::CCDictElement *)v18->hh.next; ; m = (cocos2d::CCDictElement *)m->hh.next ) { cocos2d::CCArray::addObject(v16, v18->m_pObject); v18 = m; if ( !m ) break; } } } v20 = 0; if ( cocos2d::CCArray::count(v16) ) { while ( 1 ) { v21 = cocos2d::CCArray::objectAtIndex(v16, v20); v22 = v21[1].m_uUnknown; v23 = *(_QWORD *)(v29[0] + 16 * ((0x100000001B3LL * (((unsigned __int64)v22 >> 24) ^ (0x100000001B3LL * (BYTE2(v22) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v22 ^ 0xCBF29CE484222325uLL)) ^ BYTE1(v22))))))) & v30) + 8); if ( (void *)v23 == v28 ) goto LABEL_23; if ( v22 != *(_DWORD *)(v23 + 16) ) break; LABEL_24: if ( LOBYTE(v21[1].m_eObjType) != (v23 != 0) ) { m_uUnknown = v21[1].m_uUnknown; sub_140060D70((__int64)&a1->m_blendingColors, (__int64)v26, (unsigned __int8 *)&m_uUnknown); } if ( ++v20 >= cocos2d::CCArray::count(v16) ) goto LABEL_27; } while ( v23 != *(_QWORD *)(v29[0] + 16 * ((0x100000001B3LL * (((unsigned __int64)(unsigned int)v21[1].m_uUnknown >> 24) ^ (0x100000001B3LL * ((unsigned __int8)BYTE2(v21[1].m_uUnknown) ^ (0x100000001B3LL * ((0x100000001B3LL * ((unsigned __int8)v22 ^ 0xCBF29CE484222325uLL)) ^ (unsigned __int8)BYTE1(v21[1].m_uUnknown))))))) & v30)) ) { v23 = *(_QWORD *)(v23 + 8); if ( v22 == *(_DWORD *)(v23 + 16) ) goto LABEL_24; } LABEL_23: v23 = 0; goto LABEL_24; } LABEL_27: GJEffectManager::updateEffects(a1->m_effectManager, 0.0); GJEffectManager::calculateBaseActiveColors(a1->m_effectManager); GJEffectManager::processInheritedColors(a1->m_effectManager); sub_14005D100((__int64)v29); sub_14005D870(&v28); }
GD Web Decomp Icon

GD Web Decomp

Raw Source