//
// GameStatsManager::getCompletedDailyIDs from 0x10003a680 to 0x10003a77a (250 bytes)
//
// 1 xrefs:
// > GameLevelManager::getOnlineLevels @ 0x100558732
//
// 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:19:33 +0000
//
std::string *__fastcall GameStatsManager::getCompletedDailyIDs(std::string *this, __int64 a2, int a3, int a4)
{
char v4; // al
__int64 v5; // rax
__int64 v6; // r14
const char *v8; // r13
int v9; // r13d
unsigned int v10; // eax
__int64 v11; // rax
const std::string::value_type *CString; // rax
char v14; // [rsp-4h] [rbp-30h]
int v15; // [rsp+0h] [rbp-2Ch]
v14 = v4;
v15 = a4;
*(_OWORD *)&this->__r_.__value_.__l.0 = 0;
this->__r_.__value_.__r.__words[2] = 0;
v5 = *(_QWORD *)(a2 + 608);
if ( v5 )
{
v6 = *(_QWORD *)(v5 + 56);
if ( v6 )
{
while ( 1 )
{
v8 = (const char *)v6;
v6 = *(_QWORD *)(v6 + 288);
if ( strncmp(v8, "dstar_", 6u) )
goto LABEL_4;
v9 = atoi(v8 + 6);
if ( v9 <= a3 || v9 > v15 )
goto LABEL_4;
v10 = (unsigned int)this->__r_.__value_.__l.0;
if ( (v10 & 1) != 0 )
break;
if ( v10 >> 1 )
goto LABEL_11;
LABEL_12:
v11 = sub_10088E820("%i", v14);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v11);
std::string::append(this, CString);
LABEL_4:
if ( !v6 )
return this;
}
if ( !this->__r_.__value_.__l.__size_ )
goto LABEL_12;
LABEL_11:
std::string::append(this, ",");
goto LABEL_12;
}
}
return this;
}