// // DailyLevelNode::onSkipLevel from 0x912b30 to 0x912d60 (560 bytes) // // 3 xrefs: // > @ 0x79d88 // > DailyLevelNode::init @ 0x913c54 // > @ 0x122c138 // // 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 DailyLevelNode::onSkipLevel(DailyLevelNode *a1, cocos2d::CCObject *a2) { int v2; // w20 GJTimedLevelType m_type; // w2 unsigned __int64 v4; // d0 cocos2d::CCString *v5; // x0 char *CString; // x0 FLAlertLayer *v7; // x20 void *v8; // x0 char *v9; // x0 unsigned int *v10; // x20 int v11; // w1 unsigned int *v12; // x1 int v13; // w2 char *v14; // [xsp+48h] [xbp+48h] BYREF __int64 v15; // [xsp+50h] [xbp+50h] BYREF v2 = (int)a1; if ( !a1->m_unkBool ) { m_type = a1->m_page->m_type; v14 = &byte_124B6C8; if ( m_type == 1 ) { v4 = sub_D1798C(&v14, "weekly demon", 12).n128_u64[0]; } else if ( m_type ) { if ( m_type == Event ) v4 = sub_D1798C(&v14, "event level", 11).n128_u64[0]; else v4 = sub_D1798C(&v14, "NA", 2).n128_u64[0]; } else { v4 = sub_D1798C(&v14, "daily level", 11).n128_u64[0]; } v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"There is a new %s available.\n" "Skip the current level and load the next?", v14, *(double *)&v4); CString = (char *)cocos2d::CCString::getCString(v5); sub_D153B8((int)&v15, CString); v7 = FLAlertLayer::create(v2 + 320, (__int64)"Skip level", (__int64)&v15); v8 = (void *)(v15 - 24); if ( (__int64 *)(v15 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v15 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *(_DWORD *)(v15 - 8); *(_DWORD *)(v15 - 8) = v13 - 1; } if ( v13 <= 0 ) operator delete(v8); } v7->show(v7); v9 = v14 - 24; if ( v14 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v14 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v9); } } }