//
// GJLevelList::updateLevelsString from 0x140273430 to 0x140273531 (257 bytes)
//
// 4 xrefs:
// > GJLevelList::addLevelToList @ 0x140272bda
// > GJLevelList::reorderLevel @ 0x140272df0
// > LevelListLayer::cellPerformedAction @ 0x14042ecfc
// > ??> @ 0x14091cb8c
//
// 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 11:28:55 +0000
//
// Hidden C++ exception states: #wind=1
__int64 __fastcall GJLevelList::updateLevelsString(__int64 a1)
{
int v2; // edi
unsigned int *v3; // rsi
unsigned int *i; // rbx
_BYTE *v5; // rax
size_t v6; // r8
_QWORD v8[2]; // [rsp+20h] [rbp-248h] BYREF
_BYTE v9[528]; // [rsp+30h] [rbp-238h] BYREF
fmt::BasicWriter::BasicWriter(v9);
v2 = 0;
v3 = *(unsigned int **)(a1 + 328);
for ( i = *(unsigned int **)(a1 + 320); i != v3; ++i )
{
if ( v2 )
{
v8[0] = byte_14070ECF8;
v8[1] = 0;
fmt::BasicWriter::operator<<(v9, v8);
}
fmt::BasicWriter::operator<<(v9, *i);
++v2;
}
v5 = (_BYTE *)fmt::BasicWriter::c_str(v9);
v6 = -1;
do
++v6;
while ( v5[v6] );
sub_1400405A0((void **)(a1 + 504), v5, v6);
return fmt::BasicWriter::~BasicWriter(v9);
}