// // GJEffectManager::colorForGroupID from 0xa199c8 to 0xa19b54 (396 bytes) // // 6 xrefs: // > GameObject::groupColor @ 0x771a84 // > LevelEditorLayer::updateObjectColors @ 0x78beb4 // > LevelEditorLayer::updateObjectColors @ 0x78c0a4 // > LevelEditorLayer::updateVisibility @ 0x78e528 // > LevelEditorLayer::updateVisibility @ 0x78ea8c // > @ 0x41b90 // // 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:36 +0000 // unsigned __int64 __fastcall GJEffectManager::colorForGroupID( GJEffectManager *a1, int a2, __int64 a3, unsigned __int8 a4) { int v5; // w19 unsigned int v6; // w23 unsigned __int8 v7; // w0 __int64 v9; // x3 __int16 v10; // w3 unsigned __int8 v11; // w2 __int64 *v12; // x0 __int64 v13; // x19 __int64 v14; // x24 unsigned int v15; // w0 int v16; // w0 int v17[3]; // [xsp+4Ch] [xbp+4Ch] BYREF __int16 v18; // [xsp+58h] [xbp+58h] BYREF unsigned __int8 v19; // [xsp+5Ah] [xbp+5Ah] __int16 v20; // [xsp+60h] [xbp+60h] unsigned __int8 v21; // [xsp+62h] [xbp+62h] v5 = a2; v17[0] = a2; v6 = a4; if ( a2 <= 9998 ) { if ( a2 < 0 ) v5 = 0; v17[0] = v5; if ( ((1LL << (v5 & 0x3F)) & *(_QWORD *)(*((_QWORD *)a1 + 86) + (((__int64)v5 >> 3) & 0x1FFFFFFFFFFFFFF8LL))) == 0 ) goto LABEL_5; goto LABEL_8; } v9 = *((_QWORD *)a1 + 86); v17[0] = 9999; if ( (*(_QWORD *)(v9 + 1248) & 0x8000LL) != 0 ) { LABEL_8: v10 = *(_WORD *)a3; v11 = *(_BYTE *)(a3 + 2); v18 = v10; v19 = v11; v12 = std::__hash_table>,std::__unordered_map_hasher>,std::hash,true>,std::__unordered_map_equal>,std::equal_to,true>,std::allocator>>>::find( (_QWORD *)a1 + 46, v17); if ( !v12 || (v13 = v12[3], v14 = v12[4], v13 == v14) ) { LABEL_19: v20 = v18; v21 = v19; return (unsigned __int8)v20 | (unsigned __int64)(unsigned __int16)(HIBYTE(v20) << 8) | ((unsigned __int64)v21 << 16); } while ( 1 ) { if ( *(_BYTE *)(v13 + 56) ) { if ( v6 ) goto LABEL_14; v15 = *(unsigned __int8 *)(v13 + 57); } else { v15 = *(unsigned __int8 *)(v13 + 57); if ( !*(_BYTE *)(v13 + 57) ) { LABEL_14: v16 = GJEffectManager::colorForPulseEffect(a1, &v18, v13); v18 = v16; v19 = BYTE2(v16); goto LABEL_15; } } if ( v6 < v15 ) goto LABEL_14; LABEL_15: v13 += 72; if ( v14 == v13 ) goto LABEL_19; } } LABEL_5: v7 = *(_BYTE *)(a3 + 2); v20 = *(_WORD *)a3; v21 = v7; return (unsigned __int8)v20 | (unsigned __int64)(unsigned __int16)(HIBYTE(v20) << 8) | ((unsigned __int64)v21 << 16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source