//
// CreatorLayer::onWeeklyLevel from 0x140138340 to 0x1401383c7 (135 bytes)
//
// 2 xrefs:
// > CreatorLayer::init @ 0x140135c69
// > ??> @ 0x1409171a4
//
// 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::onWeeklyLevel(__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 + 1016) = *(_DWORD *)(v2 + 992);
v3 = *(_QWORD *)(a1 + 456);
if ( v3 )
(*(void (__fastcall **)(__int64))(*(_QWORD *)v3 + 568LL))(v3);
v4 = DailyLevelPage::create(1);
return (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v4 + 1064LL))(v4);
}