//
// GameObject::shouldBlendColor from 0x44c7c2 to 0x44c834 (114 bytes)
//
// 2 xrefs:
// > GameObject::updateBlendMode @ 0x44d4b4
// > GameObject::updateBlendMode @ 0x44d4da
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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 11:48:34 +0000
//
int __fastcall GameObject::shouldBlendColor(GameObject *this, GJSpriteColor *a2, int a3)
{
int v4; // r8
int v6; // r5
GameManager *ColorMode; // r0
int v8; // r4
int v9; // r0
int v11; // r0
v4 = *((unsigned __int8 *)this + 735);
v6 = *((unsigned __int8 *)this + 549);
while ( 1 )
{
ColorMode = (GameManager *)GJSpriteColor::getColorMode(a2);
v8 = (int)ColorMode;
if ( v4 )
{
if ( v6 )
{
v8 = 0;
LABEL_7:
v9 = GameManager::sharedState(ColorMode);
return LevelEditorLayer::shouldBlend(*(LevelEditorLayer **)(v9 + 408), v8);
}
return v6;
}
if ( v6 )
goto LABEL_7;
if ( (int)ColorMode < 1008 )
break;
if ( ColorMode != (GameManager *)&stru_3EC.st_size )
goto LABEL_15;
if ( a3 )
return v6;
a2 = *((GJSpriteColor **)this + 240);
a3 = 1;
}
if ( (int)ColorMode > 1004 )
return 1;
if ( ColorMode )
{
LABEL_15:
v11 = GameManager::sharedState(ColorMode);
return PlayLayer::shouldBlend(*(GJEffectManager ***)(v11 + 404), v8);
}
return v6;
}