//
// CreatorLayer::onEventLevel from 0x1401383d0 to 0x140138457 (135 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x140135cb5
// > ??> @ 0x1409171b0
//
// 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:27:05 +0000
//
__int64 __fastcall CreatorLayer::onEventLevel(__int64 a1)
{
__int64 v2; // rdx
__int64 v3; // rcx
__int64 v4; // rax
void *v6; // [rsp+20h] [rbp-18h]
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v6 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v6);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
*(_DWORD *)(v2 + 1020) = *(_DWORD *)(v2 + 996);
v3 = *(_QWORD *)(a1 + 464);
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 568LL))(v3);
v4 = DailyLevelPage::create(2);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL))(v4);
}