//
// CommentCell::onGoToLevel from 0x1400b8330 to 0x1400b83e8 (184 bytes)
//
// 4 xrefs:
// > CommentCell::loadFromComment @ 0x1400b7409
// > ??> @ 0x14066b7fc
// > ??> @ 0x14066b830
// > ??> @ 0x1406c7c68
//
// 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 CommentCell::onGoToLevel(CommentCell *a1, cocos2d::CCObject *a2)
{
GJComment *m_comment; // rax
int m_levelID; // edi
unsigned int v4; // edx
_QWORD *v5; // rax
GJSearchObject *v6; // rbx
__int64 v7; // rdx
__int64 v8; // rcx
struct cocos2d::CCScene *v9; // rdi
__int64 v10; // rdx
__int64 v11; // rcx
LevelBrowserLayer *v12; // rax
struct cocos2d::CCTransitionFade *v13; // rbx
__int64 v14; // rcx
cocos2d::CCDirector *v15; // rax
_QWORD v16[4]; // [rsp+20h] [rbp-28h] BYREF
m_comment = a1->m_comment;
if ( m_comment )
{
m_levelID = m_comment->m_levelID;
if ( m_levelID )
{
v4 = -m_levelID;
if ( m_levelID >= 0 )
v4 = m_comment->m_levelID;
v5 = GameToolbox::intToString(v16, v4);
v6 = (GJSearchObject *)GJSearchObject::create_1(0, v5);
v6->m_searchMode = (unsigned int)m_levelID >> 31;
v9 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v8, v7);
*(_QWORD *)(cocos2d::CCApplication::sharedApplication(v11, v10) + 224) = v9;
v12 = LevelBrowserLayer::create(v6);
v9->addChild_1(v9, v12);
v13 = cocos2d::CCTransitionFade::create(0.5, v9);
v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14);
cocos2d::CCDirector::pushScene(v15, v13);
}
}
}