//
// DailyLevelPage::createDailyNode from 0x10024fc48 to 0x10024fde8 (416 bytes)
//
// 5 xrefs:
// > DailyLevelPage::init @ 0x10024f568
// > DailyLevelPage::levelDownloadFinished @ 0x1002503c4
// > DailyLevelPage::createNodeIfLoaded @ 0x100250478
// > DailyLevelPage::claimLevelReward @ 0x10025089c
// > sub_1002509AC @ 0x100250a00
//
// This function is hookable on this platform (idp: arm, 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:01:31 +0000
//
__int64 __fastcall DailyLevelPage::createDailyNode(__int64 a1, __int64 a2, char a3, __int64 a4, float a5)
{
__int64 v5; // x20
__int64 v11; // x0
double WinSize; // d0
unsigned int *v13; // x0
double *v14; // x0
__int64 v15; // x0
float v16; // s0
float *v17; // x21
char v18; // w22
_OWORD *v19; // x0
__int64 v20; // x1
__int64 v21; // x2
__int64 v22; // x3
__int64 v23; // x4
__int64 v24; // x5
__int64 v25; // x6
__int64 v26; // x7
__int64 v27; // x0
float v29; // [xsp+18h] [xbp-48h] BYREF
__int64 v30; // [xsp+20h] [xbp-40h] BYREF
__int64 v31; // [xsp+28h] [xbp-38h] BYREF
if ( *(_QWORD *)(a1 + 720) )
return 0;
v11 = cocos2d::CCDirector::sharedDirector();
WinSize = cocos2d::CCDirector::getWinSize(v11, &v31);
v5 = DailyLevelNode::create(a2, a1, a4, WinSize);
(*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 584) + 456LL))(*(_QWORD *)(a1 + 584), v5);
sub_1000262BC((float *)&v30, *(float *)&v31 * 0.5, (float)(*((float *)&v31 + 1) * 0.5) + -8.0);
(*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v5 + 184LL))(v5, &v30);
if ( a2 )
{
v13 = (unsigned int *)GameLevelManager::sharedState();
if ( (int)sub_1000CD764(v13, *(_DWORD *)(a1 + 732)) > *(_DWORD *)(a2 + 920) - *(_DWORD *)(a2 + 924) )
sub_1002500C4(v5);
}
if ( (a3 & 1) == 0 )
{
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);
v14 = (double *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v5 + 192LL))(v5);
sub_1000262F4(&v30, v14);
v15 = cocos2d::CCDirector::sharedDirector();
v16 = sub_100207EB0(v15);
sub_1000262BC(&v29, v16 + 180.0, *((float *)&v30 + 1));
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v5 + 184LL))(v5, &v29);
v17 = cocos2d::CCDelayTime::create(a5);
v18 = (unsigned __int8)cocos2d::CCShow::create();
v19 = cocos2d::CCMoveTo::create((double *)&v30, 0.5);
cocos2d::CCEaseElasticOut::create(v19, 0.6);
v27 = sub_10021D420((__int64)v17, v20, v21, v22, v23, v24, v25, v26, v18);
cocos2d::CCNode::runAction(v5, v27);
}
*(_QWORD *)(a1 + 720) = v5;
return v5;
}