{"type": "func", "start": 12846356, "end": 12846512, "name": "AccountReviewPopup::openUserComments", "pseudocode": "// \n// AccountReviewPopup::openUserComments from 0xc40514 to 0xc405b0 (156 bytes)\n// \n// 3 xrefs:\n// > AccountReviewPopup::onNotes @ 0xc405b4\n// > AccountReviewPopup::onCommentHistory @ 0xc405cc\n// > <???> @ 0x57f28\n// \n// This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 13:04:57 +0000\n// \n\n__int64 __fastcall AccountReviewPopup::openUserComments(GJGameLevel **this, unsigned __int8 a2)\n{\n  int v2; // w21\n  cocos2d::CCDirector *v3; // x19\n  cocos2d::CCScene *v4; // x20\n  int HighestChildZ; // w0\n  int v6; // w1\n  __int64 v7; // x2\n  __int64 result; // x0\n\n  v2 = a2;\n  v3 = (cocos2d::CCDirector *)InfoLayer::create(nullptr, *(this + 109), nullptr, nullptr, *(this + 109));\n  v4 = *(cocos2d::CCScene **)(cocos2d::CCDirector::sharedDirector(v3) + 272);\n  HighestChildZ = cocos2d::CCScene::getHighestChildZ(v4);\n  v6 = 110;\n  if ( HighestChildZ > 109 )\n    v6 = cocos2d::CCScene::getHighestChildZ(v4) + 1;\n  v7 = *(_QWORD *)v3;\n  *((_DWORD *)v3 + 148) = v6;\n  result = (*(__int64 (__fastcall **)(cocos2d::CCDirector *))(v7 + 1312))(v3);\n  if ( v2 )\n    return InfoLayer::toggleModRoom(v3, nullptr);\n  return result;\n}", "assembly": "; \n; AccountReviewPopup::openUserComments from 0xc40514 to 0xc405b0 (156 bytes)\n; \n; 3 xrefs:\n; > AccountReviewPopup::onNotes @ 0xc405b4\n; > AccountReviewPopup::onCommentHistory @ 0xc405cc\n; > <???> @ 0x57f28\n; \n; This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 13:04:57 +0000\n; \nSTP             X29, X30, [SP,#var_30]!                                ; +0x0, 0xc40514\nMOV             X2, #0; GJUserScore *                                  ; +0x4, 0xc40518\nMOV             X3, #0; GJLevelList *                                  ; +0x8, 0xc4051c\nMOV             X29, SP                                                ; +0xc, 0xc40520\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x10, 0xc40524\nSTR             X21, [SP,#0x30+var_10]                                 ; +0x14, 0xc40528\nUXTB            W21, W1                                                ; +0x18, 0xc4052c\nLDR             X4, [X0,#0x368]; GJEditorSoundConfig *                 ; +0x1c, 0xc40530\nMOV             X0, #0; this                                           ; +0x20, 0xc40534\nMOV             X1, X4; GJGameLevel *                                  ; +0x24, 0xc40538\nBL              _ZN9InfoLayer6createEP11GJGameLevelP11GJUserScoreP11GJLevelListP19GJEditorSoundConfig; InfoLayer::create(GJGameLevel *,GJUserScore *,GJLevelList *,GJEditorSoundConfig *) ; +0x28, 0xc4053c\nMOV             X19, X0                                                ; +0x2c, 0xc40540\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x30, 0xc40544\nLDR             X20, [X0,#0x110]                                       ; +0x34, 0xc40548\nMOV             X0, X20; this                                          ; +0x38, 0xc4054c\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x3c, 0xc40550\nCMP             W0, #0x6D ; 'm'                                        ; +0x40, 0xc40554\nMOV             W1, #0x6E ; 'n'                                        ; +0x44, 0xc40558\nB.GT            loc_C405A0                                             ; +0x48, 0xc4055c\nLDR             X2, [X19]                                              ; +0x4c, 0xc40560\nMOV             X0, X19                                                ; +0x50, 0xc40564\nSTR             W1, [X19,#0x250]                                       ; +0x54, 0xc40568\nLDR             X1, [X2,#0x520]                                        ; +0x58, 0xc4056c\nBLR             X1                                                     ; +0x5c, 0xc40570\nCBNZ            W21, loc_C40588                                        ; +0x60, 0xc40574\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x64, 0xc40578\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x68, 0xc4057c\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x6c, 0xc40580\nRET                                                                    ; +0x70, 0xc40584\nMOV             X0, X19; this                                          ; +0x74, 0xc40588\nLDR             X21, [SP,#0x30+var_10]                                 ; +0x78, 0xc4058c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x7c, 0xc40590\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x80, 0xc40594\nMOV             X1, #0; cocos2d::CCObject *                            ; +0x84, 0xc40598\nB               _ZN9InfoLayer13toggleModRoomEPN7cocos2d8CCObjectE; InfoLayer::toggleModRoom(cocos2d::CCObject *) ; +0x88, 0xc4059c\nMOV             X0, X20; this                                          ; +0x8c, 0xc405a0\nBL              _ZN7cocos2d7CCScene16getHighestChildZEv; cocos2d::CCScene::getHighestChildZ(void) ; +0x90, 0xc405a4\nADD             W1, W0, #1                                             ; +0x94, 0xc405a8\nB               loc_C40560                                             ; +0x98, 0xc405ac", "xrefs": ["AccountReviewPopup::onNotes @ 0xc405b4", "AccountReviewPopup::onCommentHistory @ 0xc405cc", "<???> @ 0x57f28"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}