//
// GJGameLevel::getListSnapshot from 0x100588b90 to 0x100588f0e (894 bytes)
//
// 2 xrefs:
// > GJLevelList::getListLevelsArray @ 0x10058ef0b
// > GJLevelList::addLevelToList @ 0x10058f2d5
//
// 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:32:23 +0000
//
char *__fastcall GJGameLevel::getListSnapshot(__int64 a1)
{
char *v1; // rbx
int v2; // r15d
int v3; // eax
int v4; // r15d
int v5; // eax
int v6; // r15d
float v7; // xmm0_4
int v8; // r15d
float v9; // xmm0_4
int v10; // r15d
float v11; // xmm0_4
_BOOL4 v12; // r15d
float v13; // xmm0_4
int v14; // r15d
float v15; // xmm0_4
std::string __str; // [rsp+0h] [rbp-50h] BYREF
std::string v18; // [rsp+20h] [rbp-30h] BYREF
v1 = (char *)operator new(0x740u);
GJGameLevel::GJGameLevel(v1);
if ( (*(unsigned __int8 (__fastcall **)(char *))(*(_QWORD *)v1 + 80LL))(v1) )
{
cocos2d::CCObject::autorelease((__int64)v1);
}
else
{
(*(void (__fastcall **)(char *))(*(_QWORD *)v1 + 16LL))(v1);
v1 = nullptr;
}
v2 = *(_DWORD *)(a1 + 328) - *(_DWORD *)(a1 + 332);
*((_DWORD *)v1 + 84) = v2;
v3 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);
*((_DWORD *)v1 + 83) = v3;
*((_DWORD *)v1 + 82) = v3 + v2;
if ( (*(_BYTE *)(a1 + 344) & 1) != 0 )
sub_10001AD30(&__str, *(const void **)(a1 + 360), *(_QWORD *)(a1 + 352));
else
__str = *(std::string *)(a1 + 344);
std::string::operator=((std::string *)(v1 + 344), &__str);
if ( (*(_BYTE *)&__str.__r_.__value_.__s.0 & 1) != 0 )
operator delete(__str.__r_.__value_.__l.__data_);
*((_DWORD *)v1 + 225) = *(_DWORD *)(a1 + 900);
*((_DWORD *)v1 + 308) = *(_DWORD *)(a1 + 1232);
v4 = *(_DWORD *)(a1 + 588) - *(_DWORD *)(a1 + 592);
*((_DWORD *)v1 + 149) = v4;
v5 = (int)(float)((float)((float)rand() * 4.6566129e-10) * 1000.0);
*((_DWORD *)v1 + 148) = v5;
*((_DWORD *)v1 + 147) = v5 + v4;
if ( (*(_BYTE *)(a1 + 416) & 1) != 0 )
sub_10001AD30(&v18, *(const void **)(a1 + 432), *(_QWORD *)(a1 + 424));
else
v18 = *(std::string *)(a1 + 416);
std::string::operator=((std::string *)(v1 + 416), &v18);
if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 )
operator delete(v18.__r_.__value_.__l.__data_);
*((_DWORD *)v1 + 223) = *(_DWORD *)(a1 + 892);
*((_DWORD *)v1 + 161) = *(_DWORD *)(a1 + 644);
*(_QWORD *)(v1 + 604) = *(_QWORD *)(a1 + 604);
*((_DWORD *)v1 + 285) = *(_DWORD *)(a1 + 1140);
*(_QWORD *)(v1 + 636) = *(_QWORD *)(a1 + 636);
v6 = *(_DWORD *)(a1 + 932) - *(_DWORD *)(a1 + 936);
*((_DWORD *)v1 + 235) = v6;
v7 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
*((_DWORD *)v1 + 234) = (int)v7;
*((_DWORD *)v1 + 233) = (int)v7 + v6;
*((_DWORD *)v1 + 236) = *(_DWORD *)(a1 + 944);
v1[960] = *(_BYTE *)(a1 + 960);
*((_QWORD *)v1 + 113) = *(_QWORD *)(a1 + 904);
v8 = *(_DWORD *)(a1 + 948) - *(_DWORD *)(a1 + 952);
*((_DWORD *)v1 + 239) = v8;
v9 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
*((_DWORD *)v1 + 238) = (int)v9;
*((_DWORD *)v1 + 237) = (int)v9 + v8;
*((_DWORD *)v1 + 241) = *(_DWORD *)(a1 + 964);
v10 = *(_DWORD *)(a1 + 968) - *(_DWORD *)(a1 + 972);
*((_DWORD *)v1 + 244) = v10;
v11 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
*((_DWORD *)v1 + 243) = (int)v11;
*((_DWORD *)v1 + 242) = (int)v11 + v10;
v12 = *(_DWORD *)(a1 + 988) != *(_DWORD *)(a1 + 992);
*((_DWORD *)v1 + 249) = v12;
v13 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
*((_DWORD *)v1 + 248) = (int)v13;
*((_DWORD *)v1 + 247) = v12 + (int)v13;
v14 = *(_DWORD *)(a1 + 620) - *(_DWORD *)(a1 + 624);
*((_DWORD *)v1 + 157) = v14;
v15 = (float)((float)rand() * 4.6566129e-10) * 1000.0;
*((_DWORD *)v1 + 156) = (int)v15;
*((_DWORD *)v1 + 155) = (int)v15 + v14;
return v1;
}