//
// GJLevelList::updateLevelsString from 0x857554 to 0x8576e8 (404 bytes)
//
// 4 xrefs:
// > GJLevelList::addLevelToList @ 0x857788
// > GJLevelList::removeLevelFromList @ 0x8579a4
// > GJLevelList::reorderLevel @ 0x857a4c
// > ??> @ 0xf3b20
//
// 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 12:55:30 +0000
//
__int64 __fastcall GJLevelList::updateLevelsString(GJLevelList *this)
{
unsigned int *v2; // x19
unsigned int *v3; // x24
unsigned int *i; // x19
size_t v5; // x23
size_t v6; // x22
size_t v7; // x19
__int64 *v8; // x26
size_t v10; // [xsp+68h] [xbp+68h] BYREF
unsigned __int64 v11; // [xsp+70h] [xbp+70h]
char *v12; // [xsp+78h] [xbp+78h]
_BYTE v13[504]; // [xsp+80h] [xbp+80h] BYREF
v2 = *((unsigned int **)this + 40);
v3 = *((unsigned int **)this + 41);
v10 = 0;
v11 = 500;
v12 = v13;
if ( v2 == v3 )
{
v8 = (__int64 *)((char *)this + 480);
v7 = 0;
}
else
{
fmt::BasicWriter::FormatInt,char>>(&v10, *v2);
for ( i = v2 + 1; v3 != i; ++i )
{
v5 = v10;
v6 = v10 + 1;
if ( v10 + 1 > v11 )
fmt::internal::Array::grow(&v10, v10 + 1);
v10 = v6;
v12[v5] = 44;
fmt::BasicWriter::FormatInt,char>>(&v10, *i);
}
v7 = v10;
v8 = (__int64 *)((char *)this + 480);
if ( v10 + 1 > v11 )
fmt::internal::Array::grow(&v10, v10 + 1);
}
v12[v7] = 0;
std::string::assign(v8, v12);
if ( v12 != v13 && v12 )
operator delete[](v12);
return _stack_chk_guard;
}