//
// LevelEditorLayer::shouldBlend from 0x1000ae620 to 0x1000ae660 (64 bytes)
//
// 2 xrefs:
// > GameObject::shouldBlendColor @ 0x10067bb0a
// > GameObject::updateBlendMode @ 0x10068f440
//
// This function is hookable on this platform (idp: pc, 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:20:19 +0000
//
char __fastcall LevelEditorLayer::shouldBlend(__int64 a1, int a2)
{
__int64 v2; // rax
unsigned __int64 v3; // rcx
LODWORD(v2) = 0;
if ( *(_BYTE *)(a1 + 14297) == 1 )
{
if ( a2 > 0 )
LODWORD(v2) = a2;
v3 = 1101;
if ( (int)v2 < 1101 )
v3 = (unsigned int)v2;
v2 = *(_QWORD *)(*(_QWORD *)(a1 + 14592) + (((unsigned int)v3 >> 3) & 0xF8));
LOBYTE(v2) = _bittest64(&v2, v3);
}
return v2;
}