//
// GJLevelList::duplicateListLevels from 0x10058ec30 to 0x10058ec91 (97 bytes)
//
// 1 xrefs:
// > LevelListLayer::cloneList @ 0x10034b6f9
//
// 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:25 +0000
//
__int64 __fastcall GJLevelList::duplicateListLevels(__int64 a1, __int64 a2)
{
unsigned int v2; // r14d
__int64 ListLevelsArray; // r15
__int64 result; // rax
__int64 v5; // rax
v2 = 0;
ListLevelsArray = GJLevelList::getListLevelsArray(a2);
result = sub_1007FEF90(ListLevelsArray);
if ( (_DWORD)result )
{
do
{
v5 = sub_1007FEFE0(ListLevelsArray, v2);
GJLevelList::addLevelToList(a1, v5);
++v2;
result = sub_1007FEF90(ListLevelsArray);
}
while ( v2 < (unsigned int)result );
}
return result;
}