//
// LevelSettingsLayer::onMode from 0x14045a2f0 to 0x14045a34b (91 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::init @ 0x140459e9e
// > ??> @ 0x140927c08
//
// 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 11:32:31 +0000
//
__int64 __fastcall LevelSettingsLayer::onMode(__int64 a1)
{
__int64 *v2; // rax
__int64 v3; // rdx
__int64 v4; // rcx
v2 = (__int64 *)SelectSettingLayer::create(
*(_BYTE *)(*(_QWORD *)(a1 + 816) + 341LL) != 0,
*(unsigned int *)(*(_QWORD *)(a1 + 816) + 328LL));
v3 = a1 + 680;
if ( !a1 )
v3 = 0;
v4 = *v2;
v2[85] = v3;
return (*(__int64 (__fastcall **)(__int64 *))(v4 + 1064))(v2);
}