//
// DailyLevelPage::onTheSafe from 0x140172ab0 to 0x140172b72 (194 bytes)
//
// 2 xrefs:
// > DailyLevelPage::init @ 0x140170129
// > ??> @ 0x1409183a4
//
// 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:31 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall DailyLevelPage::onTheSafe(__int64 a1)
{
__int64 v1; // rbx
__int64 v2; // rdx
__int64 v3; // rcx
__int64 v4; // r8
__int64 v5; // r9
struct cocos2d::CCScene *v6; // rdi
__int64 v7; // rcx
__int64 v8; // rax
struct cocos2d::CCScene *v9; // rbx
__int64 v10; // rcx
cocos2d::CCDirector *v11; // rax
__int64 result; // rax
void *v13; // [rsp+30h] [rbp+8h]
v1 = LevelBrowserLayer::safeSearchObject(*(unsigned int *)(a1 + 732));
v6 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v3, v2, v4, v5);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v7) + 232) = v6;
v8 = LevelBrowserLayer::create(v1);
(*(void (__fastcall **)(struct cocos2d::CCScene *, __int64))(*(_QWORD *)v6 + 464LL))(v6, v8);
v9 = cocos2d::CCTransitionFade::create(0.5, v6);
v11 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v10);
cocos2d::CCDirector::pushScene(v11, v9);
result = qword_14090BFD0;
if ( !qword_14090BFD0 )
{
v13 = operator new(0x6E8u);
qword_14090BFD0 = GameManager::GameManager(v13);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_14090BFD0 + 72LL))(qword_14090BFD0);
result = qword_14090BFD0;
}
*(_DWORD *)(result + 740) = 1;
return result;
}