//
// GJLevelList::removeLevelFromList from 0x3d65fc to 0x3d6672 (118 bytes)
//
// 1 xrefs:
// > LevelListLayer::cellPerformedAction @ 0x5923c8
//
// 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 GJLevelList::removeLevelFromList(GJLevelList *a1, int a2)
{
int *m_start; // r4
char *v5; // r1
cocos2d::CCDictionary *m_levelsDict; // r8
_DWORD v7[2]; // [sp+0h] [bp-8h] BYREF
v7[0] = a1;
v7[1] = a2;
m_start = a1->m_levels.m_start;
while ( 1 )
{
v5 = (char *)m_start;
if ( m_start == a1->m_levels.m_finish )
break;
++m_start;
if ( *(_DWORD *)v5 == a2 )
{
std::vector::_M_erase((int)&a1->m_levels, v5);
GJLevelList::updateLevelsString(a1);
break;
}
}
m_levelsDict = a1->m_levelsDict;
GameToolbox::intToString((GameToolbox *)v7, a2);
cocos2d::CCDictionary::removeObjectForKey(m_levelsDict);
sub_774008(v7);
a1->m_modified = 1;
}