//
// DailyLevelNode::onSkipLevel from 0x1001bbaac to 0x1001bbba4 (248 bytes)
//
// 1 xrefs:
// > DailyLevelNode::init @ 0x1001bb3fc
//
// 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
//
void __fastcall DailyLevelNode::onSkipLevel(DailyLevelNode *a1, cocos2d::CCObject *a2)
{
__int64 m_type; // x8
const std::string::value_type *v4; // x1
std::string *v5; // x8
cocos2d::CCString *v6; // x0
char *CString; // x0
__int64 v8; // x19
void *__p[2]; // [xsp+10h] [xbp-40h] BYREF
char v10; // [xsp+27h] [xbp-29h]
std::string v11; // [xsp+28h] [xbp-28h] BYREF
if ( !a1->m_unkBool )
{
memset(&v11, 0, sizeof(v11));
m_type = (unsigned int)a1->m_page->m_type;
if ( (unsigned int)m_type >= 3 )
v4 = "NA";
else
v4 = off_1007B4F80[m_type];
std::string::assign(&v11, v4);
if ( (v11.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v5 = &v11;
else
v5 = (std::string *)v11.__r_.__value_.__r.__words[0];
v6 = (cocos2d::CCString *)sub_100268F4C(
"There is a new %s available.\nSkip the current level and load the next?",
(const char *)v5);
CString = (char *)cocos2d::CCString::getCString(v6);
sub_100009900(__p, CString);
v8 = FLAlertLayer::create_1(&a1->FLAlertLayerProtocol, "Skip level", __p, "Cancel", "Skip", 330.0);
if ( v10 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1288LL))(v8);
if ( SHIBYTE(v11.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v11.__r_.__value_.__l.__data_);
}
}