//
// GameObject::updateBlendMode from 0x44d4aa to 0x44d4ea (64 bytes)
//
// 4 xrefs:
// > PlayLayer::manualUpdateObjectColors @ 0x3ff452
// > GameObject::addMainSpriteToParent @ 0x44d8c6
// > LevelEditorLayer::manualUpdateObjectColors @ 0x4618d0
// > EditorUI::spriteFromObjectString @ 0x6f507a
//
// 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:35 +0000
//
int __fastcall GameObject::updateBlendMode(GJSpriteColor **this)
{
int result; // r0
int v3; // r3
char v4; // r5
GJSpriteColor *v5; // r6
result = GameObject::shouldBlendColor((GameObject *)this, *(this + 240), 1);
v3 = (int)*(this + 189);
v4 = result;
*((_BYTE *)this + 752) = result;
if ( v3 )
{
v5 = *(this + 241);
result = GJSpriteColor::getColorMode(v5);
if ( result != 1012 )
{
result = GameObject::shouldBlendColor((GameObject *)this, v5, 0);
v4 = result;
}
}
else
{
v4 = 0;
}
*((_BYTE *)this + 753) = v4;
return result;
}