//
// LevelOptionsLayer::init from 0x14045d1a0 to 0x14045d20e (110 bytes)
//
// 3 xrefs:
// > LevelSettingsLayer::onSettings @ 0x14045a266
// > LevelOptionsLayer::onSettings @ 0x14045d7ad
// > ??> @ 0x140927d7c
//
// 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:32 +0000
//
char __fastcall LevelOptionsLayer::init(__int64 a1, __int64 a2, __int64 a3, int a4)
{
char result; // al
__int64 v6; // rax
*(_QWORD *)(a1 + 1136) = a2;
*(_DWORD *)(a1 + 1000) = 1109393408;
*(_DWORD *)(a1 + 1020) = 1053609165;
result = GJOptionsLayer::init(a1, 1, 280.0, a4);
if ( result )
{
v6 = *(_QWORD *)a1;
*(_BYTE *)(a1 + 744) = 1;
(*(void (__fastcall **)(__int64))(v6 + 1096))(a1);
(*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 1136LL))(a1);
*(_BYTE *)(a1 + 744) = 0;
return 1;
}
return result;
}