//
// LevelBrowserLayer::updateBackgroundColor from 0x7f60c4 to 0x7f61bc (248 bytes)
//
// 3 xrefs:
// > LevelBrowserLayer::init @ 0x7fa834
// > LevelBrowserLayer::onSafeMode @ 0x7fc3bc
// > ??> @ 0xec7e8
//
// 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:54:38 +0000
//
__int64 __fastcall LevelBrowserLayer::updateBackgroundColor(LevelBrowserLayer *this)
{
__int64 v2; // x0
__int64 v3; // x1
_BYTE v5[4]; // [xsp+20h] [xbp+20h] BYREF
int v6; // [xsp+24h] [xbp+24h] BYREF
v2 = *((_QWORD *)this + 100);
if ( v2 )
{
v3 = *((_QWORD *)this + 83);
v5[1] = 102;
v5[0] = 0;
v5[2] = -1;
if ( v3 )
{
if ( (unsigned __int8)GameLevelManager::vaultTimedType(*(unsigned int *)(v3 + 316), &v6) )
{
if ( v6 != 2 )
{
v2 = *((_QWORD *)this + 100);
if ( v6 == 1 )
{
memset(v5, 51, 3);
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 960LL))(v2, v5);
return _stack_chk_guard;
}
goto LABEL_6;
}
v5[0] = 99;
v5[1] = 24;
v5[2] = 126;
}
(*(void (__fastcall **)(_QWORD, _BYTE *))(**((_QWORD **)this + 100) + 960LL))(*((_QWORD *)this + 100), v5);
return _stack_chk_guard;
}
LABEL_6:
(*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v2 + 960LL))(v2, v5);
}
return _stack_chk_guard;
}