//
// GJLevelList::duplicateListLevels from 0x4d8d98 to 0x4d8dc8 (48 bytes)
//
// 1 xrefs:
// > LevelListLayer::cloneList @ 0x6d9b54
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:54 +0000
//
unsigned int __fastcall GJLevelList::duplicateListLevels(GJLevelList *this, GJLevelList *a2)
{
unsigned int v3; // r4
cocos2d::CCArray *ListLevelsArray; // r5
unsigned int result; // r0
GJGameLevel *v6; // r0
v3 = 0;
ListLevelsArray = GJLevelList::getListLevelsArray(a2, nullptr);
while ( 1 )
{
result = cocos2d::CCArray::count(ListLevelsArray);
if ( v3 >= result )
break;
v6 = (GJGameLevel *)cocos2d::CCArray::objectAtIndex(ListLevelsArray, v3++);
GJLevelList::addLevelToList(this, v6);
}
return result;
}