//
// GameObject::shouldBlendColor from 0x76de7c to 0x76df44 (200 bytes)
//
// 3 xrefs:
// > GameObject::updateBlendMode @ 0x76f190
// > GameObject::updateBlendMode @ 0x76f1cc
// > ??> @ 0x95908
//
// This function is hookable on this platform (idp: arm, 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:53:11 +0000
//
char *__fastcall GameObject::shouldBlendColor(__int64 a1, int *a2, int i)
{
int v3; // w19
int v4; // w1
bool v5; // cc
__int64 v7; // x0
__int64 v8; // x0
for ( i = (unsigned __int8)i; ; i = 1 )
{
v3 = *a2;
v4 = a2[1];
if ( v3 == v4 || !v3 )
{
v3 = v4;
v5 = v4 <= 1007;
if ( *(_BYTE *)(a1 + 867) )
{
LABEL_5:
if ( !*(_BYTE *)(a1 + 649) )
return (char *)*(unsigned __int8 *)(a1 + 649);
v3 = 0;
LABEL_19:
v8 = GameManager::sharedState((GameManager *)a1);
return (char *)LevelEditorLayer::shouldBlend(*(LevelEditorLayer **)(v8 + 552), v3);
}
}
else
{
v5 = v3 <= 1007;
if ( *(_BYTE *)(a1 + 867) )
goto LABEL_5;
}
if ( *(_BYTE *)(a1 + 649) )
goto LABEL_19;
if ( v5 )
break;
if ( v3 != 1012 )
goto LABEL_13;
if ( i )
return (char *)*(unsigned __int8 *)(a1 + 649);
a2 = *(int **)(a1 + 1096);
}
if ( v3 < 1005 )
{
if ( v3 )
{
LABEL_13:
v7 = GameManager::sharedState((GameManager *)a1);
return (char *)PlayLayer::shouldBlend(*(GJEffectManager ***)(v7 + 544), v3);
}
return (char *)*(unsigned __int8 *)(a1 + 649);
}
return (char *)&dword_0 + 1;
}