//
// DailyLevelPage::getDailyTimeString from 0x607e78 to 0x60826c (1012 bytes)
//
// 2 xrefs:
// > DailyLevelPage::init @ 0x608788
// > DailyLevelPage::updateTimers @ 0x608e7e
//
// 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:46 +0000
//
DailyLevelPage *__fastcall DailyLevelPage::getDailyTimeString(DailyLevelPage *this, int a2, int a3)
{
int *v5; // r0
const char *v6; // r1
size_t v7; // r2
int v8; // r3
char *v9; // r1
char *v10; // r1
char *v11; // r2
cocos2d::CCString *v12; // r0
const char *CString; // r0
const char *v14; // r8
size_t v15; // r0
unsigned __int8 v17; // [sp+4h] [bp-1Ch] BYREF
char v18; // [sp+5h] [bp-1Bh] BYREF
char *v19; // [sp+Ch] [bp-14h]
int v20[2]; // [sp+10h] [bp-10h] BYREF
char *v21; // [sp+18h] [bp-8h]
if ( *(_DWORD *)(a2 + 556) == 2 )
{
rand();
if ( COERCE_FLOAT(roundf()) == 187.0 )
{
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "This message is extremely rare.";
*((_DWORD *)this + 2) = 0;
v7 = 31;
}
else
{
rand();
switch ( lroundf() )
{
case 0:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "New event level in ... ?";
*((_DWORD *)this + 2) = 0;
goto LABEL_7;
case 1:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Events are pretty random";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_7:
v7 = 24;
break;
case 2:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 35;
*((_DWORD *)this + 1) = 0;
v6 = "Next event in random hours from now";
*((_DWORD *)this + 2) = 0;
break;
case 3:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "When is the next event?";
*((_DWORD *)this + 2) = 0;
goto LABEL_31;
case 4:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "NEW EVENT! .... soon";
*((_DWORD *)this + 2) = 0;
goto LABEL_23;
case 5:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Why did I program this...";
*((_DWORD *)this + 2) = 0;
goto LABEL_39;
case 6:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "I believe in you";
*((_DWORD *)this + 2) = 0;
goto LABEL_41;
case 7:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 13;
*((_DWORD *)this + 1) = 0;
v6 = "You can do it";
*((_DWORD *)this + 2) = 0;
break;
case 8:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Next one is a banger";
*((_DWORD *)this + 2) = 0;
goto LABEL_23;
case 9:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "This is fun";
*((_DWORD *)this + 2) = 0;
goto LABEL_35;
case 10:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "I can't find anything";
*((_DWORD *)this + 2) = 0;
goto LABEL_37;
case 11:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Why is this a thing?";
*((_DWORD *)this + 2) = 0;
goto LABEL_23;
case 12:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Do or do not. There is no try";
*((_DWORD *)this + 2) = 0;
goto LABEL_29;
case 13:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "The cake is a lie";
*((_DWORD *)this + 2) = 0;
goto LABEL_43;
case 14:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "Challenge accepted";
*((_DWORD *)this + 2) = 0;
goto LABEL_45;
case 15:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "I wonder what's next";
*((_DWORD *)this + 2) = 0;
goto LABEL_23;
case 16:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Welcome to the event";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_23:
v7 = 20;
break;
case 17:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 15;
*((_DWORD *)this + 1) = 0;
v6 = "Jump cube, jump";
*((_DWORD *)this + 2) = 0;
break;
case 18:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "No event for you";
*((_DWORD *)this + 2) = 0;
goto LABEL_41;
case 19:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 22;
*((_DWORD *)this + 1) = 0;
v6 = "This looks interesting";
*((_DWORD *)this + 2) = 0;
break;
case 20:
v5 = (int *)this;
*(_DWORD *)this = 0;
v7 = 27;
*((_DWORD *)this + 1) = 0;
v6 = "Something epic is coming...";
*((_DWORD *)this + 2) = 0;
break;
case 21:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Unlocking something... or not";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_29:
v7 = 29;
break;
case 22:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "This could be legendary";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_31:
v7 = 23;
break;
case 23:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "I wonder if it's a demon?";
*((_DWORD *)this + 2) = 0;
goto LABEL_39;
case 24:
v5 = (int *)this;
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v6 = "A wild event appears!";
*((_DWORD *)this + 2) = 0;
goto LABEL_37;
case 25:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Let me cook";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_35:
v7 = 11;
break;
case 26:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Please wait, cooking.";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_37:
v7 = 21;
break;
case 27:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "I don't think it's coming";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_39:
v7 = 25;
break;
case 28:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Geometry Dashn't";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_41:
v7 = 16;
break;
case 29:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Uber gamer moment";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_43:
v7 = 17;
break;
default:
v5 = (int *)this;
*(_DWORD *)this = 0;
v6 = "Free event is free";
*((_DWORD *)this + 1) = 0;
*((_DWORD *)this + 2) = 0;
LABEL_45:
v7 = 18;
break;
}
}
std::string::__init(v5, v6, v7);
}
else
{
GameToolbox::getTimeString((GameToolbox *)&v17, a3, 0);
v20[0] = 0;
v20[1] = 0;
v21 = nullptr;
v8 = *(_DWORD *)(a2 + 556);
if ( v8 == 1 )
{
v10 = "Weekly Demon";
}
else if ( v8 )
{
if ( v8 == 2 )
v10 = "Event Level";
else
v10 = "NA";
}
else
{
v10 = "Daily Level";
}
std::string::assign(v20, v10);
if ( (v20[0] & 1) != 0 )
v9 = v21;
else
v9 = (char *)v20 + 1;
if ( (v17 & 1) != 0 )
v11 = v19;
else
v11 = &v18;
v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat(
(cocos2d::CCString *)"New %s in: %s",
v9,
v11,
v17 << 31);
CString = (const char *)cocos2d::CCString::getCString(v12);
*(_DWORD *)this = 0;
*((_DWORD *)this + 1) = 0;
v14 = CString;
*((_DWORD *)this + 2) = 0;
v15 = strlen(CString);
std::string::__init((int *)this, v14, v15);
std::string::~string((int)v20);
std::string::~string((int)&v17);
}
return this;
}