//
// DailyLevelPage::getDailyTimeString from 0x100215560 to 0x1002158f0 (912 bytes)
//
// 2 xrefs:
// > DailyLevelPage::init @ 0x100214f95
// > DailyLevelPage::updateTimers @ 0x100215a37
//
// This function is hookable on this platform (idp: pc, 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 12:26:59 +0000
//
size_t *__fastcall DailyLevelPage::getDailyTimeString(size_t *a1, __int64 a2, unsigned int a3, __m128 a4)
{
__m128 v4; // xmm1
char *v5; // rax
unsigned __int64 v6; // rax
const std::string::value_type *v7; // rsi
__int64 v8; // rax
const char *CString; // r14
size_t v10; // rax
size_t v11; // r15
_BYTE *v12; // r12
size_t v13; // r13
__m128 v14; // xmm0
__m128 v15; // xmm1
const char *v16; // rsi
char v18; // [rsp+0h] [rbp-60h]
char v19; // [rsp+8h] [rbp-58h] BYREF
void *__p; // [rsp+18h] [rbp-48h]
std::string v21; // [rsp+20h] [rbp-40h] BYREF
if ( *(_DWORD *)(a2 + 732) == 2 )
{
a4.f32[0] = (float)((float)rand() * 4.6566129e-10) * 1000.0;
v4 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, a4), (__m128)xmmword_100A03600);
v4.f32[0] = v4.f32[0] + a4.f32[0];
if ( _mm_round_ss((__m128)0LL, v4, 11).f32[0] == 187.0 )
{
v5 = (char *)operator new(0x20u);
a1[2] = (size_t)v5;
*a1 = 33;
a1[1] = 31;
strcpy(v5, "This message is extremely rare.");
}
else
{
v14 = 0;
v14.f32[0] = (float)((float)rand() * 4.6566129e-10) * 30.0;
v15 = _mm_or_ps(_mm_and_ps((__m128)xmmword_100A035F0, v14), (__m128)xmmword_100A03600);
v15.f32[0] = v15.f32[0] + v14.f32[0];
switch ( (int)_mm_round_ss((__m128)0LL, v15, 11).f32[0] )
{
case 0:
v16 = "New event level in ... ?";
break;
case 1:
v16 = "Events are pretty random";
break;
case 2:
v16 = "Next event in random hours from now";
break;
case 3:
v16 = "When is the next event?";
break;
case 4:
v16 = "NEW EVENT! .... soon";
break;
case 5:
v16 = "Why did I program this...";
break;
case 6:
v16 = "I believe in you";
break;
case 7:
v16 = "You can do it";
break;
case 8:
v16 = "Next one is a banger";
break;
case 9:
v16 = "This is fun";
break;
case 10:
v16 = "I can't find anything";
break;
case 11:
v16 = "Why is this a thing?";
break;
case 12:
v16 = "Do or do not. There is no try";
break;
case 13:
v16 = "The cake is a lie";
break;
case 14:
v16 = "Challenge accepted";
break;
case 15:
v16 = "I wonder what's next";
break;
case 16:
v16 = "Welcome to the event";
break;
case 17:
v16 = "Jump cube, jump";
break;
case 18:
v16 = "No event for you";
break;
case 19:
v16 = "This looks interesting";
break;
case 20:
v16 = "Something epic is coming...";
break;
case 21:
v16 = "Unlocking something... or not";
break;
case 22:
v16 = "This could be legendary";
break;
case 23:
v16 = "I wonder if it's a demon?";
break;
case 24:
v16 = "A wild event appears!";
break;
case 25:
v16 = "Let me cook";
break;
case 26:
v16 = "Please wait, cooking.";
break;
case 27:
v16 = "I don't think it's coming";
break;
case 28:
v16 = "Geometry Dashn't";
break;
case 29:
v16 = "Uber gamer moment";
break;
default:
v16 = "Free event is free";
break;
}
sub_10000E4E0(a1, v16);
}
return a1;
}
GameToolbox::getTimeString(&v19, a3, 0);
memset(&v21, 0, sizeof(v21));
v6 = *(unsigned int *)(a2 + 732);
if ( v6 >= 3 )
v7 = "NA";
else
v7 = (char *)dword_100A06308 + dword_100A06308[v6];
std::string::assign(&v21, v7);
v8 = sub_10088E820("New %s in: %s", v18);
CString = (const char *)cocos2d::CCString::getCString(v8);
v10 = strlen(CString);
if ( v10 >= 0xFFFFFFFFFFFFFFF8LL )
sub_100003630();
v11 = v10;
if ( v10 >= 0x17 )
{
v13 = 26;
if ( (v10 | 7) != 0x17 )
v13 = (v10 | 7) + 1;
v12 = operator new(v13);
a1[2] = (size_t)v12;
*a1 = v13 | 1;
a1[1] = v11;
}
else
{
*(_BYTE *)a1 = 2 * v10;
v12 = (char *)a1 + 1;
if ( !v10 )
{
*v12 = 0;
if ( (*(_BYTE *)&v21.__r_.__value_.__s.0 & 1) == 0 )
goto LABEL_12;
goto LABEL_11;
}
}
memmove(v12, CString, v11);
v12[v11] = 0;
if ( (*(_BYTE *)&v21.__r_.__value_.__s.0 & 1) != 0 )
LABEL_11:
operator delete(v21.__r_.__value_.__l.__data_);
LABEL_12:
if ( (v19 & 1) != 0 )
operator delete(__p);
return a1;
}