//
// DailyLevelNode::onSkipLevel from 0xa6ff60 to 0xa7010c (428 bytes)
//
// 3 xrefs:
// > ??> @ 0xa2e20
// > DailyLevelNode::init @ 0xa6e34c
// > ??> @ 0x1544898
//
// 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 13:00:23 +0000
//
__int64 __fastcall DailyLevelNode::onSkipLevel(DailyLevelNode *this, cocos2d::CCObject *a2)
{
__int64 v3; // x0
int v4; // w0
char *v5; // x20
char *v6; // x1
cocos2d::CCString *v7; // x0
size_t v8; // x0
__int64 v9; // x20
char *CString; // [xsp+38h] [xbp+38h]
__int64 v12[2]; // [xsp+48h] [xbp+48h] BYREF
char *v13; // [xsp+58h] [xbp+58h]
__int64 v14[2]; // [xsp+60h] [xbp+60h] BYREF
void *v15; // [xsp+70h] [xbp+70h]
if ( !*((_BYTE *)this + 368) )
{
v3 = *((_QWORD *)this + 42);
v12[0] = 0;
v12[1] = 0;
v4 = *(_DWORD *)(v3 + 732);
v13 = nullptr;
if ( v4 == 1 )
{
std::string::assign(v12, "weekly demon");
}
else if ( v4 )
{
if ( v4 == 2 )
std::string::assign(v12, "event level");
else
std::string::assign(v12, "NA");
}
else
{
std::string::assign(v12, "daily level");
}
v5 = (char *)this + 320;
v6 = (char *)v12 + 1;
if ( (v12[0] & 1) != 0 )
v6 = v13;
v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"There is a new %s available.\n"
"Skip the current level and load the next?",
v6);
CString = (char *)cocos2d::CCString::getCString(v7);
v14[0] = 0;
v14[1] = 0;
v15 = nullptr;
v8 = strlen(CString);
std::string::__init(v14, CString, v8);
v9 = FLAlertLayer::create(
(__int64)v5,
(cocos2d::CCLabelBMFont *)"Skip level",
(char *)v14,
(ButtonSprite *)"Cancel",
(ButtonSprite *)"Skip",
330.0);
if ( (v14[0] & 1) != 0 )
operator delete(v15);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v9 + 1312LL))(v9);
if ( (v12[0] & 1) != 0 )
operator delete(v13);
}
return _stack_chk_guard;
}