//
// InfoLayer::onOriginal from 0x100351660 to 0x100351704 (164 bytes)
//
// 1 xrefs:
// > InfoLayer::init @ 0x100350568
//
// 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 __fastcall InfoLayer::onOriginal(InfoLayer *a1, cocos2d::CCObject *a2)
{
cocos2d::CCDirector *v3; // x20
cocos2d::CCString *v4; // x0
char *CString; // x0
char *v6; // x0
cocos2d::CCScene *v7; // x0
cocos2d::CCTransitionFade *v8; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v10; // [xsp+1Fh] [xbp-11h]
v3 = cocos2d::CCDirector::sharedDirector();
v4 = (cocos2d::CCString *)sub_100268F4C("%i", a1->m_level->m_originalLevel.random - a1->m_level->m_originalLevel.seed);
CString = (char *)cocos2d::CCString::getCString(v4);
sub_100009900(__p, CString);
v6 = GJSearchObject::create_1(0, (__int128 *)__p);
v7 = LevelBrowserLayer::scene((GJSearchObject *)v6);
v8 = cocos2d::CCTransitionFade::create_1(0.5, v7);
cocos2d::CCDirector::replaceScene(v3, v8);
if ( v10 < 0 )
operator delete(__p[0]);
((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 0);
}