//
// GameObject::updateBlendMode from 0x76f178 to 0x76f208 (144 bytes)
//
// 5 xrefs:
// > PlayLayer::manualUpdateObjectColors @ 0x6f2a68
// > GameObject::addMainSpriteToParent @ 0x76f838
// > LevelEditorLayer::manualUpdateObjectColors @ 0x78c2bc
// > EditorUI::spriteFromObjectString @ 0xbde500
// > ??> @ 0xe8258
//
// 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:12 +0000
//
__int64 __fastcall GameObject::updateBlendMode(int **this)
{
__int64 result; // x0
int *v3; // x1
int v4; // w2
int v5; // w3
LOBYTE(result) = (unsigned __int8)GameObject::shouldBlendColor((__int64)this, *(this + 137), 1);
*((_BYTE *)this + 884) = result;
result = (unsigned __int8)result;
if ( *(this + 111) )
{
v3 = *(this + 138);
v4 = *v3;
v5 = v3[1];
if ( *v3 == v5 || !v4 )
{
if ( v5 == 1012 )
goto LABEL_6;
}
else if ( v4 == 1012 )
{
LABEL_6:
*((_BYTE *)this + 885) = result;
return result;
}
result = (unsigned __int8)GameObject::shouldBlendColor((__int64)this, v3, 0);
goto LABEL_6;
}
*((_BYTE *)this + 885) = 0;
return 0;
}