{"type": "func", "start": 5369463600, "end": 5369463784, "name": "CommentCell::onGoToLevel", "pseudocode": "// \n// CommentCell::onGoToLevel from 0x1400b8330 to 0x1400b83e8 (184 bytes)\n// \n// 4 xrefs:\n// > CommentCell::loadFromComment @ 0x1400b7409\n// > <???> @ 0x14066b7fc\n// > <???> @ 0x14066b830\n// > <???> @ 0x1406c7c68\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid CommentCell::onGoToLevel(CommentCell *a1, cocos2d::CCObject *a2)\n{\n  GJComment *m_comment; // rax\n  int m_levelID; // edi\n  unsigned int v4; // edx\n  _QWORD *v5; // rax\n  GJSearchObject *v6; // rbx\n  __int64 v7; // rdx\n  __int64 v8; // rcx\n  struct cocos2d::CCScene *v9; // rdi\n  __int64 v10; // rdx\n  __int64 v11; // rcx\n  LevelBrowserLayer *v12; // rax\n  struct cocos2d::CCTransitionFade *v13; // rbx\n  __int64 v14; // rcx\n  cocos2d::CCDirector *v15; // rax\n  _QWORD v16[4]; // [rsp+20h] [rbp-28h] BYREF\n\n  m_comment = a1->m_comment;\n  if ( m_comment )\n  {\n    m_levelID = m_comment->m_levelID;\n    if ( m_levelID )\n    {\n      v4 = -m_levelID;\n      if ( m_levelID >= 0 )\n        v4 = m_comment->m_levelID;\n      v5 = GameToolbox::intToString(v16, v4);\n      v6 = (GJSearchObject *)GJSearchObject::create_1(0, v5);\n      v6->m_searchMode = (unsigned int)m_levelID >> 31;\n      v9 = (struct cocos2d::CCScene *)cocos2d::CCScene::create(v8, v7);\n      *(_QWORD *)(cocos2d::CCApplication::sharedApplication(v11, v10) + 224) = v9;\n      v12 = LevelBrowserLayer::create(v6);\n      v9->addChild_1(v9, v12);\n      v13 = cocos2d::CCTransitionFade::create(0.5, v9);\n      v15 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v14);\n      cocos2d::CCDirector::pushScene(v15, v13);\n    }\n  }\n}", "assembly": "; \n; CommentCell::onGoToLevel from 0x1400b8330 to 0x1400b83e8 (184 bytes)\n; \n; 4 xrefs:\n; > CommentCell::loadFromComment @ 0x1400b7409\n; > <???> @ 0x14066b7fc\n; > <???> @ 0x14066b830\n; > <???> @ 0x1406c7c68\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nsub     rsp, 48h                                                       ; +0x0, 0x1400b8330\nmov     rax, [rcx+250h]                                                ; +0x4, 0x1400b8334\ntest    rax, rax                                                       ; +0xb, 0x1400b833b\njz      loc_1400B83E3                                                  ; +0xe, 0x1400b833e\nmov     [rsp+48h+var_8], rdi                                           ; +0x14, 0x1400b8344\nmov     edi, [rax+18Ch]                                                ; +0x19, 0x1400b8349\ntest    edi, edi                                                       ; +0x1f, 0x1400b834f\njz      loc_1400B83DE                                                  ; +0x21, 0x1400b8351\nmov     edx, edi                                                       ; +0x27, 0x1400b8357\nmov     [rsp+48h+arg_8], rbx                                           ; +0x29, 0x1400b8359\nneg     edx                                                            ; +0x2e, 0x1400b835e\nlea     rcx, [rsp+48h+var_28]                                          ; +0x30, 0x1400b8360\ntest    edi, edi                                                       ; +0x35, 0x1400b8365\ncmovns  edx, edi                                                       ; +0x37, 0x1400b8367\ncall    GameToolbox__intToString                                       ; +0x3a, 0x1400b836a\nmov     rdx, rax                                                       ; +0x3f, 0x1400b836f\nxor     ecx, ecx                                                       ; +0x42, 0x1400b8372\ncall    GJSearchObject__create_1                                       ; +0x44, 0x1400b8374\nshr     edi, 1Fh                                                       ; +0x49, 0x1400b8379\nmov     rbx, rax                                                       ; +0x4c, 0x1400b837c\nmov     [rax+1D0h], edi                                                ; +0x4f, 0x1400b837f\ncall    cs:?create@CCScene@cocos2d@@SAPEAV12@XZ; cocos2d::CCScene::create(void) ; +0x55, 0x1400b8385\nmov     rdi, rax                                                       ; +0x5b, 0x1400b838b\ncall    cs:?sharedApplication@CCApplication@cocos2d@@SAPEAV12@XZ; cocos2d::CCApplication::sharedApplication(void) ; +0x5e, 0x1400b838e\nmov     rcx, rbx                                                       ; +0x64, 0x1400b8394\nmov     [rax+0E0h], rdi                                                ; +0x67, 0x1400b8397\ncall    LevelBrowserLayer__create                                      ; +0x6e, 0x1400b839e\nmov     r8, [rdi]                                                      ; +0x73, 0x1400b83a3\nmov     rdx, rax                                                       ; +0x76, 0x1400b83a6\nmov     rcx, rdi                                                       ; +0x79, 0x1400b83a9\ncall    qword ptr [r8+1C0h]                                            ; +0x7c, 0x1400b83ac\nmovss   xmm0, cs:dword_140622B08                                       ; +0x83, 0x1400b83b3\nmov     rdx, rdi                                                       ; +0x8b, 0x1400b83bb\ncall    cs:?create@CCTransitionFade@cocos2d@@SAPEAV12@MPEAVCCScene@2@@Z; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x8e, 0x1400b83be\nmov     rbx, rax                                                       ; +0x94, 0x1400b83c4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x97, 0x1400b83c7\nmov     rcx, rax                                                       ; +0x9d, 0x1400b83cd\nmov     rdx, rbx                                                       ; +0xa0, 0x1400b83d0\ncall    cs:?pushScene@CCDirector@cocos2d@@QEAA_NPEAVCCScene@2@@Z; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0xa3, 0x1400b83d3\nmov     rbx, [rsp+48h+arg_8]                                           ; +0xa9, 0x1400b83d9\nmov     rdi, [rsp+48h+var_8]                                           ; +0xae, 0x1400b83de\nadd     rsp, 48h                                                       ; +0xb3, 0x1400b83e3\nretn                                                                   ; +0xb7, 0x1400b83e7", "xrefs": ["CommentCell::loadFromComment @ 0x1400b7409", "<???> @ 0x14066b7fc", "<???> @ 0x14066b830", "<???> @ 0x1406c7c68"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}