//
// LevelEditorLayer::updateBlendValues from 0x1000efc60 to 0x1000efd10 (176 bytes)
//
// 2 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x1000de764
// > LevelEditorLayer::onPlaytest @ 0x1000f22f0
//
// 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
//
void __fastcall LevelEditorLayer::updateBlendValues(LevelEditorLayer *a1)
{
unsigned __int64 i; // r14
std::__vector_base::pointer v3; // rax
char shouldBlend; // al
std::__vector_base::pointer begin; // rdx
__int64 v6; // rdi
unsigned __int64 v7; // rsi
__int64 v8; // rcx
__int64 v9; // r8
__int64 v10; // r8
__int64 v11; // rcx
for ( i = 0; i != 1102; ++i )
{
while ( 1 )
{
shouldBlend = GJEffectManager::shouldBlend(a1->m_effectManager, i);
begin = a1->m_blendingColors.__begin_;
v6 = 1LL << i;
v7 = i >> 6;
v8 = *(_QWORD *)&begin[8 * (i >> 6)];
v9 = ~(1LL << i);
if ( shouldBlend != _bittest64(&v8, i) )
break;
v3 = a1->m_blendingColors2.__begin_;
*(_QWORD *)&v3[8 * v7] &= v9;
if ( ++i == 1102 )
goto LABEL_7;
}
v10 = v8 & v9;
v11 = v6 | v8;
if ( !shouldBlend )
v11 = v10;
*(_QWORD *)&begin[8 * v7] = v11;
v3 = a1->m_blendingColors2.__begin_;
*(_QWORD *)&v3[8 * v7] |= v6;
}
LABEL_7:
begin[125] |= 0x20u;
v3[125] &= ~0x20u;
begin[125] |= 0x40u;
v3[125] &= ~0x40u;
begin[125] |= 0x80u;
v3[125] &= ~0x80u;
*begin &= ~1u;
*v3 &= ~1u;
}