//
// LevelBrowserLayer::onExportSelected from 0x4a58b4 to 0x4a591a (102 bytes)
//
// 0 xrefs:
//
// 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:49:53 +0000
//
cocos2d::CCArray *__fastcall LevelBrowserLayer::onExportSelected(cocos2d::CCArray *this, cocos2d::CCObject *a2)
{
int v2; // r7
cocos2d::CCArray *v3; // r0
int v4; // r3
cocos2d::CCArray *v5; // r6
LocalLevelManager *v6; // r0
ButtonSprite *v7; // r1
_DWORD *v8; // r2
cocos2d::CCObject **v9; // r5
cocos2d::CCObject **v10; // r4
cocos2d::CCObject *v11; // r1
cocos2d::CCObject *v12; // t1
v2 = (int)this;
if ( *((_DWORD *)this + 124) )
{
v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(this);
v4 = *(_DWORD *)(v2 + 496);
v5 = v3;
if ( v4 )
{
v8 = *(_DWORD **)(v4 + 52);
if ( *v8 )
{
v9 = (cocos2d::CCObject **)v8[3];
v10 = &v9[*v8] + 0x3FFFFFFF;
while ( v9 <= v10 )
{
v12 = *v9++;
v11 = v12;
if ( !v12 )
break;
if ( *((_BYTE *)v11 + 595) )
cocos2d::CCArray::addObject(v5, v11);
}
}
}
this = (cocos2d::CCArray *)cocos2d::CCArray::count(v5);
if ( this )
{
v6 = (LocalLevelManager *)LocalLevelManager::sharedState(this);
v7 = (ButtonSprite *)LocalLevelManager::exportLevelsToFile(v6, v5);
return (cocos2d::CCArray *)LevelBrowserLayer::showExportResult(v2, v7);
}
}
return this;
}