//
// LocalLevelManager::moveLevelToBottom from 0x910974 to 0x9109e4 (112 bytes)
//
// 2 xrefs:
// > EditLevelLayer::onMoveToBottom @ 0x7edff8
// > ??> @ 0xaddd0
//
// This function is hookable on this platform (idp: arm, 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:57:16 +0000
//
__int64 __fastcall LocalLevelManager::moveLevelToBottom(__int64 this, GJGameLevel *a2)
{
cocos2d::CCArray **v2; // x20
if ( a2 )
{
v2 = (cocos2d::CCArray **)this;
this = (unsigned __int8)cocos2d::CCArray::containsObject(*(cocos2d::CCArray **)(this + 360), a2);
if ( (_BYTE)this )
{
cocos2d::CCObject::retain(a2);
cocos2d::CCArray::removeObject(v2[45], a2, 1);
cocos2d::CCArray::addObject(v2[45], a2);
cocos2d::CCObject::release(a2);
return LocalLevelManager::updateLevelOrder((LocalLevelManager *)v2);
}
}
return this;
}