{"type": "func", "start": 3339124, "end": 3339248, "name": "CommentCell::onGoToLevel", "pseudocode": "// \n// CommentCell::onGoToLevel from 0x32f374 to 0x32f3f0 (124 bytes)\n// \n// 0 xrefs:\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; // r2\n  int m_levelID; // r1\n  GJSearchObject *v4; // r7\n  cocos2d::CCDirector *v5; // r4\n  cocos2d::CCScene *v6; // r0\n  cocos2d::CCTransitionFade *v7; // r0\n  int v8; // r6\n  _DWORD v9[3]; // [sp+0h] [bp-Ch] BYREF\n\n  v9[0] = a1;\n  v9[1] = a2;\n  m_comment = a1->m_comment;\n  if ( m_comment )\n  {\n    m_levelID = m_comment->m_levelID;\n    if ( m_levelID )\n    {\n      if ( m_levelID < 0 )\n      {\n        m_levelID = -m_levelID;\n        v8 = 1;\n      }\n      else\n      {\n        v8 = 0;\n      }\n      GameToolbox::intToString((GameToolbox *)v9, m_levelID);\n      v4 = GJSearchObject::create((SearchType)0);\n      sub_774008(v9);\n      v4->m_searchMode = v8;\n      v5 = cocos2d::CCDirector::sharedDirector();\n      v6 = LevelBrowserLayer::scene(v4);\n      v7 = cocos2d::CCTransitionFade::create(0.5, v6);\n      cocos2d::CCDirector::pushScene(v5, v7);\n    }\n  }\n}", "assembly": "; \n; CommentCell::onGoToLevel from 0x32f374 to 0x32f3f0 (124 bytes)\n; \n; 0 xrefs:\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x32F37C)                ; +0x0, 0x32f374\nPUSH            {R0-R2,R4-R7,LR}                                       ; +0x2, 0x32f376\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x32f378\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x32f37a\nLDR             R2, [R3]                                               ; +0x8, 0x32f37c\nMOV             R5, R3                                                 ; +0xa, 0x32f37e\nSTR             R2, [SP,#0xC+var_8]                                    ; +0xc, 0x32f380\nLDR.W           R2, [R0,#0x1AC]                                        ; +0xe, 0x32f382\nCBZ             R2, loc_32F3E0                                         ; +0x12, 0x32f386\nLDR.W           R1, [R2,#0x11C]                                        ; +0x14, 0x32f388\nCMP             R1, #0                                                 ; +0x18, 0x32f38c\nBEQ             loc_32F3E0                                             ; +0x1a, 0x32f38e\nBGE             loc_32F3DC                                             ; +0x1c, 0x32f390\nNEGS            R1, R1; int                                            ; +0x1e, 0x32f392\nMOVS            R6, #1                                                 ; +0x20, 0x32f394\nMOV             R0, SP; this                                           ; +0x22, 0x32f396\nMOV             R4, SP                                                 ; +0x24, 0x32f398\nBL              _ZN11GameToolbox11intToStringEi; GameToolbox::intToString(int) ; +0x26, 0x32f39a\nMOVS            R0, #0                                                 ; +0x2a, 0x32f39e\nMOV             R1, SP                                                 ; +0x2c, 0x32f3a0\nBL              _ZN14GJSearchObject6createE10SearchTypeSs; GJSearchObject::create(SearchType,std::string) ; +0x2e, 0x32f3a2\nMOV             R7, R0                                                 ; +0x32, 0x32f3a6\nMOV             R0, SP                                                 ; +0x34, 0x32f3a8\nBL              sub_774008                                             ; +0x36, 0x32f3aa\nSTR.W           R6, [R7,#0x140]                                        ; +0x3a, 0x32f3ae\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3e, 0x32f3b2\nMOV             R4, R0                                                 ; +0x42, 0x32f3b6\nMOV             R0, R7; this                                           ; +0x44, 0x32f3b8\nBL              _ZN17LevelBrowserLayer5sceneEP14GJSearchObject; LevelBrowserLayer::scene(GJSearchObject *) ; +0x46, 0x32f3ba\nMOV             R1, R0; float                                          ; +0x4a, 0x32f3be\nMOV.W           R0, #0x3F000000; this                                  ; +0x4c, 0x32f3c0\nBL              _ZN7cocos2d16CCTransitionFade6createEfPNS_7CCSceneE; cocos2d::CCTransitionFade::create(float,cocos2d::CCScene *) ; +0x50, 0x32f3c4\nMOV             R1, R0; cocos2d::CCScene *                             ; +0x54, 0x32f3c8\nMOV             R0, R4; this                                           ; +0x56, 0x32f3ca\nBL              _ZN7cocos2d10CCDirector9pushSceneEPNS_7CCSceneE; cocos2d::CCDirector::pushScene(cocos2d::CCScene *) ; +0x58, 0x32f3cc\nB               loc_32F3E0                                             ; +0x5c, 0x32f3d0\nMOV             R0, R4                                                 ; +0x5e, 0x32f3d2\nBL              sub_774008                                             ; +0x60, 0x32f3d4\nBL              __cxa_end_cleanup                                      ; +0x64, 0x32f3d8\nMOVS            R6, #0                                                 ; +0x68, 0x32f3dc\nB               loc_32F396                                             ; +0x6a, 0x32f3de\nLDR             R2, [SP,#0xC+var_8]                                    ; +0x6c, 0x32f3e0\nLDR             R3, [R5]                                               ; +0x6e, 0x32f3e2\nCMP             R2, R3                                                 ; +0x70, 0x32f3e4\nBEQ             loc_32F3EC                                             ; +0x72, 0x32f3e6\nBLX             __stack_chk_fail                                       ; +0x74, 0x32f3e8\nADD             SP, SP, #0xC                                           ; +0x78, 0x32f3ec\nPOP             {R4-R7,PC}                                             ; +0x7a, 0x32f3ee", "xrefs": [], "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"}