{"type": "func", "start": 6412192, "end": 6412348, "name": "GJMessageCell::markAsRead", "pseudocode": "// \n// GJMessageCell::markAsRead from 0x61d7a0 to 0x61d83c (156 bytes)\n// \n// 3 xrefs:\n// > GJMessageCell::onViewMessage @ 0x61d854\n// > GJMessageCell::FLAlert_Clicked @ 0x61d904\n// > <???> @ 0x8d120\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 GJMessageCell::markAsRead(GJMessageCell *a1)\n{\n  GJUserMessage *m_message; // x2\n  cocos2d::CCLayer *m_mainLayer; // x3\n  __int64 v3; // x0\n  GameLevelManager *v4; // x19\n  GJAccountManager *v5; // x0\n  GJUserScore *v6; // x0\n  int v7; // w1\n\n  m_message = a1->m_message;\n  if ( !m_message->m_read )\n  {\n    m_mainLayer = a1->m_mainLayer;\n    m_message->m_read = 1;\n    v3 = (__int64)m_mainLayer->getChildByTag(m_mainLayer, 100);\n    if ( v3 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v3 + 328LL))(v3, 0);\n    v4 = GameLevelManager::sharedState();\n    v5 = GJAccountManager::sharedState();\n    v6 = GameLevelManager::userInfoForAccountID(v4, v5->m_accountID - v5->m_unkInt1);\n    if ( v6 )\n    {\n      v7 = v6->m_newMsgCount - 1;\n      if ( v7 < 0 )\n        v7 = 0;\n      v6->m_newMsgCount = v7;\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::markAsRead from 0x61d7a0 to 0x61d83c (156 bytes)\n; \n; 3 xrefs:\n; > GJMessageCell::onViewMessage @ 0x61d854\n; > GJMessageCell::FLAlert_Clicked @ 0x61d904\n; > <???> @ 0x8d120\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\nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0x61d7a0\nMOV             X29, SP                                                ; +0x4, 0x61d7a4\nLDR             X2, [X0,#0x230]                                        ; +0x8, 0x61d7a8\nSTR             X19, [SP,#0x20+var_10]                                 ; +0xc, 0x61d7ac\nLDRB            W1, [X2,#0x168]                                        ; +0x10, 0x61d7b0\nCBZ             W1, loc_61D7C4                                         ; +0x14, 0x61d7b4\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x18, 0x61d7b8\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x1c, 0x61d7bc\nRET                                                                    ; +0x20, 0x61d7c0\nLDR             X3, [X0,#0x208]                                        ; +0x24, 0x61d7c4\nMOV             W0, #1                                                 ; +0x28, 0x61d7c8\nSTRB            W0, [X2,#0x168]                                        ; +0x2c, 0x61d7cc\nMOV             W1, #0x64 ; 'd'                                        ; +0x30, 0x61d7d0\nMOV             X0, X3                                                 ; +0x34, 0x61d7d4\nLDR             X2, [X3]                                               ; +0x38, 0x61d7d8\nLDR             X2, [X2,#0x1D0]                                        ; +0x3c, 0x61d7dc\nBLR             X2                                                     ; +0x40, 0x61d7e0\nCBZ             X0, loc_61D7F8                                         ; +0x44, 0x61d7e4\nLDR             X2, [X0]                                               ; +0x48, 0x61d7e8\nMOV             W1, #0                                                 ; +0x4c, 0x61d7ec\nLDR             X2, [X2,#0x148]                                        ; +0x50, 0x61d7f0\nBLR             X2                                                     ; +0x54, 0x61d7f4\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x58, 0x61d7f8\nMOV             X19, X0                                                ; +0x5c, 0x61d7fc\nBL              _ZN16GJAccountManager11sharedStateEv; GJAccountManager::sharedState(void) ; +0x60, 0x61d800\nMOV             X2, X0                                                 ; +0x64, 0x61d804\nMOV             X0, X19; this                                          ; +0x68, 0x61d808\nLDR             W3, [X2,#0x150]                                        ; +0x6c, 0x61d80c\nLDR             W1, [X2,#0x154]                                        ; +0x70, 0x61d810\nSUB             W1, W3, W1; int                                        ; +0x74, 0x61d814\nBL              _ZN16GameLevelManager20userInfoForAccountIDEi; GameLevelManager::userInfoForAccountID(int) ; +0x78, 0x61d818\nCBZ             X0, loc_61D7B8                                         ; +0x7c, 0x61d81c\nLDR             W1, [X0,#0x214]                                        ; +0x80, 0x61d820\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x84, 0x61d824\nSUBS            W1, W1, #1                                             ; +0x88, 0x61d828\nCSEL            W1, W1, WZR, PL                                        ; +0x8c, 0x61d82c\nSTR             W1, [X0,#0x214]                                        ; +0x90, 0x61d830\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x94, 0x61d834\nRET                                                                    ; +0x98, 0x61d838", "xrefs": ["GJMessageCell::onViewMessage @ 0x61d854", "GJMessageCell::FLAlert_Clicked @ 0x61d904", "<???> @ 0x8d120"], "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"}