{"type": "func", "start": 5370139760, "end": 5370139963, "name": "GJMessageCell::markAsRead", "pseudocode": "// \n// GJMessageCell::markAsRead from 0x14015d470 to 0x14015d53b (203 bytes)\n// \n// 3 xrefs:\n// > GJMessageCell::onViewMessage @ 0x14015d3db\n// > GJMessageCell::FLAlert_Clicked @ 0x14015d7a7\n// > <???> @ 0x140917bac\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:23 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCObject *__fastcall GJMessageCell::markAsRead(__int64 a1)\n{\n  struct cocos2d::CCObject *result; // rax\n  __int64 v2; // rax\n  __int64 v3; // rcx\n  __int64 v4; // rax\n  int v5; // ebx\n  __int64 v6; // rcx\n  int v7; // ecx\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  result = *(struct cocos2d::CCObject **)(a1 + 584);\n  if ( !*((_BYTE *)result + 464) )\n  {\n    *((_BYTE *)result + 464) = 1;\n    v2 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 544) + 472LL))(*(_QWORD *)(a1 + 544), 100);\n    if ( v2 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 336LL))(v2, 0);\n    v4 = GJAccountManager::sharedState(v3);\n    v5 = *(_DWORD *)(v4 + 360) - *(_DWORD *)(v4 + 364);\n    v6 = *(_QWORD *)&qword_14090BFB0;\n    if ( !*(_QWORD *)&qword_14090BFB0 )\n    {\n      v8 = operator new(0x690u);\n      *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);\n      (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n      v6 = *(_QWORD *)&qword_14090BFB0;\n    }\n    result = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(v6 + 1232), v5);\n    if ( result )\n    {\n      v7 = *((_DWORD *)result + 191) - 1;\n      if ( v7 < 0 )\n        v7 = 0;\n      *((_DWORD *)result + 191) = v7;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJMessageCell::markAsRead from 0x14015d470 to 0x14015d53b (203 bytes)\n; \n; 3 xrefs:\n; > GJMessageCell::onViewMessage @ 0x14015d3db\n; > GJMessageCell::FLAlert_Clicked @ 0x14015d7a7\n; > <???> @ 0x140917bac\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:23 +0000\n; \npush    rbx                                                            ; +0x0, 0x14015d470\nsub     rsp, 20h                                                       ; +0x2, 0x14015d472\nmov     rax, [rcx+248h]                                                ; +0x6, 0x14015d476\ncmp     byte ptr [rax+1D0h], 0                                         ; +0xd, 0x14015d47d\njnz     loc_14015D535                                                  ; +0x14, 0x14015d484\nmov     byte ptr [rax+1D0h], 1                                         ; +0x1a, 0x14015d48a\nmov     rcx, [rcx+220h]                                                ; +0x21, 0x14015d491\nmov     rax, [rcx]                                                     ; +0x28, 0x14015d498\nmov     edx, 64h ; 'd'                                                 ; +0x2b, 0x14015d49b\ncall    qword ptr [rax+1D8h]                                           ; +0x30, 0x14015d4a0\ntest    rax, rax                                                       ; +0x36, 0x14015d4a6\njz      short loc_14015D4BD                                            ; +0x39, 0x14015d4a9\nmov     rcx, [rax]                                                     ; +0x3b, 0x14015d4ab\nmov     r8, [rcx+150h]                                                 ; +0x3e, 0x14015d4ae\nxor     edx, edx                                                       ; +0x45, 0x14015d4b5\nmov     rcx, rax                                                       ; +0x47, 0x14015d4b7\ncall    r8                                                             ; +0x4a, 0x14015d4ba\ncall    GJAccountManager__sharedState                                  ; +0x4d, 0x14015d4bd\nmov     ebx, [rax+168h]                                                ; +0x52, 0x14015d4c2\nsub     ebx, [rax+16Ch]                                                ; +0x58, 0x14015d4c8\nmov     rcx, cs:qword_14090BFB0                                        ; +0x5e, 0x14015d4ce\ntest    rcx, rcx                                                       ; +0x65, 0x14015d4d5\njnz     short loc_14015D50C                                            ; +0x68, 0x14015d4d8\nmov     ecx, 690h; Size                                                ; +0x6a, 0x14015d4da\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x6f, 0x14015d4df\nmov     [rsp+28h+arg_0], rax                                           ; +0x74, 0x14015d4e4\nmov     rcx, rax                                                       ; +0x79, 0x14015d4e9\ncall    GameLevelManager__GameLevelManager                             ; +0x7c, 0x14015d4ec\nnop                                                                    ; +0x81, 0x14015d4f1\nmov     cs:qword_14090BFB0, rax                                        ; +0x82, 0x14015d4f2\nmov     rcx, [rax]                                                     ; +0x89, 0x14015d4f9\nmov     rdx, [rcx+48h]                                                 ; +0x8c, 0x14015d4fc\nmov     rcx, rax                                                       ; +0x90, 0x14015d500\ncall    rdx                                                            ; +0x93, 0x14015d503\nmov     rcx, cs:qword_14090BFB0                                        ; +0x95, 0x14015d505\nmovsxd  rdx, ebx                                                       ; +0x9c, 0x14015d50c\nmov     rcx, [rcx+4D0h]                                                ; +0x9f, 0x14015d50f\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xa6, 0x14015d516\ntest    rax, rax                                                       ; +0xac, 0x14015d51c\njz      short loc_14015D535                                            ; +0xaf, 0x14015d51f\nmov     ecx, [rax+2FCh]                                                ; +0xb1, 0x14015d521\nxor     edx, edx                                                       ; +0xb7, 0x14015d527\nsub     ecx, 1                                                         ; +0xb9, 0x14015d529\ncmovs   ecx, edx                                                       ; +0xbc, 0x14015d52c\nmov     [rax+2FCh], ecx                                                ; +0xbf, 0x14015d52f\nadd     rsp, 20h                                                       ; +0xc5, 0x14015d535\npop     rbx                                                            ; +0xc9, 0x14015d539\nretn                                                                   ; +0xca, 0x14015d53a", "xrefs": ["GJMessageCell::onViewMessage @ 0x14015d3db", "GJMessageCell::FLAlert_Clicked @ 0x14015d7a7", "<???> @ 0x140917bac"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}