//
// GameObject::shouldBlendColor from 0x10067bad0 to 0x10067bb7a (170 bytes)
//
// 1 xrefs:
// > GameObject::updateBlendMode @ 0x10068f492
//
// 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:35:03 +0000
//
char __fastcall GameObject::shouldBlendColor(__int64 a1, int *a2, char a3)
{
int v3; // eax
char v4; // cl
int v5; // ebx
__int64 v6; // rax
char result; // al
__int64 v8; // rax
int *v9; // rsi
int v10; // edx
v3 = *a2;
if ( !*a2 )
v3 = a2[1];
v4 = *(_BYTE *)(a1 + 867);
v5 = 0;
if ( !v4 )
v5 = v3;
if ( *(_BYTE *)(a1 + 649) == 1 )
{
v6 = GameManager::sharedState();
return LevelEditorLayer::shouldBlend(*(_QWORD *)(v6 + 552), v5);
}
result = 1;
if ( (unsigned int)(v5 - 1005) >= 3 )
{
if ( v5 != 1012 )
goto LABEL_9;
if ( a3 )
return 0;
v9 = *(int **)(a1 + 1096);
v10 = *v9;
if ( !*v9 )
v10 = v9[1];
v5 = 0;
if ( !v4 )
v5 = v10;
if ( (unsigned int)(v5 - 1005) >= 3 )
{
if ( v5 != 1012 )
{
LABEL_9:
if ( v5 )
{
v8 = GameManager::sharedState();
return PlayLayer::shouldBlend(*(_QWORD *)(v8 + 544));
}
return 0;
}
return 0;
}
}
return result;
}