//
// LevelSettingsLayer::onGameplayMode from 0x100257f30 to 0x100257ff9 (201 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x10025658f
// > LevelSettingsLayer::init @ 0x100256669
//
// This function is hookable on this platform (idp: pc, 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:27:27 +0000
//
void __fastcall LevelSettingsLayer::onGameplayMode(__int64 a1, __int64 a2)
{
__int64 v3; // r14
__int64 v4; // r15
__int64 v5; // r14
int v6; // r12d
const char *v7; // r13
const char *v8; // rsi
v3 = *(_QWORD *)(a1 + 816);
*(_BYTE *)(v3 + 341) = (*(unsigned int (__fastcall **)(__int64))(*(_QWORD *)a2 + 64LL))(a2) == 4;
v4 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 880) + 1072LL))(*(_QWORD *)(a1 + 880));
v5 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 888) + 1072LL))(*(_QWORD *)(a1 + 888));
v6 = *(unsigned __int8 *)(*(_QWORD *)(a1 + 816) + 341LL);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 880) + 1056LL))(
*(_QWORD *)(a1 + 880),
*(unsigned __int8 *)(*(_QWORD *)(a1 + 816) + 341LL));
v7 = "GJ_button_04.png";
v8 = "GJ_button_01.png";
if ( v6 )
{
v8 = "GJ_button_04.png";
v7 = "GJ_button_01.png";
}
ButtonSprite::updateBGImage(v4, (__int64)v8);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 888) + 1056LL))(
*(_QWORD *)(a1 + 888),
(unsigned __int8)v6 ^ 1u);
ButtonSprite::updateBGImage(v5, (__int64)v7);
}