{"type": "func", "start": 4296085636, "end": 4296085928, "name": "GJScoreCell::onViewProfile", "pseudocode": "// \n// GJScoreCell::onViewProfile from 0x100111084 to 0x1001111a8 (292 bytes)\n// \n// 1 xrefs:\n// > GJScoreCell::loadFromScore @ 0x100107aa8\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 GJScoreCell::onViewProfile(GJScoreCell *a1, cocos2d::CCObject *a2)\n{\n  GJUserScore *m_score; // x8\n  int m_accountID; // w0\n  ProfilePage *v5; // x0\n  cocos2d::CCScene *m_pSceneReference; // x21\n  cocos2d::CCDirector *v7; // x20\n  cocos2d::CCDirector *v8; // x0\n  cocos2d::CCDirector *v9; // x20\n  cocos2d::CCString *v10; // x0\n  char *CString; // x0\n  char *v12; // x0\n  cocos2d::CCScene *v13; // x0\n  cocos2d::CCTransitionFade *v14; // x0\n  void *__p[2]; // [xsp+8h] [xbp-38h] BYREF\n  char v16; // [xsp+1Fh] [xbp-21h]\n\n  m_score = a1->m_score;\n  if ( m_score && (m_accountID = m_score->m_accountID, m_accountID >= 1) )\n  {\n    v5 = ProfilePage::create(m_accountID, 0);\n    ((void (__fastcall *)(ProfilePage *))v5->show)(v5);\n  }\n  else if ( m_score->m_scoreType == 1 && !cocos2d::CCDirector::sharedDirector()->m_bIsTransitioning )\n  {\n    if ( cocos2d::CCDirector::sharedDirector()->m_pRunningScene->m_eObjType != MenuLayerObjectType )\n    {\n      m_pSceneReference = cocos2d::CCDirector::sharedDirector()->m_pSceneReference;\n      v7 = cocos2d::CCDirector::sharedDirector();\n      v8 = cocos2d::CCDirector::sharedDirector();\n      if ( m_pSceneReference )\n        cocos2d::CCDirector::popToSceneInStack(v7, v8->m_pSceneReference);\n      else\n        v7->m_pSceneReference = v8->m_pRunningScene;\n    }\n    v9 = cocos2d::CCDirector::sharedDirector();\n    v10 = (cocos2d::CCString *)sub_100268F4C(\"%i\", a1->m_score->m_userID);\n    CString = (char *)cocos2d::CCString::getCString(v10);\n    sub_100009900(__p, CString);\n    v12 = GJSearchObject::create_1(5, (__int128 *)__p);\n    v13 = LevelBrowserLayer::scene((GJSearchObject *)v12);\n    v14 = cocos2d::CCTransitionFade::create_1(0.5, v13);\n    cocos2d::CCDirector::pushScene(v9, v14);\n    if ( v16 < 0 )\n      operator delete(__p[0]);\n  }\n}", "assembly": "; \n; GJScoreCell::onViewProfile from 0x100111084 to 0x1001111a8 (292 bytes)\n; \n; 1 xrefs:\n; > GJScoreCell::loadFromScore @ 0x100107aa8\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             SP, SP, #0x50                                          ; +0x0, 0x100111084\nSTP             X22, X21, [SP,#0x40+var_20]                            ; +0x4, 0x100111088\nSTP             X20, X19, [SP,#0x40+var_10]                            ; +0x8, 0x10011108c\nSTP             X29, X30, [SP,#0x40+var_s0]                            ; +0xc, 0x100111090\nADD             X29, SP, #0x40                                         ; +0x10, 0x100111094\nMOV             X19, X0                                                ; +0x14, 0x100111098\nLDR             X8, [X0,#0x230]                                        ; +0x18, 0x10011109c\nCBZ             X8, loc_1001110D4                                      ; +0x1c, 0x1001110a0\nLDR             W0, [X8,#0x178]                                        ; +0x20, 0x1001110a4\nCMP             W0, #1                                                 ; +0x24, 0x1001110a8\nB.LT            loc_1001110D4                                          ; +0x28, 0x1001110ac\nMOV             W1, #0                                                 ; +0x2c, 0x1001110b0\nBL              ProfilePage__create                                    ; +0x30, 0x1001110b4\nLDR             X8, [X0]                                               ; +0x34, 0x1001110b8\nLDR             X1, [X8,#0x508]                                        ; +0x38, 0x1001110bc\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x3c, 0x1001110c0\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x40, 0x1001110c4\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x44, 0x1001110c8\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x48, 0x1001110cc\nBR              X1                                                     ; +0x4c, 0x1001110d0\nLDR             W8, [X8,#0x170]                                        ; +0x50, 0x1001110d4\nCMP             W8, #1                                                 ; +0x54, 0x1001110d8\nB.NE            loc_100111194                                          ; +0x58, 0x1001110dc\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x5c, 0x1001110e0\nLDRB            W8, [X0,#0xA8]                                         ; +0x60, 0x1001110e4\nTBNZ            W8, #0, loc_100111194                                  ; +0x64, 0x1001110e8\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x68, 0x1001110ec\nLDR             X8, [X0,#0x108]                                        ; +0x6c, 0x1001110f0\nLDR             W8, [X8,#0x1C]                                         ; +0x70, 0x1001110f4\nCMP             W8, #0xF                                               ; +0x74, 0x1001110f8\nB.EQ            loc_100111130                                          ; +0x78, 0x1001110fc\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x7c, 0x100111100\nLDR             X21, [X0,#0x60]                                        ; +0x80, 0x100111104\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x84, 0x100111108\nMOV             X20, X0                                                ; +0x88, 0x10011110c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0x8c, 0x100111110\nCBZ             X21, loc_100111128                                     ; +0x90, 0x100111114\nLDR             X1, [X0,#0x60]                                         ; +0x94, 0x100111118\nMOV             X0, X20                                                ; +0x98, 0x10011111c\nBL              cocos2d__CCDirector__popToSceneInStack                 ; +0x9c, 0x100111120\nB               loc_100111130                                          ; +0xa0, 0x100111124\nLDR             X8, [X0,#0x108]                                        ; +0xa4, 0x100111128\nSTR             X8, [X20,#0x60]                                        ; +0xa8, 0x10011112c\nBL              cocos2d__CCDirector__sharedDirector                    ; +0xac, 0x100111130\nMOV             X20, X0                                                ; +0xb0, 0x100111134\nLDR             X8, [X19,#0x230]                                       ; +0xb4, 0x100111138\nLDR             W8, [X8,#0x174]                                        ; +0xb8, 0x10011113c\nSTR             X8, [SP,#0x40+var_40]                                  ; +0xbc, 0x100111140\nADRL            X0, aI; \"%i\"                                           ; +0xc0, 0x100111144\nBL              sub_100268F4C                                          ; +0xc8, 0x10011114c\nBL              cocos2d__CCString__getCString                          ; +0xcc, 0x100111150\nMOV             X1, X0; __s                                            ; +0xd0, 0x100111154\nADD             X0, SP, #0x40+__p; int                                 ; +0xd4, 0x100111158\nBL              sub_100009900                                          ; +0xd8, 0x10011115c\nADD             X1, SP, #0x40+__p                                      ; +0xdc, 0x100111160\nMOV             W0, #5                                                 ; +0xe0, 0x100111164\nBL              GJSearchObject__create_1                               ; +0xe4, 0x100111168\nBL              LevelBrowserLayer__scene                               ; +0xe8, 0x10011116c\nFMOV            S0, #0.5                                               ; +0xec, 0x100111170\nBL              cocos2d__CCTransitionFade__create_1                    ; +0xf0, 0x100111174\nMOV             X1, X0                                                 ; +0xf4, 0x100111178\nMOV             X0, X20                                                ; +0xf8, 0x10011117c\nBL              cocos2d__CCDirector__pushScene                         ; +0xfc, 0x100111180\nLDRSB           W8, [SP,#0x40+var_21]                                  ; +0x100, 0x100111184\nTBZ             W8, #0x1F, loc_100111194                               ; +0x104, 0x100111188\nLDR             X0, [SP,#0x40+__p]; __p                                ; +0x108, 0x10011118c\nBL              __ZdlPv; operator delete(void *)                       ; +0x10c, 0x100111190\nLDP             X29, X30, [SP,#0x40+var_s0]                            ; +0x110, 0x100111194\nLDP             X20, X19, [SP,#0x40+var_10]                            ; +0x114, 0x100111198\nLDP             X22, X21, [SP,#0x40+var_20]                            ; +0x118, 0x10011119c\nADD             SP, SP, #0x50 ; 'P'                                    ; +0x11c, 0x1001111a0\nRET                                                                    ; +0x120, 0x1001111a4", "xrefs": ["GJScoreCell::loadFromScore @ 0x100107aa8"], "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"}