//
// CommentCell::onGoToLevel from 0x100110b04 to 0x100110b90 (140 bytes)
//
// 1 xrefs:
// > CommentCell::loadFromComment @ 0x100106cb4
//
// 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 CommentCell::onGoToLevel(CommentCell *a1, cocos2d::CCObject *a2)
{
GJComment *m_comment; // x8
int m_levelID; // w20
__int64 v4; // x0
GJSearchObject *v5; // x19
unsigned int v6; // w20
cocos2d::CCDirector *v7; // x20
cocos2d::CCScene *v8; // x0
cocos2d::CCTransitionFade *v9; // x0
void *__p[2]; // [xsp+8h] [xbp-28h] BYREF
char v11; // [xsp+1Fh] [xbp-11h]
m_comment = a1->m_comment;
if ( m_comment )
{
m_levelID = m_comment->m_levelID;
if ( m_levelID )
{
if ( m_levelID >= 0 )
v4 = (unsigned int)m_levelID;
else
v4 = (unsigned int)-m_levelID;
GameToolbox::intToString(v4, __p);
v5 = (GJSearchObject *)GJSearchObject::create_1(0, (__int128 *)__p);
v6 = (unsigned int)m_levelID >> 31;
if ( v11 < 0 )
operator delete(__p[0]);
v5->m_searchMode = v6;
v7 = cocos2d::CCDirector::sharedDirector();
v8 = LevelBrowserLayer::scene(v5);
v9 = cocos2d::CCTransitionFade::create_1(0.5, v8);
cocos2d::CCDirector::pushScene(v7, v9);
}
}
}