{"type": "func", "start": 4296253540, "end": 4296253688, "name": "GJRequestCell::markAsRead", "pseudocode": "// \n// GJRequestCell::markAsRead from 0x10013a064 to 0x10013a0f8 (148 bytes)\n// \n// 1 xrefs:\n// > GJRequestCell::onViewFriendRequest @ 0x10013a008\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:28 +0000\n// \n\n__int64 __fastcall GJRequestCell::markAsRead(__int64 result)\n{\n  __int64 v1; // x19\n  __int64 v2; // x0\n  __int64 v3; // x19\n  __int64 v4; // x0\n  int v5; // w8\n\n  if ( *(_BYTE *)(*(_QWORD *)(result + 552) + 724LL) == 1 )\n  {\n    v1 = result;\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    *(_BYTE *)(*(_QWORD *)(v1 + 552) + 724LL) = 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 + 696);\n      if ( v5 <= 1 )\n        v5 = 1;\n      *(_DWORD *)(result + 696) = v5 - 1;\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJRequestCell::markAsRead from 0x10013a064 to 0x10013a0f8 (148 bytes)\n; \n; 1 xrefs:\n; > GJRequestCell::onViewFriendRequest @ 0x10013a008\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:28 +0000\n; \nSTP             X20, X19, [SP,#-0x10+var_10]!                          ; +0x0, 0x10013a064\nSTP             X29, X30, [SP,#0x10+var_s0]                            ; +0x4, 0x10013a068\nADD             X29, SP, #0x10                                         ; +0x8, 0x10013a06c\nLDR             X8, [X0,#0x228]                                        ; +0xc, 0x10013a070\nLDRB            W8, [X8,#0x2D4]                                        ; +0x10, 0x10013a074\nCMP             W8, #1                                                 ; +0x14, 0x10013a078\nB.NE            loc_10013A0EC                                          ; +0x18, 0x10013a07c\nMOV             X19, X0                                                ; +0x1c, 0x10013a080\nLDR             X0, [X0,#0x218]                                        ; +0x20, 0x10013a084\nLDR             X8, [X0]                                               ; +0x24, 0x10013a088\nLDR             X8, [X8,#0x1E0]                                        ; +0x28, 0x10013a08c\nMOV             W1, #0x64 ; 'd'                                        ; +0x2c, 0x10013a090\nBLR             X8                                                     ; +0x30, 0x10013a094\nCBZ             X0, loc_10013A0AC                                      ; +0x34, 0x10013a098\nLDR             X8, [X0]                                               ; +0x38, 0x10013a09c\nLDR             X8, [X8,#0x158]                                        ; +0x3c, 0x10013a0a0\nMOV             W1, #0                                                 ; +0x40, 0x10013a0a4\nBLR             X8                                                     ; +0x44, 0x10013a0a8\nLDR             X8, [X19,#0x228]                                       ; +0x48, 0x10013a0ac\nSTRB            WZR, [X8,#0x2D4]                                       ; +0x4c, 0x10013a0b0\nBL              GameLevelManager__sharedState                          ; +0x50, 0x10013a0b4\nMOV             X19, X0                                                ; +0x54, 0x10013a0b8\nBL              GJAccountManager__sharedState                          ; +0x58, 0x10013a0bc\nLDR             W8, [X0,#0x160]                                        ; +0x5c, 0x10013a0c0\nLDR             W9, [X0,#0x164]                                        ; +0x60, 0x10013a0c4\nSUB             W1, W8, W9                                             ; +0x64, 0x10013a0c8\nMOV             X0, X19                                                ; +0x68, 0x10013a0cc\nBL              GameLevelManager__userInfoForAccountID                 ; +0x6c, 0x10013a0d0\nCBZ             X0, loc_10013A0EC                                      ; +0x70, 0x10013a0d4\nLDR             W8, [X0,#0x2B8]                                        ; +0x74, 0x10013a0d8\nCMP             W8, #1                                                 ; +0x78, 0x10013a0dc\nCSINC           W8, W8, WZR, GT                                        ; +0x7c, 0x10013a0e0\nSUB             W8, W8, #1                                             ; +0x80, 0x10013a0e4\nSTR             W8, [X0,#0x2B8]                                        ; +0x84, 0x10013a0e8\nLDP             X29, X30, [SP,#0x10+var_s0]                            ; +0x88, 0x10013a0ec\nLDP             X20, X19, [SP+0x10+var_10],#0x20                       ; +0x8c, 0x10013a0f0\nRET                                                                    ; +0x90, 0x10013a0f4", "xrefs": ["GJRequestCell::onViewFriendRequest @ 0x10013a008"], "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"}