//
// GJGameLevel::copyLevelInfo from 0x3c9714 to 0x3c98aa (406 bytes)
//
// 2 xrefs:
// > LevelInfoLayer::onClone @ 0x3b28aa
// > EditLevelLayer::onClone @ 0x3b8042
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void GJGameLevel::copyLevelInfo(GJGameLevel *a1)
{
int v1; // r1
int v2; // r5
GameLevelManager *v4; // r7
int v5; // r2
bool v6; // r3
int v7; // r2
bool v8; // r3
int v9; // [sp+4h] [bp-20h] BYREF
_BYTE v10[4]; // [sp+8h] [bp-1Ch] BYREF
_BYTE v11[4]; // [sp+Ch] [bp-18h] BYREF
_BYTE v12[4]; // [sp+10h] [bp-14h] BYREF
cocos2d::CCPoint v13; // [sp+14h] [bp-10h] BYREF
v2 = v1;
v4 = GameLevelManager::sharedState();
sub_775C20(&v13, v2 + 280);
GameLevelManager::getNextLevelName(&v9, (int)v4, (const char **)&v13);
sub_774008(&v13);
sub_775C20(v10, &v9);
sub_775D40(&a1->m_levelName, v10);
sub_774008(v10);
sub_775C20(v11, v2 + 288);
sub_775D40(&a1->m_levelString, v11);
sub_774008(v11);
a1->m_audioTrack = *(_DWORD *)(v2 + 352);
a1->m_songID = *(_DWORD *)(v2 + 356);
a1->m_twoPlayerMode = *(_BYTE *)(v2 + 640);
a1->m_levelLength = *(_DWORD *)(v2 + 540);
a1->m_timestamp = *(_DWORD *)(v2 + 784);
a1->m_coins = *(_DWORD *)(v2 + 604);
GJGameLevel::unverifyCoins(a1);
a1->m_lastBuildTab = *(_DWORD *)(v2 + 748);
a1->m_lastBuildPage = *(_DWORD *)(v2 + 752);
a1->m_lastEditorZoom = *(float *)(v2 + 744);
cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)(v2 + 736));
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_lastCameraPos, COERCE_FLOAT(&v13), v5, v6);
a1->m_lastBuildGroupID = *(_DWORD *)(v2 + 756);
a1->m_workingTime2 = *(_DWORD *)(v2 + 404) + *(_DWORD *)(v2 + 400);
a1->m_workingTime = 0;
sub_775C20(v12, v2 + 312);
sub_775D40(&a1->m_savedCameraPositions, v12);
sub_774008(v12);
cocos2d::CCPoint::CCPoint(&v13, (const cocos2d::CCPoint *)(v2 + 316));
cocos2d::CCPoint::operator=((PlayerObject *)&a1->m_previewLock, COERCE_FLOAT(&v13), v7, v8);
sub_775C20(&v13, v2 + 308);
sub_775D40(&a1->m_lockedEditorLayers, &v13);
sub_774008(&v13);
sub_775D40(&a1->m_sfxIDs, v2 + 796);
sub_775D40(&a1->m_songIDs, v2 + 792);
a1->m_songSize = *(_DWORD *)(v2 + 800);
sub_774008(&v9);
}