//
// GJEffectManager::shouldBlend from 0x1002c9050 to 0x1002c907f (47 bytes)
//
// 7 xrefs:
// > PlayLayer::shouldBlend @ 0x1000842dc
// > LevelEditorLayer::updateBlendValues @ 0x1000c33c1
// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a11
// > GJBaseGameLayer::updateLevelColors @ 0x1000f0a34
// > GJBaseGameLayer::updateLevelColors @ 0x1000f0b10
// > GJBaseGameLayer::updateLevelColors @ 0x1000f0b33
// > GJBaseGameLayer::updateShaderLayer @ 0x100118bc1
//
// 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:28:09 +0000
//
__int64 __fastcall GJEffectManager::shouldBlend(__int64 a1, int a2)
{
__int64 result; // rax
__int64 v3; // rcx
__int64 v4; // rcx
result = 0;
if ( a2 <= 0 )
a2 = 0;
v3 = 1101;
if ( a2 < 1101 )
v3 = (unsigned int)a2;
v4 = *(_QWORD *)(*(_QWORD *)(a1 + 640) + 8 * v3);
if ( v4 )
return *(unsigned __int8 *)(v4 + 84);
return result;
}