//
// sub_100927AB0 from 0x100927ab0 to 0x100927c49 (409 bytes)
//
// 1 xrefs:
// > sub_1009269F0 @ 0x1009271c1
//
// 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:38:20 +0000
//
std::string *__fastcall sub_100927AB0(std::string *this, __int64 a2, unsigned __int8 *a3)
{
unsigned int v5; // eax
unsigned __int64 v6; // r15
int v7; // r13d
unsigned __int64 v8; // rcx
unsigned __int8 *v9; // rcx
std::string::value_type v10; // al
const char *data; // rdi
int v12; // r12d
unsigned int v13; // eax
char *v14; // rax
const std::string::value_type *CString; // rax
unsigned __int8 *v17; // [rsp+8h] [rbp-48h]
std::string v18; // [rsp+10h] [rbp-40h] BYREF
v5 = *a3;
if ( (v5 & 1) == 0 )
{
if ( v5 >> 1 )
goto LABEL_3;
LABEL_30:
*(_WORD *)&this->__r_.__value_.__l.0 = 0;
return this;
}
if ( !*((_QWORD *)a3 + 1) )
goto LABEL_30;
LABEL_3:
*(_OWORD *)&this->__r_.__value_.__l.0 = 0;
this->__r_.__value_.__r.__words[2] = 0;
memset(&v18, 0, sizeof(v18));
v17 = a3 + 1;
v6 = 0;
v7 = 0;
while ( (v5 & 1) == 0 )
{
v8 = (unsigned __int8)v5 >> 1;
if ( v6 > v8 )
goto LABEL_27;
LABEL_10:
if ( v6 != v8 )
{
v9 = v17;
if ( (v5 & 1) != 0 )
v9 = *((unsigned __int8 **)a3 + 2);
v10 = v9[v6];
if ( v10 != 44 )
{
std::string::push_back(&v18, v10);
goto LABEL_5;
}
}
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
{
if ( !v18.__r_.__value_.__l.__size_ )
goto LABEL_5;
data = v18.__r_.__value_.__l.__data_;
}
else
{
data = v18.__r_.__value_.__s.__data_;
if ( !*(_BYTE *)&v18.__r_.__value_.__s.0 )
goto LABEL_5;
}
v12 = atoi(data);
v13 = (unsigned int)this->__r_.__value_.__l.0;
if ( (v13 & 1) == 0 )
{
if ( !(v13 >> 1) )
goto LABEL_24;
LABEL_23:
std::string::append(this, " ");
goto LABEL_24;
}
if ( this->__r_.__value_.__l.__size_ )
goto LABEL_23;
LABEL_24:
v7 += v12;
v14 = sub_10088E820("%i%%", v7);
CString = (const std::string::value_type *)cocos2d::CCString::getCString((__int64)v14);
std::string::append(this, CString);
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
{
*v18.__r_.__value_.__l.__data_ = 0;
v18.__r_.__value_.__l.__size_ = 0;
}
else
{
*(_WORD *)&v18.__r_.__value_.__l.0 = 0;
}
LABEL_5:
++v6;
LOBYTE(v5) = *a3;
}
v8 = *((_QWORD *)a3 + 1);
if ( v6 <= v8 )
goto LABEL_10;
LABEL_27:
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v18.__r_.__value_.__l.__data_);
return this;
}