// // LevelEditorLayer::updateVisibility from 0x78e224 to 0x78ec60 (2620 bytes) // // 2 xrefs: // > @ 0xdb1c0 // > @ 0x1435e48 // // 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:53:28 +0000 // __int64 __fastcall LevelEditorLayer::updateVisibility(GJEffectManager **this, float a2) { GJEffectManager *v4; // x19 __int64 active; // x0 unsigned __int8 *v6; // x0 int v7; // w0 GameManager *v8; // x0 unsigned __int8 GameVariable; // w0 GameManager *v10; // x0 __int64 v11; // x24 int v12; // w23 char *v13; // x21 __int64 v14; // x1 GameObject *v15; // x28 int MainColorMode; // w0 unsigned int v17; // w25 float v18; // s8 _BYTE *v19; // x25 __int64 MainColor; // x25 GJEffectManager *v21; // x26 int v22; // w0 int v23; // s0 signed int v24; // w26 int v25; // w25 GJEffectManager *v26; // x0 int v27; // w0 int v28; // w3 unsigned int v29; // w1 __int64 v30; // x27 unsigned int GroupID; // w0 __int64 v32; // x0 signed int v33; // w1 __int64 v34; // x1 int v35; // w0 float v36; // s0 float v37; // s15 signed int v38; // w25 unsigned int v39; // w1 GJEffectManager *v40; // x26 int v41; // w0 float v42; // s0 _BYTE *v43; // x25 void (__fastcall *v44)(GameObject *, __int64 *); // x25 int SecondaryColorMode; // w0 float v47; // s0 float v48; // s0 void (__fastcall *v49)(GameObject *, __int64 *); // x25 __int64 SecondaryColor; // x25 GJEffectManager *v51; // x26 int v52; // w0 int v53; // s0 int v54; // w27 __int64 v55; // x0 signed int v56; // w25 unsigned int v57; // w1 __int64 v58; // x26 unsigned int v59; // w0 __int64 v60; // x0 __int64 v61; // x1 int v62; // w0 float v63; // s0 float v64; // s15 signed int v65; // w25 unsigned int v66; // w1 GJEffectManager *v67; // x26 int v68; // w0 float v69; // s0 int v70; // w0 unsigned __int64 v71; // [xsp+A0h] [xbp+A0h] int v72; // [xsp+B4h] [xbp+B4h] int v73; // [xsp+B8h] [xbp+B8h] _BOOL4 v74; // [xsp+BCh] [xbp+BCh] int v75; // [xsp+C8h] [xbp+C8h] __int64 v76; // [xsp+D0h] [xbp+D0h] BYREF __int64 v77; // [xsp+D8h] [xbp+D8h] __int64 v78; // [xsp+E0h] [xbp+E0h] BYREF LevelEditorLayer::forceShowSelectedObjects(this, 1u); GJBaseGameLayer::preUpdateVisibility((GJBaseGameLayer *)this, a2); LevelEditorLayer::forceShowSelectedObjects(this, 0); v4 = *(this + 269); v74 = *((_DWORD *)this + 493) == 1; active = GJEffectManager::activeColorForIndex(v4, 1005); LOWORD(v77) = active; BYTE2(v77) = BYTE2(active); GJEffectManager::calculateLightBGColor(v4, v77); v6 = (unsigned __int8 *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*(this + 493) + 944LL))(*(this + 493)); v7 = GameToolbox::transformColor(v6, 0.0, -0.3, 0.4); BYTE2(v75) = BYTE2(v7); LOWORD(v75) = v7; v8 = (GameManager *)GameManager::sharedState((GameManager *)v7); GameVariable = GameManager::getGameVariable(v8, "0121"); v73 = GameVariable; v10 = (GameManager *)GameManager::sharedState((GameManager *)GameVariable); v72 = (unsigned __int8)GameManager::getGameVariable(v10, "0209"); if ( *((int *)this + 3182) > 0 ) { v11 = 0; v12 = 0; v13 = (char *)(this + 1536); while ( 1 ) { v14 = (__int64)*(this + 1588); v15 = *(GameObject **)(v14 + v11); if ( !*((_DWORD *)this + 493) ) { GameObject::updateStartPos(*(GameObject **)(v14 + v11)); v49 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)v15 + 184LL); (*(void (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1360LL))(v15); v49(v15, &v78); } if ( !*((_BYTE *)v15 + 773) ) goto LABEL_11; if ( *((_BYTE *)this + 14296) || *((_BYTE *)v15 + 1148) ) break; MainColorMode = GameObject::getMainColorMode(v15); if ( ((1LL << (MainColorMode & 0x3F)) & *((_QWORD *)*(this + 1827) + ((unsigned __int64)MainColorMode >> 6))) != 0 ) goto LABEL_9; if ( !GameObject::hasSecondaryColor(v15) ) goto LABEL_11; SecondaryColorMode = GameObject::getSecondaryColorMode(v15); if ( ((1LL << (SecondaryColorMode & 0x3F)) & *((_QWORD *)*(this + 1827) + ((unsigned __int64)SecondaryColorMode >> 6))) != 0 ) { LABEL_9: v17 = 0; LABEL_10: (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)v15 + 1280LL))(v15, v17); GameObject::addColorSpriteToParent((__int64)v15, v17); *((_BYTE *)v15 + 1148) = 0; LABEL_11: (*(void (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1304LL))(v15); if ( *((_BYTE *)this + 14013) ) goto LABEL_70; goto LABEL_12; } (*(void (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1304LL))(v15); if ( *((_BYTE *)this + 14013) ) { LABEL_70: if ( (*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1728LL))(v15) ) goto LABEL_71; } LABEL_12: if ( !*((_BYTE *)this + 14012) || *((_DWORD *)v15 + 257) != 2065 || !(*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1728LL))(v15) ) { if ( !*((_BYTE *)this + 14013) ) goto LABEL_15; goto LABEL_72; } LABEL_71: v47 = *((double *)this + 115); (*(void (__fastcall **)(GameObject *, __int64, float))(*(_QWORD *)v15 + 1848LL))(v15, 0xFFFFFFFFLL, v47); if ( !*((_BYTE *)this + 14013) ) goto LABEL_15; LABEL_72: if ( !(*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1736LL))(v15) ) { LABEL_15: if ( *((_DWORD *)this + 493) ) goto LABEL_16; goto LABEL_74; } EnhancedGameObject::updateRotateAction((float *)v15, a2); if ( *((_DWORD *)this + 493) ) goto LABEL_16; LABEL_74: if ( !(*(unsigned __int8 (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1728LL))(v15) || !*((_BYTE *)v15 + 1417) ) { LABEL_16: if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1800LL))(v15) != 30 ) goto LABEL_17; goto LABEL_77; } EnhancedGameObject::previewAnimateOnTrigger(v15); if ( (*(unsigned int (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1800LL))(v15) != 30 ) goto LABEL_17; LABEL_77: v48 = 0.0; if ( v74 ) v48 = *(float *)((*(__int64 (__fastcall **)(_QWORD, float))(*(_QWORD *)*(this + 254) + 192LL))( *(this + 254), 0.0) + 4); EffectGameObject::updateInteractiveHover(v15, v48); LABEL_17: if ( v74 || LevelEditorLayer::validGroup((LevelEditorLayer *)this, v15, 0) ) { v18 = 255.0; if ( !v73 ) goto LABEL_53; } else { v18 = 50.0; if ( !v73 ) { LABEL_53: if ( !v72 || !*((_BYTE *)v15 + 1259) ) goto LABEL_55; goto LABEL_20; } } if ( !*((_BYTE *)v15 + 1294) ) goto LABEL_53; LABEL_20: if ( !*((_BYTE *)v15 + 1133) ) { v18 = 0.0; LABEL_22: v19 = (char *)this + 14297; if ( !*((_BYTE *)this + 14297) ) goto LABEL_58; goto LABEL_23; } LABEL_55: if ( *((_DWORD *)v15 + 257) != 3032 || !*((_DWORD *)this + 493) ) goto LABEL_22; v19 = (char *)this + 14297; v18 = 50.0; if ( !*((_BYTE *)this + 14297) ) { LABEL_58: if ( GameObject::hasSecondaryColor(v15) ) { *(float *)(*((_QWORD *)v15 + 138) + 8LL) = v18 * 0.7; if ( *((_BYTE *)v15 + 887) ) AnimatedGameObject::updateChildSpriteColor(v15, 0xFFFFFF); } if ( !*v19 ) goto LABEL_62; } LABEL_23: if ( !*((_BYTE *)v15 + 1133) ) { MainColor = GameObject::getMainColor(v15); v21 = *(this + 269); v22 = GameObject::getMainColorMode(v15); GJEffectManager::activeOpacityForIndex(v21, v22); *(_DWORD *)(MainColor + 8) = v23; if ( GameObject::hasSecondaryColor(v15) ) { SecondaryColor = GameObject::getSecondaryColor(v15); v51 = *(this + 269); v52 = GameObject::getSecondaryColorMode(v15); GJEffectManager::activeOpacityForIndex(v51, v52); *(_DWORD *)(SecondaryColor + 8) = v53; } v24 = 0; v25 = GameObject::getMainColorMode(v15); v26 = *(this + 269); LOWORD(v76) = -1; BYTE2(v76) = -1; v27 = GJEffectManager::activeColorForIndex(v26, v25); v28 = *((__int16 *)v15 + 584); LOWORD(v76) = v27; BYTE2(v76) = BYTE2(v27); if ( v28 > 0 ) { do { v29 = v24; v30 = (__int64)*(this + 269); ++v24; GroupID = GameObject::getGroupID(v15, v29); v32 = GJEffectManager::colorForGroupID(v30, GroupID, &v76, *((unsigned __int8 *)v15 + 1038) ^ 1u); v33 = *((__int16 *)v15 + 584); LOWORD(v76) = v32; BYTE2(v76) = BYTE2(v32); } while ( v33 > v24 ); } v34 = *((_QWORD *)v15 + 137); if ( *(float *)(v34 + 16) != *(float *)&dword_155C6B0 || *(float *)(v34 + 20) != *(float *)&dword_155C6B4 || *(float *)(v34 + 24) != *(float *)&dword_155C6B8 || *(unsigned __int16 *)(v34 + 28) != (unsigned __int16)word_155C6BC ) { v35 = GJEffectManager::colorForEffect(*(this + 269), v76, *(_QWORD *)(v34 + 16), *(_QWORD *)(v34 + 24)); LOWORD(v76) = v35; BYTE2(v76) = BYTE2(v35); } (*(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)v15 + 1584LL))(v15, &v76); if ( v25 <= 0 ) { v37 = 1.0; } else { GJEffectManager::activeOpacityForIndex(*(this + 269), v25); v37 = v36; } if ( *((__int16 *)v15 + 584) > 0 ) { v38 = 0; do { v39 = v38; v40 = *(this + 269); ++v38; v41 = GameObject::getGroupID(v15, v39); GJEffectManager::opacityModForGroup(v40, v41); v37 = v37 * v42; } while ( *((__int16 *)v15 + 584) > v38 ); } *(float *)(*((_QWORD *)v15 + 137) + 8LL) = v37; if ( GameObject::hasSecondaryColor(v15) ) { v54 = GameObject::getSecondaryColorMode(v15); LOWORD(v78) = -1; BYTE2(v78) = -1; if ( v54 == 1012 ) { v71 = v71 & 0xFFFF000000000000LL | 0x1003E19999ALL; v70 = GJEffectManager::colorForEffect(*(this + 269), v76, 0x3F26666600000000LL, v71); LOWORD(v78) = v70; BYTE2(v78) = BYTE2(v70); } else { if ( v54 > 0 ) { v55 = GJEffectManager::activeColorForIndex(*(this + 269), v54); LOWORD(v78) = v55; BYTE2(v78) = BYTE2(v55); } if ( *((__int16 *)v15 + 584) > 0 ) { v56 = 0; do { v57 = v56; v58 = (__int64)*(this + 269); ++v56; v59 = GameObject::getGroupID(v15, v57); v60 = GJEffectManager::colorForGroupID(v58, v59, &v78, 0); LOWORD(v78) = v60; BYTE2(v78) = BYTE2(v60); } while ( *((__int16 *)v15 + 584) > v56 ); } } v61 = *((_QWORD *)v15 + 138); if ( *(float *)(v61 + 16) != *(float *)&dword_155C6B0 || *(float *)(v61 + 20) != *(float *)&dword_155C6B4 || *(float *)(v61 + 24) != *(float *)&dword_155C6B8 || *(unsigned __int16 *)(v61 + 28) != (unsigned __int16)word_155C6BC ) { v62 = GJEffectManager::colorForEffect(*(this + 269), v78, *(_QWORD *)(v61 + 16), *(_QWORD *)(v61 + 24)); LOWORD(v78) = v62; BYTE2(v78) = BYTE2(v62); } (*(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)v15 + 1592LL))(v15, &v78); if ( v54 <= 0 ) { v64 = 1.0; } else { GJEffectManager::activeOpacityForIndex(*(this + 269), v54); v64 = v63; } if ( *((__int16 *)v15 + 584) > 0 ) { v65 = 0; do { v66 = v65; v67 = *(this + 269); ++v65; v68 = GameObject::getGroupID(v15, v66); GJEffectManager::opacityModForGroup(v67, v68); v64 = v64 * v69; } while ( *((__int16 *)v15 + 584) > v65 ); } *(float *)(*((_QWORD *)v15 + 138) + 8LL) = v64; } if ( *((_BYTE *)v15 + 887) ) AnimatedGameObject::updateChildSpriteColor(v15, v75); v43 = (char *)this + 14297; if ( *((_BYTE *)this + 14297) ) goto LABEL_42; goto LABEL_63; } LABEL_62: v43 = (char *)this + 14297; *(float *)(GameObject::getMainColor(v15) + 8) = 1.0; if ( *((_BYTE *)this + 14297) ) goto LABEL_42; LABEL_63: if ( (unsigned __int8)GameObject::isColorObject(v15) ) { v18 = v18 * 0.7; if ( !*v43 ) { LABEL_65: (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)v15 + 912LL))(v15, (unsigned int)v18); if ( *((_BYTE *)this + 14297) ) goto LABEL_66; goto LABEL_46; } } else if ( !*v43 ) { goto LABEL_65; } LABEL_42: if ( *((_BYTE *)this + 14296) && *((_QWORD *)v15 + 111) ) (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)v15 + 912LL))(v15, 0); (*(void (__fastcall **)(GameObject *, _QWORD))(*(_QWORD *)v15 + 912LL))(v15, (unsigned int)v18); if ( *((_BYTE *)this + 14297) ) { LABEL_66: *((_BYTE *)v15 + 1149) = 0; goto LABEL_49; } LABEL_46: if ( !*((_BYTE *)v15 + 1149) || *((_BYTE *)v15 + 1133) ) goto LABEL_66; GameObject::updateObjectEditorColor(v15); LABEL_49: ++v12; v11 += 8; v44 = *(void (__fastcall **)(GameObject *, __int64 *))(*(_QWORD *)v15 + 184LL); (*(void (__fastcall **)(GameObject *))(*(_QWORD *)v15 + 1360LL))(v15); v44(v15, &v78); if ( *((_DWORD *)this + 3182) <= v12 ) goto LABEL_50; } v17 = 1; goto LABEL_10; } v13 = (char *)(this + 1536); LABEL_50: GJBaseGameLayer::updateEnterEffects((GJBaseGameLayer *)this, a2); GJBaseGameLayer::processAreaVisualActions((GJBaseGameLayer *)this, a2); GJBaseGameLayer::updateParticles((GJBaseGameLayer *)this, a2); v13[2008] = 0; LevelEditorLayer::sortBatchnodeChildren((LevelEditorLayer *)this, 0.0); LevelEditorLayer::updateKeyframeObjects(this); (*((void (__fastcall **)(GJEffectManager **))*this + 163))(this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source