//
// DeathTrackerPopup::onJumpSession from 0x14010e4c0 to 0x14010e5f7 (311 bytes)
//
// 2 xrefs:
// > DeathTrackerPopup::init @ 0x140104e70
// > ??> @ 0x140915b78
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings
// Generated at Fri, 27 Nov 2026 11:26:48 +0000
//
// Hidden C++ exception states: #wind=1
unsigned __int64 __fastcall DeathTrackerPopup::onJumpSession(__int64 a1)
{
unsigned __int64 result; // rax
__int64 v3; // rdx
bool v4; // zf
int v5; // ecx
_QWORD *v6; // rax
__int64 v7; // rcx
_WORD v8[8]; // [rsp+50h] [rbp-48h] BYREF
__int64 v9; // [rsp+60h] [rbp-38h]
__int64 v10; // [rsp+68h] [rbp-30h]
__int128 v11; // [rsp+70h] [rbp-28h] BYREF
__int64 v12; // [rsp+80h] [rbp-18h]
__int64 v13; // [rsp+88h] [rbp-10h]
result = (unsigned __int64)((unsigned __int128)((__int64)(*(_QWORD *)(a1 + 760) - *(_QWORD *)(a1 + 752))
* (__int128)0x6666666666666667LL) >> 64) >> 63;
v3 = (*(_QWORD *)(a1 + 760) - *(_QWORD *)(a1 + 752)) / 80LL;
if ( (int)v3 > 0 )
{
v4 = *(_BYTE *)(a1 + 732) == 0;
v5 = (*(_QWORD *)(a1 + 760) - *(_QWORD *)(a1 + 752)) / 80LL;
if ( v4 )
v5 = v3 - *(_DWORD *)(a1 + 736);
v11 = 0;
v12 = 2;
v13 = 15;
strcpy((char *)&v11, "OK");
v8[7] = 0;
v9 = 13;
v10 = 15;
strcpy((char *)v8, "Go To Session");
v6 = (_QWORD *)SetIDPopup::create(v5, 1, v3, (unsigned int)v8, (__int64)&v11, 0, 0, 0, 0);
v7 = a1 + 672;
if ( !a1 )
v7 = 0;
v6[87] = v7;
return (*(__int64 (__fastcall **)(_QWORD *))(*v6 + 1064LL))(v6);
}
return result;
}