{"type": "func", "start": 4297412112, "end": 4297412259, "name": "CommentCell::onGoToLevel", "pseudocode": "// \n// CommentCell::onGoToLevel from 0x100254e10 to 0x100254ea3 (147 bytes)\n// \n// 1 xrefs:\n// > CommentCell::loadFromComment @ 0x100248a70\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 __fastcall CommentCell::onGoToLevel(CommentCell *a1, cocos2d::CCObject *a2)\n{\n  GJComment *m_comment; // rax\n  int m_levelID; // r14d\n  __int64 v4; // rsi\n  GJSearchObject *v5; // rbx\n  unsigned int v6; // r14d\n  cocos2d::CCDirector *v7; // r14\n  cocos2d::CCScene *v8; // rax\n  cocos2d::CCTransitionFade *v9; // rax\n  _BYTE v10[16]; // [rsp+8h] [rbp-28h] BYREF\n  void *__p; // [rsp+18h] [rbp-18h]\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 = (unsigned int)-m_levelID;\n      if ( m_levelID > 0 )\n        v4 = (unsigned int)m_levelID;\n      GameToolbox::intToString(v10, v4);\n      v5 = (GJSearchObject *)GJSearchObject::create_1(0, v10);\n      v6 = (unsigned int)m_levelID >> 31;\n      if ( (v10[0] & 1) != 0 )\n        operator delete(__p);\n      v5->m_searchMode = v6;\n      v7 = cocos2d::CCDirector::sharedDirector();\n      v8 = LevelBrowserLayer::scene(v5);\n      v9 = cocos2d::CCTransitionFade::create_1(0.5, v8);\n      cocos2d::CCDirector::pushScene(v7, v9);\n    }\n  }\n}", "assembly": "; \n; CommentCell::onGoToLevel from 0x100254e10 to 0x100254ea3 (147 bytes)\n; \n; 1 xrefs:\n; > CommentCell::loadFromComment @ 0x100248a70\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\npush    rbp                                                            ; +0x0, 0x100254e10\nmov     rbp, rsp                                                       ; +0x1, 0x100254e11\npush    r14                                                            ; +0x4, 0x100254e14\npush    rbx                                                            ; +0x6, 0x100254e16\nsub     rsp, 20h                                                       ; +0x7, 0x100254e17\nmov     rax, [rdi+248h]                                                ; +0xb, 0x100254e1b\ntest    rax, rax                                                       ; +0x12, 0x100254e22\njz      short loc_100254E9A                                            ; +0x15, 0x100254e25\nmov     r14d, [rax+17Ch]                                               ; +0x17, 0x100254e27\ntest    r14d, r14d                                                     ; +0x1e, 0x100254e2e\njz      short loc_100254E9A                                            ; +0x21, 0x100254e31\nmov     esi, r14d                                                      ; +0x23, 0x100254e33\nneg     esi                                                            ; +0x26, 0x100254e36\ncmovs   esi, r14d                                                      ; +0x28, 0x100254e38\nlea     rbx, [rbp+var_28]                                              ; +0x2c, 0x100254e3c\nmov     rdi, rbx                                                       ; +0x30, 0x100254e40\ncall    GameToolbox__intToString                                       ; +0x33, 0x100254e43\nxor     edi, edi                                                       ; +0x38, 0x100254e48\nmov     rsi, rbx                                                       ; +0x3a, 0x100254e4a\ncall    GJSearchObject__create_1                                       ; +0x3d, 0x100254e4d\nmov     rbx, rax                                                       ; +0x42, 0x100254e52\nshr     r14d, 1Fh                                                      ; +0x45, 0x100254e55\ntest    [rbp+var_28], 1                                                ; +0x49, 0x100254e59\njz      short loc_100254E68                                            ; +0x4d, 0x100254e5d\nmov     rdi, [rbp+__p]; __p                                            ; +0x4f, 0x100254e5f\ncall    __ZdlPv; operator delete(void *)                               ; +0x53, 0x100254e63\nmov     [rbx+1B0h], r14d                                               ; +0x58, 0x100254e68\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x5f, 0x100254e6f\nmov     r14, rax                                                       ; +0x64, 0x100254e74\nmov     rdi, rbx                                                       ; +0x67, 0x100254e77\ncall    LevelBrowserLayer__scene                                       ; +0x6a, 0x100254e7a\nmovss   xmm0, cs:dword_100814FA8                                       ; +0x6f, 0x100254e7f\nmov     rdi, rax                                                       ; +0x77, 0x100254e87\ncall    cocos2d__CCTransitionFade__create_1                            ; +0x7a, 0x100254e8a\nmov     rdi, r14                                                       ; +0x7f, 0x100254e8f\nmov     rsi, rax                                                       ; +0x82, 0x100254e92\ncall    cocos2d__CCDirector__pushScene                                 ; +0x85, 0x100254e95\nadd     rsp, 20h                                                       ; +0x8a, 0x100254e9a\npop     rbx                                                            ; +0x8e, 0x100254e9e\npop     r14                                                            ; +0x8f, 0x100254e9f\npop     rbp                                                            ; +0x91, 0x100254ea1\nretn                                                                   ; +0x92, 0x100254ea2", "xrefs": ["CommentCell::loadFromComment @ 0x100248a70"], "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"}