{"type": "func", "start": 4297335984, "end": 4297336123, "name": "GJMessageCell::markAsRead", "pseudocode": "// \n// GJMessageCell::markAsRead from 0x1002424b0 to 0x10024253b (139 bytes)\n// \n// 0 xrefs:\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 12:27:18 +0000\n// \n\n__int64 __fastcall GJMessageCell::markAsRead(__int64 a1, double a2)\n{\n  __int64 result; // rax\n  __int64 v3; // rdi\n  __int64 v4; // rsi\n  __int64 v5; // rax\n  __int64 v6; // rbx\n  __int64 v7; // rax\n  int v8; // edx\n\n  result = *(_QWORD *)(a1 + 576);\n  if ( !*(_BYTE *)(result + 424) )\n  {\n    *(_BYTE *)(result + 424) = 1;\n    v3 = *(_QWORD *)(a1 + 536);\n    v4 = 100;\n    v5 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v3 + 480LL))(v3, 100);\n    if ( v5 )\n    {\n      v3 = v5;\n      v4 = 0;\n      a2 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0);\n    }\n    v6 = GameLevelManager::sharedState(a2);\n    v7 = GJAccountManager::sharedState(v3, v4);\n    result = GameLevelManager::userInfoForAccountID(v6, (unsigned int)(*(_DWORD *)(v7 + 352) - *(_DWORD *)(v7 + 356)));\n    if ( result )\n    {\n      v8 = 1;\n      if ( *(int *)(result + 692) >= 2 )\n        v8 = *(_DWORD *)(result + 692);\n      *(_DWORD *)(result + 692) = v8 - 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJMessageCell::markAsRead from 0x1002424b0 to 0x10024253b (139 bytes)\n; \n; 0 xrefs:\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 12:27:18 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002424b0\nmov     rbp, rsp                                                       ; +0x1, 0x1002424b1\npush    rbx                                                            ; +0x4, 0x1002424b4\npush    rax                                                            ; +0x5, 0x1002424b5\nmov     rax, [rdi+240h]                                                ; +0x6, 0x1002424b6\ncmp     byte ptr [rax+1A8h], 0                                         ; +0xd, 0x1002424bd\njnz     short loc_100242534                                            ; +0x14, 0x1002424c4\nmov     byte ptr [rax+1A8h], 1                                         ; +0x16, 0x1002424c6\nmov     rdi, [rdi+218h]                                                ; +0x1d, 0x1002424cd\nmov     rax, [rdi]                                                     ; +0x24, 0x1002424d4\nmov     esi, 64h ; 'd'                                                 ; +0x27, 0x1002424d7\ncall    qword ptr [rax+1E0h]                                           ; +0x2c, 0x1002424dc\ntest    rax, rax                                                       ; +0x32, 0x1002424e2\njz      short loc_1002424F5                                            ; +0x35, 0x1002424e5\nmov     rcx, [rax]                                                     ; +0x37, 0x1002424e7\nmov     rdi, rax                                                       ; +0x3a, 0x1002424ea\nxor     esi, esi                                                       ; +0x3d, 0x1002424ed\ncall    qword ptr [rcx+158h]                                           ; +0x3f, 0x1002424ef\ncall    GameLevelManager__sharedState                                  ; +0x45, 0x1002424f5\nmov     rbx, rax                                                       ; +0x4a, 0x1002424fa\ncall    GJAccountManager__sharedState                                  ; +0x4d, 0x1002424fd\nmov     esi, [rax+160h]                                                ; +0x52, 0x100242502\nsub     esi, [rax+164h]                                                ; +0x58, 0x100242508\nmov     rdi, rbx                                                       ; +0x5e, 0x10024250e\ncall    GameLevelManager__userInfoForAccountID                         ; +0x61, 0x100242511\ntest    rax, rax                                                       ; +0x66, 0x100242516\njz      short loc_100242534                                            ; +0x69, 0x100242519\nmov     ecx, [rax+2B4h]                                                ; +0x6b, 0x10024251b\ncmp     ecx, 2                                                         ; +0x71, 0x100242521\nmov     edx, 1                                                         ; +0x74, 0x100242524\ncmovge  edx, ecx                                                       ; +0x79, 0x100242529\ndec     edx                                                            ; +0x7c, 0x10024252c\nmov     [rax+2B4h], edx                                                ; +0x7e, 0x10024252e\nadd     rsp, 8                                                         ; +0x84, 0x100242534\npop     rbx                                                            ; +0x88, 0x100242538\npop     rbp                                                            ; +0x89, 0x100242539\nretn                                                                   ; +0x8a, 0x10024253a", "xrefs": [], "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"}