//
// LevelBrowserLayer::onMyOnlineLevels from 0x3bd560 to 0x3bd64a (234 bytes)
//
// 0 xrefs:
//
// 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 LevelBrowserLayer::onMyOnlineLevels(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
GJAccountManager *v3; // r0
GJSearchObject *v4; // r7
GameManager *v5; // r0
cocos2d::CCDirector *v6; // r4
cocos2d::CCScene *v7; // r0
cocos2d::CCTransitionFade *v8; // r0
char *v9; // [sp+4h] [bp-10h] BYREF
_BYTE v10[4]; // [sp+8h] [bp-Ch] BYREF
a1->setKeypadEnabled(a1, 0);
a1->setKeyboardEnabled(a1, 0);
if ( a1->m_searchObject->m_searchType == MyLists )
{
v3 = GJAccountManager::sharedState();
GameToolbox::intToString((GameToolbox *)&v9, v3->m_accountID - v3->m_unkInt1);
sub_776584((int)v10, v9);
v4 = GJSearchObject::create(UsersLevels);
sub_774008(v10);
sub_774008(&v9);
v4->m_searchMode = 1;
}
else
{
v5 = GameManager::sharedState();
GameToolbox::intToString((GameToolbox *)&v9, v5->m_playerUserID.random - v5->m_playerUserID.seed);
sub_776584((int)v10, v9);
v4 = GJSearchObject::create(UsersLevels);
sub_774008(v10);
sub_774008(&v9);
}
v6 = cocos2d::CCDirector::sharedDirector();
v7 = LevelBrowserLayer::scene(v4);
v8 = cocos2d::CCTransitionFade::create(0.5, v7);
cocos2d::CCDirector::replaceScene(v6, v8);
}