//
// DailyLevelPage::downloadAndCreateNode from 0x140171010 to 0x1401710ba (170 bytes)
//
// 3 xrefs:
// > DailyLevelPage::dailyStatusFinished @ 0x140170b65
// > DailyLevelPage::claimLevelReward @ 0x140172831
// > ??> @ 0x14091832c
//
// 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
struct cocos2d::CCAction *__fastcall DailyLevelPage::downloadAndCreateNode(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rbx
struct cocos2d::CCFiniteTimeAction *v4; // rax
struct cocos2d::CCAction *v5; // rax
void *v7; // [rsp+30h] [rbp+8h]
*(_BYTE *)(a1 + 728) = 1;
v2 = *(_QWORD *)&qword_14090BFB0;
if ( !*(_QWORD *)&qword_14090BFB0 )
{
v7 = operator new(0x690u);
*(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v7);
(*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);
v2 = *(_QWORD *)&qword_14090BFB0;
}
GameLevelManager::downloadLevel(v2, *(unsigned int *)(a1 + 736), 0, 0);
v3 = cocos2d::CCCallFunc::create(a1, DailyLevelPage::createNodeIfLoaded);
v4 = cocos2d::CCDelayTime::create(0.5);
v5 = cocos2d::CCSequence::create(v4, v3, 0);
return cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v5);
}