{"type": "func", "start": 4297328672, "end": 4297328821, "name": "GJRequestCell::markAsRead", "pseudocode": "// \n// GJRequestCell::markAsRead from 0x100240820 to 0x1002408b5 (149 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:17 +0000\n// \n\n__int64 __fastcall GJRequestCell::markAsRead(__int64 a1, double a2)\n{\n  __int64 result; // rax\n  __int64 v4; // rdi\n  __int64 v5; // rsi\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  int v9; // edx\n\n  result = *(_QWORD *)(a1 + 552);\n  if ( *(_BYTE *)(result + 724) == 1 )\n  {\n    v4 = *(_QWORD *)(a1 + 536);\n    v5 = 100;\n    v6 = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 480LL))(v4, 100);\n    if ( v6 )\n    {\n      v4 = v6;\n      v5 = 0;\n      a2 = (*(double (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 344LL))(v6, 0);\n    }\n    *(_BYTE *)(*(_QWORD *)(a1 + 552) + 724LL) = 0;\n    v7 = GameLevelManager::sharedState(a2);\n    v8 = GJAccountManager::sharedState(v4, v5);\n    result = GameLevelManager::userInfoForAccountID(v7, (unsigned int)(*(_DWORD *)(v8 + 352) - *(_DWORD *)(v8 + 356)));\n    if ( result )\n    {\n      v9 = 1;\n      if ( *(int *)(result + 696) >= 2 )\n        v9 = *(_DWORD *)(result + 696);\n      *(_DWORD *)(result + 696) = v9 - 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRequestCell::markAsRead from 0x100240820 to 0x1002408b5 (149 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:17 +0000\n; \npush    rbp                                                            ; +0x0, 0x100240820\nmov     rbp, rsp                                                       ; +0x1, 0x100240821\npush    rbx                                                            ; +0x4, 0x100240824\npush    rax                                                            ; +0x5, 0x100240825\nmov     rax, [rdi+228h]                                                ; +0x6, 0x100240826\ncmp     byte ptr [rax+2D4h], 1                                         ; +0xd, 0x10024082d\njnz     short loc_1002408AE                                            ; +0x14, 0x100240834\nmov     rbx, rdi                                                       ; +0x16, 0x100240836\nmov     rdi, [rdi+218h]                                                ; +0x19, 0x100240839\nmov     rax, [rdi]                                                     ; +0x20, 0x100240840\nmov     esi, 64h ; 'd'                                                 ; +0x23, 0x100240843\ncall    qword ptr [rax+1E0h]                                           ; +0x28, 0x100240848\ntest    rax, rax                                                       ; +0x2e, 0x10024084e\njz      short loc_100240861                                            ; +0x31, 0x100240851\nmov     rcx, [rax]                                                     ; +0x33, 0x100240853\nmov     rdi, rax                                                       ; +0x36, 0x100240856\nxor     esi, esi                                                       ; +0x39, 0x100240859\ncall    qword ptr [rcx+158h]                                           ; +0x3b, 0x10024085b\nmov     rax, [rbx+228h]                                                ; +0x41, 0x100240861\nmov     byte ptr [rax+2D4h], 0                                         ; +0x48, 0x100240868\ncall    GameLevelManager__sharedState                                  ; +0x4f, 0x10024086f\nmov     rbx, rax                                                       ; +0x54, 0x100240874\ncall    GJAccountManager__sharedState                                  ; +0x57, 0x100240877\nmov     esi, [rax+160h]                                                ; +0x5c, 0x10024087c\nsub     esi, [rax+164h]                                                ; +0x62, 0x100240882\nmov     rdi, rbx                                                       ; +0x68, 0x100240888\ncall    GameLevelManager__userInfoForAccountID                         ; +0x6b, 0x10024088b\ntest    rax, rax                                                       ; +0x70, 0x100240890\njz      short loc_1002408AE                                            ; +0x73, 0x100240893\nmov     ecx, [rax+2B8h]                                                ; +0x75, 0x100240895\ncmp     ecx, 2                                                         ; +0x7b, 0x10024089b\nmov     edx, 1                                                         ; +0x7e, 0x10024089e\ncmovge  edx, ecx                                                       ; +0x83, 0x1002408a3\ndec     edx                                                            ; +0x86, 0x1002408a6\nmov     [rax+2B8h], edx                                                ; +0x88, 0x1002408a8\nadd     rsp, 8                                                         ; +0x8e, 0x1002408ae\npop     rbx                                                            ; +0x92, 0x1002408b2\npop     rbp                                                            ; +0x93, 0x1002408b3\nretn                                                                   ; +0x94, 0x1002408b4", "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"}