{"type": "func", "start": 5369486992, "end": 5369487192, "name": "GJMessageCell::markAsRead", "pseudocode": "// \n// GJMessageCell::markAsRead from 0x1400bde90 to 0x1400bdf58 (200 bytes)\n// \n// 3 xrefs:\n// > GJMessageCell::onViewMessage @ 0x1400bde07\n// > GJMessageCell::FLAlert_Clicked @ 0x1400be1a7\n// > <???> @ 0x1406c7e30\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\n// Hidden C++ exception states: #wind=1\nvoid GJMessageCell::markAsRead(GJMessageCell *a1)\n{\n  GJUserMessage *m_message; // rax\n  cocos2d::CCNode *v2; // rax\n  GJAccountManager *v3; // rax\n  int v4; // ebx\n  __int64 v5; // rcx\n  struct cocos2d::CCObject *v6; // rax\n  int v7; // ecx\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  m_message = a1->m_message;\n  if ( !m_message->m_read )\n  {\n    m_message->m_read = 1;\n    v2 = a1->m_mainLayer->getChildByTag(a1->m_mainLayer, 100);\n    if ( v2 )\n      v2->setVisible(v2, 0);\n    v3 = GJAccountManager::sharedState();\n    v4 = v3->m_accountID - v3->m_unkInt1;\n    v5 = qword_1406C2EC0;\n    if ( !qword_1406C2EC0 )\n    {\n      v8 = operator new(0x3D0u);\n      qword_1406C2EC0 = sub_140141280(v8);\n      (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2EC0 + 72LL))(qword_1406C2EC0);\n      v5 = qword_1406C2EC0;\n    }\n    v6 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v5 + 600), v4);\n    if ( v6 )\n    {\n      v7 = v6[13].m_uReference - 1;\n      if ( v7 < 0 )\n        v7 = 0;\n      v6[13].m_uReference = v7;\n    }\n  }\n}", "assembly": "; \n; GJMessageCell::markAsRead from 0x1400bde90 to 0x1400bdf58 (200 bytes)\n; \n; 3 xrefs:\n; > GJMessageCell::onViewMessage @ 0x1400bde07\n; > GJMessageCell::FLAlert_Clicked @ 0x1400be1a7\n; > <???> @ 0x1406c7e30\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    rbx                                                            ; +0x0, 0x1400bde90\nsub     rsp, 20h                                                       ; +0x2, 0x1400bde92\nmov     rax, [rcx+248h]                                                ; +0x6, 0x1400bde96\ncmp     byte ptr [rax+1D0h], 0                                         ; +0xd, 0x1400bde9d\njnz     loc_1400BDF52                                                  ; +0x14, 0x1400bdea4\nmov     byte ptr [rax+1D0h], 1                                         ; +0x1a, 0x1400bdeaa\nmov     rcx, [rcx+220h]                                                ; +0x21, 0x1400bdeb1\nmov     rax, [rcx]                                                     ; +0x28, 0x1400bdeb8\nmov     edx, 64h ; 'd'                                                 ; +0x2b, 0x1400bdebb\ncall    qword ptr [rax+1C8h]                                           ; +0x30, 0x1400bdec0\ntest    rax, rax                                                       ; +0x36, 0x1400bdec6\njz      short loc_1400BDEDA                                            ; +0x39, 0x1400bdec9\nmov     r8, [rax]                                                      ; +0x3b, 0x1400bdecb\nxor     edx, edx                                                       ; +0x3e, 0x1400bdece\nmov     rcx, rax                                                       ; +0x40, 0x1400bded0\ncall    qword ptr [r8+140h]                                            ; +0x43, 0x1400bded3\ncall    GJAccountManager__sharedState                                  ; +0x4a, 0x1400bdeda\nmov     ebx, [rax+168h]                                                ; +0x4f, 0x1400bdedf\nsub     ebx, [rax+16Ch]                                                ; +0x55, 0x1400bdee5\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x5b, 0x1400bdeeb\ntest    rcx, rcx                                                       ; +0x62, 0x1400bdef2\njnz     short loc_1400BDF26                                            ; +0x65, 0x1400bdef5\nmov     ecx, 3D0h; Size                                                ; +0x67, 0x1400bdef7\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6c, 0x1400bdefc\nmov     [rsp+28h+arg_0], rax                                           ; +0x71, 0x1400bdf01\nmov     rcx, rax                                                       ; +0x76, 0x1400bdf06\ncall    sub_140141280                                                  ; +0x79, 0x1400bdf09\nnop                                                                    ; +0x7e, 0x1400bdf0e\nmov     cs:qword_1406C2EC0, rax                                        ; +0x7f, 0x1400bdf0f\nmov     rdx, [rax]                                                     ; +0x86, 0x1400bdf16\nmov     rcx, rax                                                       ; +0x89, 0x1400bdf19\ncall    qword ptr [rdx+48h]                                            ; +0x8c, 0x1400bdf1c\nmov     rcx, cs:qword_1406C2EC0                                        ; +0x8f, 0x1400bdf1f\nmovsxd  rdx, ebx                                                       ; +0x96, 0x1400bdf26\nmov     rcx, [rcx+258h]                                                ; +0x99, 0x1400bdf29\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xa0, 0x1400bdf30\ntest    rax, rax                                                       ; +0xa6, 0x1400bdf36\njz      short loc_1400BDF52                                            ; +0xa9, 0x1400bdf39\nmov     ecx, [rax+2ECh]                                                ; +0xab, 0x1400bdf3b\nsub     ecx, 1                                                         ; +0xb1, 0x1400bdf41\nmov     edx, 0                                                         ; +0xb4, 0x1400bdf44\ncmovs   ecx, edx                                                       ; +0xb9, 0x1400bdf49\nmov     [rax+2ECh], ecx                                                ; +0xbc, 0x1400bdf4c\nadd     rsp, 20h                                                       ; +0xc2, 0x1400bdf52\npop     rbx                                                            ; +0xc6, 0x1400bdf56\nretn                                                                   ; +0xc7, 0x1400bdf57", "xrefs": ["GJMessageCell::onViewMessage @ 0x1400bde07", "GJMessageCell::FLAlert_Clicked @ 0x1400be1a7", "<???> @ 0x1406c7e30"], "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"}