//
// CommentCell::onGoToLevel from 0x100254e10 to 0x100254ea3 (147 bytes)
//
// 1 xrefs:
// > CommentCell::loadFromComment @ 0x100248a70
//
// 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; // rax
int m_levelID; // r14d
__int64 v4; // rsi
GJSearchObject *v5; // rbx
unsigned int v6; // r14d
cocos2d::CCDirector *v7; // r14
cocos2d::CCScene *v8; // rax
cocos2d::CCTransitionFade *v9; // rax
_BYTE v10[16]; // [rsp+8h] [rbp-28h] BYREF
void *__p; // [rsp+18h] [rbp-18h]
m_comment = a1->m_comment;
if ( m_comment )
{
m_levelID = m_comment->m_levelID;
if ( m_levelID )
{
v4 = (unsigned int)-m_levelID;
if ( m_levelID > 0 )
v4 = (unsigned int)m_levelID;
GameToolbox::intToString(v10, v4);
v5 = (GJSearchObject *)GJSearchObject::create_1(0, v10);
v6 = (unsigned int)m_levelID >> 31;
if ( (v10[0] & 1) != 0 )
operator delete(__p);
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);
}
}
}