//
// sub_100251748 from 0x100251748 to 0x100251840 (248 bytes)
//
// 1 xrefs:
// > DailyLevelNode::init @ 0x100251098
//
// 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
//
void __fastcall sub_100251748(__int64 a1)
{
__int64 v2; // x8
const std::string::value_type *v3; // x1
std::string *v4; // x8
__int64 v5; // x0
char *CString; // x0
__int64 v7; // x19
void *__p[2]; // [xsp+10h] [xbp-40h] BYREF
char v9; // [xsp+27h] [xbp-29h]
std::string v10; // [xsp+28h] [xbp-28h] BYREF
if ( (*(_BYTE *)(a1 + 368) & 1) == 0 )
{
memset(&v10, 0, sizeof(v10));
v2 = *(unsigned int *)(*(_QWORD *)(a1 + 336) + 732LL);
if ( (unsigned int)v2 >= 3 )
v3 = "NA";
else
v3 = off_10090C800[v2];
std::string::assign(&v10, v3);
if ( (v10.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL )
v4 = &v10;
else
v4 = (std::string *)v10.__r_.__value_.__r.__words[0];
v5 = sub_1003065B0(
"There is a new %s available.\nSkip the current level and load the next?",
(const char *)v4);
CString = (char *)cocos2d::CCString::getCString(v5);
sub_100009900(__p, CString);
v7 = FLAlertLayer::create_1(a1 + 320, "Skip level", __p, "Cancel", "Skip", 330.0);
if ( v9 < 0 )
operator delete(__p[0]);
(*(void (__fastcall **)(__int64))(*(_QWORD *)v7 + 1312LL))(v7);
if ( SHIBYTE(v10.__r_.__value_.__r.__words[2]) < 0 )
operator delete(v10.__r_.__value_.__l.__data_);
}
}