//
// CreatorLayer::onDailyLevel from 0x1401382b0 to 0x140138334 (132 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x140135c30
// > ??> @ 0x140917198
//
// 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
//
// Hidden C++ exception states: #wind=4
__int64 __fastcall CreatorLayer::onDailyLevel(__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 + 1012) = *(_DWORD *)(v2 + 988);
v3 = *(_QWORD *)(a1 + 448);
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 568LL))(v3);
v4 = DailyLevelPage::create(0);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL))(v4);
}