//
// DailyLevelPage::dailyStatusFailed from 0x100250138 to 0x100250270 (312 bytes)
//
// 2 xrefs:
// > sub_10025030C @ 0x100250310
// > ??> @ 0x10090c140
//
// 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 DailyLevelPage::dailyStatusFailed(__int64 a1, __int64 a2, int a3)
{
char *v4; // x0
__int64 v5; // x20
__n128 v6; // q0
__int64 v7; // x0
float *v8; // x20
char v9; // w0
__int64 v10; // x1
__int64 v11; // x2
__int64 v12; // x3
__int64 v13; // x4
__int64 v14; // x5
__int64 v15; // x6
__int64 v16; // x7
__int64 v17; // x0
void *__p[2]; // [xsp+10h] [xbp-40h] BYREF
char v19; // [xsp+27h] [xbp-29h]
void *v20[2]; // [xsp+28h] [xbp-28h] BYREF
char v21; // [xsp+3Fh] [xbp-11h]
if ( a3 == 3 )
{
*(_BYTE *)(a1 + 712) = 1;
sub_100009900(v20, "The Mechanic");
sub_100009900(__p, "Please update your application to download this level.");
v4 = DialogObject::create((__int64)v20, (__int64)__p, 37, 0, 0xFFFFFF, 1.0);
v5 = DialogLayer::create((__int64)v4, 4);
if ( v19 < 0 )
operator delete(__p[0]);
if ( v21 < 0 )
operator delete(v20[0]);
DialogLayer::addToMainScene(v5);
DialogLayer::updateChatPlacement(v5, 0);
sub_1000909DC(v5, 1);
}
else
{
v7 = GameStatsManager::sharedState(a1);
if ( (sub_1003D1A70(v7) & 1) == 0 )
{
v8 = cocos2d::CCDelayTime::create(5.0);
v9 = (unsigned __int8)cocos2d::CCCallFunc::create(a1, (__int64)sub_1002502A4, 0);
v17 = sub_10021D420((__int64)v8, v10, v11, v12, v13, v14, v15, v16, v9);
v6 = cocos2d::CCNode::runAction(a1, v17);
}
}
if ( *(_BYTE *)(a1 + 712) == 1 )
{
(*(void (__fastcall **)(_QWORD, _QWORD, __n128))(**(_QWORD **)(a1 + 696) + 344LL))(*(_QWORD *)(a1 + 696), 0, v6);
(*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(a1 + 704) + 344LL))(*(_QWORD *)(a1 + 704), 0);
}
}