{"type": "func", "start": 5369812864, "end": 5369813004, "name": "DeathTrackerPopup::onPrevSession", "pseudocode": "// \n// DeathTrackerPopup::onPrevSession from 0x14010d780 to 0x14010d80c (140 bytes)\n// \n// 3 xrefs:\n// > DeathTrackerPopup::keyDown @ 0x14010e8de\n// > DeathTrackerPopup::init @ 0x140104c2e\n// > <???> @ 0x140915ab8\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:26:48 +0000\n// \n\nvoid __fastcall DeathTrackerPopup::onPrevSession(__int64 a1, __int64 a2)\n{\n  int v2; // r9d\n\n  if ( *(_BYTE *)(a1 + 732) )\n  {\n    if ( *(_QWORD *)(a1 + 752) != *(_QWORD *)(a1 + 760) )\n    {\n      *(_BYTE *)(a1 + 732) = 0;\n      *(_DWORD *)(a1 + 736) = 0;\n      DeathTrackerPopup::refreshView(a1, a2);\n      return;\n    }\n  }\n  else\n  {\n    v2 = *(_DWORD *)(a1 + 736);\n    a2 = (unsigned int)((*(_DWORD *)(a1 + 760) - *(_DWORD *)(a1 + 752)) / 80 - 1);\n    if ( v2 < (int)a2 )\n    {\n      *(_DWORD *)(a1 + 736) = v2 + 1;\n      DeathTrackerPopup::refreshView(a1, a2);\n      return;\n    }\n    *(_BYTE *)(a1 + 732) = 1;\n  }\n  DeathTrackerPopup::refreshView(a1, a2);\n}", "assembly": "; \n; DeathTrackerPopup::onPrevSession from 0x14010d780 to 0x14010d80c (140 bytes)\n; \n; 3 xrefs:\n; > DeathTrackerPopup::keyDown @ 0x14010e8de\n; > DeathTrackerPopup::init @ 0x140104c2e\n; > <???> @ 0x140915ab8\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:26:48 +0000\n; \ncmp     byte ptr [rcx+2DCh], 0                                         ; +0x0, 0x14010d780\nmov     r8, rcx                                                        ; +0x7, 0x14010d787\njz      short loc_14010D7B2                                            ; +0xa, 0x14010d78a\nmov     rax, [rcx+2F8h]                                                ; +0xc, 0x14010d78c\ncmp     [rcx+2F0h], rax                                                ; +0x13, 0x14010d793\njz      short loc_14010D804                                            ; +0x1a, 0x14010d79a\nmov     byte ptr [rcx+2DCh], 0                                         ; +0x1c, 0x14010d79c\nmov     dword ptr [rcx+2E0h], 0                                        ; +0x23, 0x14010d7a3\njmp     DeathTrackerPopup__refreshView                                 ; +0x2d, 0x14010d7ad\nmov     r9d, [rcx+2E0h]                                                ; +0x32, 0x14010d7b2\nmov     rax, 6666666666666667h                                         ; +0x39, 0x14010d7b9\nmov     rcx, [rcx+2F8h]                                                ; +0x43, 0x14010d7c3\nsub     rcx, [r8+2F0h]                                                 ; +0x4a, 0x14010d7ca\nimul    rcx                                                            ; +0x51, 0x14010d7d1\nsar     rdx, 5                                                         ; +0x54, 0x14010d7d4\nmov     rax, rdx                                                       ; +0x58, 0x14010d7d8\nshr     rax, 3Fh                                                       ; +0x5b, 0x14010d7db\nadd     rdx, rax                                                       ; +0x5f, 0x14010d7df\ndec     edx                                                            ; +0x62, 0x14010d7e2\ncmp     r9d, edx                                                       ; +0x64, 0x14010d7e4\njge     short loc_14010D7FC                                            ; +0x67, 0x14010d7e7\nlea     eax, [r9+1]                                                    ; +0x69, 0x14010d7e9\nmov     rcx, r8                                                        ; +0x6d, 0x14010d7ed\nmov     [r8+2E0h], eax                                                 ; +0x70, 0x14010d7f0\njmp     DeathTrackerPopup__refreshView                                 ; +0x77, 0x14010d7f7\nmov     byte ptr [r8+2DCh], 1                                          ; +0x7c, 0x14010d7fc\nmov     rcx, r8                                                        ; +0x84, 0x14010d804\njmp     DeathTrackerPopup__refreshView                                 ; +0x87, 0x14010d807", "xrefs": ["DeathTrackerPopup::keyDown @ 0x14010e8de", "DeathTrackerPopup::init @ 0x140104c2e", "<???> @ 0x140915ab8"], "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"}