//
// GJLevelList::updateLevelsString from 0x1000b1544 to 0x1000b1660 (284 bytes)
//
// 3 xrefs:
// > GJLevelList::addLevelToList @ 0x1000b14c4
// > GJLevelList::removeLevelFromList @ 0x1000b16f8
// > GJLevelList::reorderLevel @ 0x1000b184c
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall GJLevelList::updateLevelsString(GJLevelList *a1)
{
std::__vector_base::pointer begin; // x22
std::__vector_base::pointer end; // x23
int v4; // w24
unsigned __int128 v5; // kr00_16
unsigned int v7; // [xsp+Ch] [xbp-264h] BYREF
__int128 v8; // [xsp+10h] [xbp-260h] BYREF
std::string::value_type *__s; // [xsp+20h] [xbp-250h]
_BYTE v10[512]; // [xsp+28h] [xbp-248h] BYREF
v8 = xmmword_1006350E0;
__s = v10;
begin = a1->m_levels.__begin_;
end = a1->m_levels.__end_;
if ( begin == end )
{
v5 = __PAIR128__(500, 0);
}
else
{
v4 = 0;
do
{
if ( v4 )
sub_10000CB18((__int64 *)&v8, ",", 0);
v7 = *begin;
sub_100009A40((int)&v8, v7, (int)&v7);
++begin;
--v4;
}
while ( begin != end );
v5 = v8;
}
if ( *((_QWORD *)&v5 + 1) < (unsigned __int64)(v5 + 1) )
sub_100009ED4((__int64)&v8, v5 + 1);
__s[v5] = 0;
std::string::assign((std::string *)&a1->m_levelsString, __s);
if ( __s != v10 && __s != nullptr )
operator delete[](__s);
}