//
// DailyLevelPage::dailyStatusFailed from 0x607d3c to 0x607e58 (284 bytes)
//
// 1 xrefs:
// > `non-virtual thunk to'DailyLevelPage::dailyStatusFailed @ 0x607e74
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:54:45 +0000
//
int __fastcall DailyLevelPage::dailyStatusFailed(int a1, int a2, int a3)
{
DialogLayer *v4; // r0
int v5; // r2
DialogLayer *v6; // r4
int result; // r0
GameStatsManager *v8; // r0
float v9; // r1
cocos2d::CCSequence *v10; // r5
cocos2d::CCFiniteTimeAction *v11; // r0
cocos2d::CCAction *v12; // r0
int v13; // [sp+4h] [bp-2Ch]
int v14[3]; // [sp+14h] [bp-1Ch] BYREF
int v15[3]; // [sp+20h] [bp-10h] BYREF
if ( a3 == 3 )
{
*(_BYTE *)(a1 + 544) = 1;
memset(v14, 0, sizeof(v14));
std::string::__init(v14, "The Mechanic", 0xCu);
memset(v15, 0, sizeof(v15));
std::string::__init(v15, "Please update your application to download this level.", 0x4Eu);
LOWORD(v13) = -1;
BYTE2(v13) = -1;
v4 = (DialogLayer *)DialogObject::create(v14, v15, 37, 1065353216, 0, v13);
v6 = (DialogLayer *)DialogLayer::create(v4, (DialogObject *)byte_4, v5);
std::string::~string((int)v15);
std::string::~string((int)v14);
DialogLayer::addToMainScene(v6);
DialogLayer::updateChatPlacement(v6, 0);
result = DialogLayer::animateIn(v6, 1);
}
else
{
v8 = (GameStatsManager *)GameStatsManager::sharedState((GameStatsManager *)a1);
result = GameStatsManager::areChallengesLoaded(v8);
if ( !result )
{
v10 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create((cocos2d::CCDelayTime *)0x40A00000, v9);
v11 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(a1, DailyLevelPage::tryGetDailyStatus, 0);
v12 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v10, v11, 0);
result = cocos2d::CCNode::runAction((cocos2d::CCNode *)a1, v12);
}
}
if ( *(_BYTE *)(a1 + 544) )
{
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 536) + 172))(*(_DWORD *)(a1 + 536), 0);
return (*(int (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(a1 + 540) + 172))(*(_DWORD *)(a1 + 540), 0);
}
return result;
}