//
// GJLevelList::updateLevelsString from 0x1000d6924 to 0x1000d6a40 (284 bytes)
//
// 3 xrefs:
// > GJLevelList::addLevelToList @ 0x1000d68a4
// > sub_1000D6A64 @ 0x1000d6ad8
// > sub_1000D6B78 @ 0x1000d6c2c
//
// 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 10:58:56 +0000
//
void __fastcall GJLevelList::updateLevelsString(std::string *a1)
{
unsigned int *size; // x22
unsigned int *v3; // 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_10075BA80;
__s = v10;
size = (unsigned int *)a1[13].__r_.__value_.__l.__size_;
v3 = (unsigned int *)a1[13].__r_.__value_.__r.__words[2];
if ( size == v3 )
{
v5 = __PAIR128__(500, 0);
}
else
{
v4 = 0;
do
{
if ( v4 )
sub_10000CB50((__int64 *)&v8, ",", 0);
v7 = *size;
sub_100009A40((int)&v8, v7, (int)&v7);
++size;
--v4;
}
while ( size != v3 );
v5 = v8;
}
if ( *((_QWORD *)&v5 + 1) < (unsigned __int64)(v5 + 1) )
sub_100009ED4((__int64)&v8, v5 + 1);
__s[v5] = 0;
std::string::assign(a1 + 20, __s);
if ( __s != v10 && __s != nullptr )
operator delete[](__s);
}