//
// GameStatsManager::getCompletedDailyIDs from 0x8d8ffc to 0x8d911c (288 bytes)
//
// 2 xrefs:
// > GameLevelManager::getOnlineLevels @ 0x82e144
// > ??> @ 0x101f38
//
// 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 12:56:46 +0000
//
__int64 *__usercall GameStatsManager::getCompletedDailyIDs@(
__int64 *__return_ptr a1@,
GameStatsManager *this@,
int a3@,
int a4@)
{
__int64 v7; // x0
__int64 v8; // x20
__int64 i; // x19
int v10; // w0
unsigned int v11; // w20
__int64 v12; // x1
cocos2d::CCString *v13; // x0
size_t v14; // x0
char *CString; // [xsp+58h] [xbp+58h]
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v7 = *((_QWORD *)this + 76);
if ( v7 )
{
v8 = *(_QWORD *)(v7 + 56);
if ( v8 )
{
for ( i = *(_QWORD *)(v8 + 288); ; i = *(_QWORD *)(i + 288) )
{
if ( !strncmp((const char *)v8, "dstar_", 6u) )
{
v10 = atoi((const char *)(v8 + 6));
v11 = v10;
if ( v10 <= a4 && v10 > a3 )
{
v12 = *(_BYTE *)a1 >> 1;
if ( (*(_BYTE *)a1 & 1) != 0 )
v12 = a1[1];
if ( v12 )
std::string::append((__int64)a1, &byte_1169BE0, 1u);
v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", (const char *)v11);
CString = (char *)cocos2d::CCString::getCString(v13);
v14 = strlen(CString);
std::string::append((__int64)a1, CString, v14);
}
}
if ( !i )
break;
v8 = i;
}
}
}
return a1;
}