//
// GJGroundLayer::updateLineBlend from 0x5463dc to 0x546418 (60 bytes)
//
// 3 xrefs:
// > LevelEditorLayer::updateEditorMode @ 0x462832
// > GJBaseGameLayer::updateLevelColors @ 0x58c662
// > GJBaseGameLayer::updateLevelColors @ 0x58c67a
//
// 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:52:23 +0000
//
int __fastcall GJGroundLayer::updateLineBlend(int this, int a2)
{
_DWORD *v2; // r1
_DWORD v3[2]; // [sp+0h] [bp-8h] BYREF
v3[0] = this;
v3[1] = a2;
if ( *(unsigned __int8 *)(this + 333) != a2 )
{
*(_BYTE *)(this + 333) = a2;
if ( a2 )
v2 = &unk_BECFD4;
else
v2 = &unk_BECFE4;
return (*(int (__fastcall **)(_DWORD, _DWORD, _DWORD, _DWORD *, _DWORD, _DWORD))(**(_DWORD **)(this + 328) + 540))(
*(_DWORD *)(this + 328),
*v2,
v2[1],
v3,
*v2,
v2[1]);
}
return this;
}