//
// LevelEditorLayer::shouldBlend from 0x365e2c to 0x365e78 (76 bytes)
//
// 2 xrefs:
// > GameObject::shouldBlendColor @ 0x35445a
// > LevelEditorLayer::updateEditorMode @ 0x3690e2
//
// 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
//
bool LevelEditorLayer::shouldBlend(LevelEditorLayer *a1, int a2)
{
_BOOL4 m_previewMode; // r0
unsigned int v4; // r2
_DWORD v6[2]; // [sp+4h] [bp-Ch] BYREF
v6[0] = a2;
m_previewMode = a1->m_previewMode;
if ( a2 > 1100 )
v4 = 1101;
else
v4 = a2 & ~(a2 >> 31);
if ( m_previewMode )
{
sub_365110(v6, (int)a1->m_blendingColors.m_start.m_bitptr, v4);
LOBYTE(m_previewMode) = std::_Bit_reference::operator bool((int)v6);
}
return m_previewMode;
}