//
// DailyLevelPage::downloadAndCreateNode from 0x1400d00d0 to 0x1400d0177 (167 bytes)
//
// 3 xrefs:
// > DailyLevelPage::dailyStatusFinished @ 0x1400cfc66
// > DailyLevelPage::claimLevelReward @ 0x1400d1d70
// > ??> @ 0x1406c855c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
// Hidden C++ exception states: #wind=1
void DailyLevelPage::downloadAndCreateNode(DailyLevelPage *a1)
{
float v1; // xmm3_4
GameLevelManager *v3; // rcx
__int64 v4; // rbx
struct cocos2d::CCDelayTime *v5; // rax
struct cocos2d::CCSequence *v6; // rax
cocos2d::ccColor3B *v7; // r8
void *v8; // [rsp+30h] [rbp+8h]
float v9; // [rsp+50h] [rbp+28h]
a1->m_downloadStarted = 1;
v3 = (GameLevelManager *)qword_1406C2EC0;
if ( !qword_1406C2EC0 )
{
v8 = operator new(0x3D0u);
qword_1406C2EC0 = sub_140141280(v8);
(*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);
v3 = (GameLevelManager *)qword_1406C2EC0;
}
GameLevelManager::downloadLevel(v3, a1->m_downloadLevelID, 0, 0);
v4 = cocos2d::CCCallFunc::create(a1, DailyLevelPage::createNodeIfLoaded);
v5 = cocos2d::CCDelayTime::create(0.5);
v6 = cocos2d::CCSequence::create(v5, v4, 0);
cocos2d::CCNode::runAction((CCLightFlash *)a1, (cocos2d::CCPoint)v6, v7, v1, v9);
}