//
// sub_1003D2C5C from 0x1003d2c5c to 0x1003d2d4c (240 bytes)
//
// 1 xrefs:
// > GameLevelManager::getOnlineLevels @ 0x1000b5de8
//
// 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 11:04:12 +0000
//
std::string *__usercall sub_1003D2C5C@(std::string *result@, int a2@, int a3@, __int64 a4@)
{
std::string::size_type size; // x8
__int64 v6; // x26
const char *v9; // x25
int v10; // w25
__int64 v11; // x8
void *v12; // x0
const std::string::value_type *CString; // x0
*(_QWORD *)a4 = 0;
*(_QWORD *)(a4 + 8) = 0;
*(_QWORD *)(a4 + 16) = 0;
size = result[25].__r_.__value_.__l.__size_;
if ( size )
{
v6 = *(_QWORD *)(size + 56);
while ( v6 )
{
v9 = (const char *)v6;
v6 = *(_QWORD *)(v6 + 288);
result = (std::string *)strncmp(v9, "dstar_", 6u);
if ( !(_DWORD)result )
{
result = (std::string *)atoi(v9 + 6);
if ( (int)result > a2 )
{
v10 = (int)result;
if ( (int)result <= a3 )
{
v11 = *(unsigned __int8 *)(a4 + 23);
if ( (v11 & 0x80u) != 0LL )
v11 = *(_QWORD *)(a4 + 8);
if ( v11 )
std::string::append((std::string *)a4, ",");
v12 = sub_1003065B0("%i", v10);
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v12);
result = std::string::append((std::string *)a4, CString);
}
}
}
}
}
return result;
}