//
// LevelEditorLayer::shouldBlend from 0x1000dee80 to 0x1000deec0 (64 bytes)
//
// 3 xrefs:
// > GameObject::shouldBlendColor @ 0x1005aa3ba
// > GameObject::updateBlendMode @ 0x1005bdcd4
// > GameObject::updateBlendMode @ 0x1005bdd6b
//
// 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 __fastcall LevelEditorLayer::shouldBlend(LevelEditorLayer *a1, int a2)
{
__int64 v2; // rax
unsigned __int64 v3; // rcx
LODWORD(v2) = 0;
if ( a1->m_previewMode )
{
if ( a2 > 0 )
LODWORD(v2) = a2;
v3 = 1101;
if ( (int)v2 < 1101 )
v3 = (unsigned int)v2;
v2 = *(_QWORD *)&a1->m_blendingColors.__begin_[((unsigned int)v3 >> 3) & 0xF8];
LOBYTE(v2) = _bittest64(&v2, v3);
}
return v2;
}