//
// LevelEditorLayer::updateBlendValues from 0x1402de6b0 to 0x1402de7e2 (306 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateGameObjects @ 0x1402dcdb0
// > LevelEditorLayer::onPlaytest @ 0x1402dfe9c
// > ??> @ 0x1406d341c
//
// 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 LevelEditorLayer::updateBlendValues(LevelEditorLayer *a1)
{
__int64 v2; // r8
std::_Simple_types::value_type v3; // r10
std::_Vector_val>::pointer Myfirst; // rdi
char v5; // r9
unsigned __int64 v6; // rbx
std::_Simple_types::value_type v7; // eax
int v8; // eax
std::_Vector_val>::pointer v9; // rcx
int v10; // eax
v2 = 0;
do
{
v3 = a1->m_effectManager->m_colorActionVector._Mypair._Myval2._Myfirst[v2];
if ( v3 )
LOBYTE(v3) = v3->m_blending;
Myfirst = a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst;
v5 = v2 & 0x1F;
v6 = (unsigned __int64)(unsigned int)v2 >> 5;
v7 = Myfirst[v6];
if ( (_BYTE)v3 == (((1 << (v2 & 0x1F)) & v7) != 0) )
{
v9 = a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst;
v10 = v9[v6] & ~(1 << v5);
}
else
{
if ( (_BYTE)v3 )
v8 = v7 | (1 << v5);
else
v8 = v7 & ~(1 << v5);
Myfirst[v6] = v8;
v9 = a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst;
v10 = v9[v6] | (1 << v5);
}
v2 = (unsigned int)(v2 + 1);
v9[v6] = v10;
}
while ( (int)v2 <= 1101 );
a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst[31] |= 0x2000u;
a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst[31] &= ~0x2000u;
a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst[31] |= 0x4000u;
a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst[31] &= ~0x4000u;
a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst[31] |= 0x8000u;
a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst[31] &= ~0x8000u;
*a1->m_blendingColors._Myvec._Mypair._Myval2._Myfirst &= ~1u;
*a1->m_blendingColors2._Myvec._Mypair._Myval2._Myfirst &= ~1u;
}