//
// sub_10056F010 from 0x10056f010 to 0x10056f0e1 (209 bytes)
//
// 2 xrefs:
// > GameLevelManager::appendModReason @ 0x10055afa9
// > sub_100581860 @ 0x10058189e
//
// 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:32:14 +0000
//
unsigned __int64 __fastcall sub_10056F010(std::string *this, __int64 *a2)
{
char v2; // al
unsigned __int64 result; // rax
__int64 v4; // rax
const std::string::value_type *CString; // rax
unsigned __int64 i; // r13
__int64 v7; // rax
const std::string::value_type *v8; // rax
char v9; // [rsp-8h] [rbp-30h]
char v10; // [rsp-8h] [rbp-30h]
v9 = v2;
*(_OWORD *)&this->__r_.__value_.__l.0 = 0;
this->__r_.__value_.__r.__words[2] = 0;
result = *a2;
if ( a2[1] != *a2 )
{
v4 = sub_10088E820("%i", v9);
CString = (const std::string::value_type *)cocos2d::CCString::getCString(v4);
std::string::append(this, CString);
result = a2[1] - *a2;
if ( result >= 5 )
{
for ( i = 1; i < result; ++i )
{
std::string::append(this, ",");
v7 = sub_10088E820("%i", v10);
v8 = (const std::string::value_type *)cocos2d::CCString::getCString(v7);
std::string::append(this, v8);
result = (a2[1] - *a2) >> 2;
}
}
}
return result;
}