{"type": "func", "start": 4296257624, "end": 4296257764, "name": "GJMessageCell::markAsRead", "pseudocode": "// \n// GJMessageCell::markAsRead from 0x10013b058 to 0x10013b0e4 (140 bytes)\n// \n// 2 xrefs:\n// > GJMessageCell::onViewMessage @ 0x10013aed4\n// > GJMessageCell::FLAlert_Clicked @ 0x10013b1cc\n// \n// This function is hookable on this platform (idp: arm, 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 10:59:29 +0000\n// \n\n__int64 __fastcall GJMessageCell::markAsRead(__int64 result)\n{\n  __int64 v1; // x8\n  __int64 v2; // x0\n  __int64 v3; // x19\n  __int64 v4; // x0\n  int v5; // w8\n\n  v1 = *(_QWORD *)(result + 576);\n  if ( (*(_BYTE *)(v1 + 424) & 1) == 0 )\n  {\n    *(_BYTE *)(v1 + 424) = 1;\n    v2 = (*(__int64 (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(result + 536) + 480LL))(\n           *(_QWORD *)(result + 536),\n           100);\n    if ( v2 )\n      (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v2 + 344LL))(v2, 0);\n    v3 = GameLevelManager::sharedState();\n    v4 = GJAccountManager::sharedState(v3);\n    result = GameLevelManager::userInfoForAccountID(v3, *(_DWORD *)(v4 + 352) - *(_DWORD *)(v4 + 356));\n    if ( result )\n    {\n      v5 = *(_DWORD *)(result + 692);\n      if ( v5 <= 1 )\n        v5 = 1;\n      *(_DWORD *)(result + 692) = v5 - 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJMessageCell::markAsRead from 0x10013b058 to 0x10013b0e4 (140 bytes)\n; \n; 2 xrefs:\n; > GJMessageCell::onViewMessage @ 0x10013aed4\n; > GJMessageCell::FLAlert_Clicked @ 0x10013b1cc\n; \n; This function is hookable on this platform (idp: arm, 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 10:59:29 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10013b058\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10013b05c\nADD             X29, SP, #0x10                                         ; +0x8, 0x10013b060\nLDR             X8, [X0,#0x240]                                        ; +0xc, 0x10013b064\nLDRB            W9, [X8,#0x1A8]                                        ; +0x10, 0x10013b068\nTBNZ            W9, #0, loc_10013B0D8                                  ; +0x14, 0x10013b06c\nMOV             W9, #1                                                 ; +0x18, 0x10013b070\nSTRB            W9, [X8,#0x1A8]                                        ; +0x1c, 0x10013b074\nLDR             X0, [X0,#0x218]                                        ; +0x20, 0x10013b078\nLDR             X8, [X0]                                               ; +0x24, 0x10013b07c\nLDR             X8, [X8,#0x1E0]                                        ; +0x28, 0x10013b080\nMOV             W1, #0x64 ; 'd'                                        ; +0x2c, 0x10013b084\nBLR             X8                                                     ; +0x30, 0x10013b088\nCBZ             X0, loc_10013B0A0                                      ; +0x34, 0x10013b08c\nLDR             X8, [X0]                                               ; +0x38, 0x10013b090\nLDR             X8, [X8,#0x158]                                        ; +0x3c, 0x10013b094\nMOV             W1, #0                                                 ; +0x40, 0x10013b098\nBLR             X8                                                     ; +0x44, 0x10013b09c\nBL              GameLevelManager__sharedState                          ; +0x48, 0x10013b0a0\nMOV             X19, X0                                                ; +0x4c, 0x10013b0a4\nBL              GJAccountManager__sharedState                          ; +0x50, 0x10013b0a8\nLDR             W8, [X0,#0x160]                                        ; +0x54, 0x10013b0ac\nLDR             W9, [X0,#0x164]                                        ; +0x58, 0x10013b0b0\nSUB             W1, W8, W9                                             ; +0x5c, 0x10013b0b4\nMOV             X0, X19                                                ; +0x60, 0x10013b0b8\nBL              GameLevelManager__userInfoForAccountID                 ; +0x64, 0x10013b0bc\nCBZ             X0, loc_10013B0D8                                      ; +0x68, 0x10013b0c0\nLDR             W8, [X0,#0x2B4]                                        ; +0x6c, 0x10013b0c4\nCMP             W8, #1                                                 ; +0x70, 0x10013b0c8\nCSINC           W8, W8, WZR, GT                                        ; +0x74, 0x10013b0cc\nSUB             W8, W8, #1                                             ; +0x78, 0x10013b0d0\nSTR             W8, [X0,#0x2B4]                                        ; +0x7c, 0x10013b0d4\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x80, 0x10013b0d8\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x84, 0x10013b0dc\nRET                                                                    ; +0x88, 0x10013b0e0", "xrefs": ["GJMessageCell::onViewMessage @ 0x10013aed4", "GJMessageCell::FLAlert_Clicked @ 0x10013b1cc"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}