{"type": "func", "start": 5369813984, "end": 5369814608, "name": "DeathTrackerPopup::setView", "pseudocode": "// \n// DeathTrackerPopup::setView from 0x14010dbe0 to 0x14010de50 (624 bytes)\n// \n// 7 xrefs:\n// > DeathTrackerPopup::init @ 0x140105c89\n// > DeathTrackerPopup::onToggleGlobal @ 0x14010da51\n// > DeathTrackerPopup::onPanelButton @ 0x14010dee3\n// > DeathTrackerPopup::onPanelButton @ 0x14010df9e\n// > <???> @ 0x1408962f4\n// > <???> @ 0x14089634c\n// > <???> @ 0x140915adc\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\n__int64 __fastcall DeathTrackerPopup::setView(__int64 a1, __int64 a2)\n{\n  bool v3; // bp\n  __int64 v4; // rcx\n  _DWORD *v5; // rbx\n  __int64 v6; // rcx\n  int v7; // eax\n  __int64 v8; // rcx\n  __int64 v9; // rcx\n  _DWORD *v10; // rsi\n  __int64 v11; // rcx\n  __int64 v12; // rcx\n  const char *v13; // rdx\n  int v14; // eax\n  _QWORD *v15; // r14\n  float v16; // xmm0_4\n  __int64 v17; // rbx\n  float v18; // xmm6_4\n  __int64 *v19; // rsi\n  __int64 v20; // rbx\n  __int64 v21; // rax\n  int v22; // eax\n  char v24; // [rsp+50h] [rbp+8h] BYREF\n\n  *(_DWORD *)(a1 + 728) = a2;\n  v3 = (_DWORD)a2 == 2 && *(_BYTE *)(a1 + 986);\n  v4 = *(_QWORD *)(a1 + 712);\n  v5 = (_DWORD *)(a1 + 728);\n  if ( v4 )\n  {\n    if ( !(_DWORD)a2 || v3 )\n      LOBYTE(a2) = 1;\n    else\n      a2 = 0;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v4 + 336LL))(v4, a2);\n    v5 = (_DWORD *)(a1 + 728);\n  }\n  v6 = *(_QWORD *)(a1 + 688);\n  if ( v6 )\n  {\n    v7 = *(_DWORD *)(a1 + 728);\n    if ( v7 == 1 || v7 == 2 && (v5 = (_DWORD *)(a1 + 728), !*(_BYTE *)(a1 + 986)) )\n      LOBYTE(a2) = 1;\n    else\n      a2 = 0;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v6 + 336LL))(v6, a2);\n  }\n  v8 = *(_QWORD *)(a1 + 800);\n  if ( v8 )\n  {\n    LOBYTE(a2) = *(_DWORD *)(a1 + 728) == 1;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 336LL))(v8, a2);\n  }\n  v9 = *(_QWORD *)(a1 + 720);\n  v10 = v5;\n  if ( v9 )\n  {\n    LOBYTE(a2) = *v5 == 3;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 336LL))(v9, a2);\n    v10 = (_DWORD *)(a1 + 728);\n  }\n  v11 = *(_QWORD *)(a1 + 816);\n  if ( v11 )\n  {\n    LOBYTE(a2) = *v5 != 1;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v11 + 336LL))(v11, a2);\n    v5 = v10;\n  }\n  v12 = *(_QWORD *)(a1 + 808);\n  if ( v12 )\n  {\n    LOBYTE(a2) = *v5 != 1;\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v12 + 336LL))(v12, a2);\n    if ( v3 )\n    {\n      v13 = \"Attempt Progress\";\n    }\n    else\n    {\n      v14 = *v5;\n      if ( *v5 )\n      {\n        if ( v14 == 1 )\n        {\n          v13 = \"Death List\";\n        }\n        else\n        {\n          v13 = \"Progression\";\n          if ( v14 == 2 )\n            v13 = \"Death History\";\n        }\n      }\n      else\n      {\n        v13 = \"Death Distribution\";\n      }\n    }\n    v15 = (_QWORD *)(a1 + 808);\n    (**(void (__fastcall ***)(__int64, const char *))(*(_QWORD *)(a1 + 808) + 360LL))(\n      *(_QWORD *)(a1 + 808) + 360LL,\n      v13);\n    if ( *v5 != 2 || *(_BYTE *)(a1 + 986) )\n    {\n      v17 = *v15;\n      v18 = *(float *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v15 + 320LL))(*v15);\n      v16 = (float)((*(float (__fastcall **)(__int64))(*(_QWORD *)v17 + 168LL))(v17) * v18) + 22.0;\n    }\n    else\n    {\n      v16 = *(float *)(a1 + 696) - 4.0;\n    }\n    v19 = *(__int64 **)(a1 + 816);\n    if ( v19 )\n    {\n      v20 = *v19;\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v24, v16, 18.0);\n      (*(void (__fastcall **)(__int64 *, __int64))(v20 + 312))(v19, v21);\n    }\n  }\n  v22 = *(_DWORD *)(a1 + 728);\n  if ( v22 == 1 )\n  {\n    DeathTrackerPopup::buildList(a1);\n    return DeathTrackerPopup::updatePanel(a1);\n  }\n  if ( v22 == 2 )\n  {\n    if ( *(_BYTE *)(a1 + 986) )\n    {\n      DeathTrackerPopup::buildAttemptLine(a1);\n      return DeathTrackerPopup::updatePanel(a1);\n    }\n    DeathTrackerPopup::buildHistory(a1);\n  }\n  return DeathTrackerPopup::updatePanel(a1);\n}", "assembly": "; \n; DeathTrackerPopup::setView from 0x14010dbe0 to 0x14010de50 (624 bytes)\n; \n; 7 xrefs:\n; > DeathTrackerPopup::init @ 0x140105c89\n; > DeathTrackerPopup::onToggleGlobal @ 0x14010da51\n; > DeathTrackerPopup::onPanelButton @ 0x14010dee3\n; > DeathTrackerPopup::onPanelButton @ 0x14010df9e\n; > <???> @ 0x1408962f4\n; > <???> @ 0x14089634c\n; > <???> @ 0x140915adc\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; \npush    rdi                                                            ; +0x0, 0x14010dbe0\nsub     rsp, 40h                                                       ; +0x2, 0x14010dbe2\nmov     [rsp+48h+arg_8], rbx                                           ; +0x6, 0x14010dbe6\nmov     rdi, rcx                                                       ; +0xb, 0x14010dbeb\nmov     [rsp+48h+arg_10], rbp                                          ; +0xe, 0x14010dbee\nmov     [rsp+48h+var_10], rsi                                          ; +0x13, 0x14010dbf3\nmov     [rcx+2D8h], edx                                                ; +0x18, 0x14010dbf8\ncmp     edx, 2                                                         ; +0x1e, 0x14010dbfe\njnz     short loc_14010DC11                                            ; +0x21, 0x14010dc01\ncmp     byte ptr [rcx+3DAh], 0                                         ; +0x23, 0x14010dc03\njz      short loc_14010DC11                                            ; +0x2a, 0x14010dc0a\nmov     bpl, 1                                                         ; +0x2c, 0x14010dc0c\njmp     short loc_14010DC14                                            ; +0x2f, 0x14010dc0f\nxor     bpl, bpl                                                       ; +0x31, 0x14010dc11\nmov     rcx, [rcx+2C8h]                                                ; +0x34, 0x14010dc14\nlea     rbx, [rdi+2D8h]                                                ; +0x3b, 0x14010dc1b\ntest    rcx, rcx                                                       ; +0x42, 0x14010dc22\njz      short loc_14010DC46                                            ; +0x45, 0x14010dc25\ntest    edx, edx                                                       ; +0x47, 0x14010dc27\njz      short loc_14010DC34                                            ; +0x49, 0x14010dc29\ntest    bpl, bpl                                                       ; +0x4b, 0x14010dc2b\njnz     short loc_14010DC34                                            ; +0x4e, 0x14010dc2e\nxor     edx, edx                                                       ; +0x50, 0x14010dc30\njmp     short loc_14010DC36                                            ; +0x52, 0x14010dc32\nmov     dl, 1                                                          ; +0x54, 0x14010dc34\nmov     rax, [rcx]                                                     ; +0x56, 0x14010dc36\ncall    qword ptr [rax+150h]                                           ; +0x59, 0x14010dc39\nlea     rbx, [rdi+2D8h]                                                ; +0x5f, 0x14010dc3f\nmov     rcx, [rdi+2B0h]                                                ; +0x66, 0x14010dc46\ntest    rcx, rcx                                                       ; +0x6d, 0x14010dc4d\njz      short loc_14010DC81                                            ; +0x70, 0x14010dc50\nmov     eax, [rdi+2D8h]                                                ; +0x72, 0x14010dc52\ncmp     eax, 1                                                         ; +0x78, 0x14010dc58\njz      short loc_14010DC76                                            ; +0x7b, 0x14010dc5b\ncmp     eax, 2                                                         ; +0x7d, 0x14010dc5d\njnz     short loc_14010DC72                                            ; +0x80, 0x14010dc60\ncmp     byte ptr [rdi+3DAh], 0                                         ; +0x82, 0x14010dc62\nlea     rbx, [rdi+2D8h]                                                ; +0x89, 0x14010dc69\njz      short loc_14010DC76                                            ; +0x90, 0x14010dc70\nxor     edx, edx                                                       ; +0x92, 0x14010dc72\njmp     short loc_14010DC78                                            ; +0x94, 0x14010dc74\nmov     dl, 1                                                          ; +0x96, 0x14010dc76\nmov     rax, [rcx]                                                     ; +0x98, 0x14010dc78\ncall    qword ptr [rax+150h]                                           ; +0x9b, 0x14010dc7b\nmov     rcx, [rdi+320h]                                                ; +0xa1, 0x14010dc81\ntest    rcx, rcx                                                       ; +0xa8, 0x14010dc88\njz      short loc_14010DCA0                                            ; +0xab, 0x14010dc8b\ncmp     dword ptr [rdi+2D8h], 1                                        ; +0xad, 0x14010dc8d\nmov     rax, [rcx]                                                     ; +0xb4, 0x14010dc94\nsetz    dl                                                             ; +0xb7, 0x14010dc97\ncall    qword ptr [rax+150h]                                           ; +0xba, 0x14010dc9a\nmov     rcx, [rdi+2D0h]                                                ; +0xc0, 0x14010dca0\nmov     rsi, rbx                                                       ; +0xc7, 0x14010dca7\ntest    rcx, rcx                                                       ; +0xca, 0x14010dcaa\njz      short loc_14010DCC5                                            ; +0xcd, 0x14010dcad\ncmp     dword ptr [rbx], 3                                             ; +0xcf, 0x14010dcaf\nmov     rax, [rcx]                                                     ; +0xd2, 0x14010dcb2\nsetz    dl                                                             ; +0xd5, 0x14010dcb5\ncall    qword ptr [rax+150h]                                           ; +0xd8, 0x14010dcb8\nlea     rsi, [rdi+2D8h]                                                ; +0xde, 0x14010dcbe\nmov     rcx, [rdi+330h]                                                ; +0xe5, 0x14010dcc5\ntest    rcx, rcx                                                       ; +0xec, 0x14010dccc\njz      short loc_14010DCE3                                            ; +0xef, 0x14010dccf\ncmp     dword ptr [rbx], 1                                             ; +0xf1, 0x14010dcd1\nmov     rax, [rcx]                                                     ; +0xf4, 0x14010dcd4\nsetnz   dl                                                             ; +0xf7, 0x14010dcd7\ncall    qword ptr [rax+150h]                                           ; +0xfa, 0x14010dcda\nmov     rbx, rsi                                                       ; +0x100, 0x14010dce0\nmov     rcx, [rdi+328h]                                                ; +0x103, 0x14010dce3\ntest    rcx, rcx                                                       ; +0x10a, 0x14010dcea\njz      loc_14010DDEC                                                  ; +0x10d, 0x14010dced\ncmp     dword ptr [rbx], 1                                             ; +0x113, 0x14010dcf3\nmov     rax, [rcx]                                                     ; +0x116, 0x14010dcf6\nsetnz   dl                                                             ; +0x119, 0x14010dcf9\nmov     [rsp+48h+var_18], r14                                          ; +0x11c, 0x14010dcfc\ncall    qword ptr [rax+150h]                                           ; +0x121, 0x14010dd01\ntest    bpl, bpl                                                       ; +0x127, 0x14010dd07\njz      short loc_14010DD15                                            ; +0x12a, 0x14010dd0a\nlea     rdx, aAttemptProgres; \"Attempt Progress\"                       ; +0x12c, 0x14010dd0c\njmp     short loc_14010DD47                                            ; +0x133, 0x14010dd13\nmov     eax, [rbx]                                                     ; +0x135, 0x14010dd15\ntest    eax, eax                                                       ; +0x137, 0x14010dd17\njnz     short loc_14010DD24                                            ; +0x139, 0x14010dd19\nlea     rdx, aDeathDistribut; \"Death Distribution\"                     ; +0x13b, 0x14010dd1b\njmp     short loc_14010DD47                                            ; +0x142, 0x14010dd22\ncmp     eax, 1                                                         ; +0x144, 0x14010dd24\njnz     short loc_14010DD32                                            ; +0x147, 0x14010dd27\nlea     rdx, aDeathList; \"Death List\"                                  ; +0x149, 0x14010dd29\njmp     short loc_14010DD47                                            ; +0x150, 0x14010dd30\ncmp     eax, 2                                                         ; +0x152, 0x14010dd32\nlea     rcx, aDeathHistory; \"Death History\"                            ; +0x155, 0x14010dd35\nlea     rdx, aProgression; \"Progression\"                               ; +0x15c, 0x14010dd3c\ncmovz   rdx, rcx                                                       ; +0x163, 0x14010dd43\nmov     rcx, [rdi+328h]                                                ; +0x167, 0x14010dd47\nlea     r14, [rdi+328h]                                                ; +0x16e, 0x14010dd4e\nadd     rcx, 168h                                                      ; +0x175, 0x14010dd55\nmov     rax, [rcx]                                                     ; +0x17c, 0x14010dd5c\ncall    qword ptr [rax]                                                ; +0x17f, 0x14010dd5f\ncmp     dword ptr [rbx], 2                                             ; +0x181, 0x14010dd61\njnz     short loc_14010DD81                                            ; +0x184, 0x14010dd64\ncmp     byte ptr [rdi+3DAh], 0                                         ; +0x186, 0x14010dd66\njnz     short loc_14010DD81                                            ; +0x18d, 0x14010dd6d\nmovss   xmm0, dword ptr [rdi+2B8h]                                     ; +0x18f, 0x14010dd6f\nsubss   xmm0, cs:dword_140835450                                       ; +0x197, 0x14010dd77\njmp     short loc_14010DDB6                                            ; +0x19f, 0x14010dd7f\nmov     rbx, [r14]                                                     ; +0x1a1, 0x14010dd81\nmov     rcx, rbx                                                       ; +0x1a4, 0x14010dd84\nmovaps  [rsp+48h+var_28], xmm6                                         ; +0x1a7, 0x14010dd87\nmov     rax, [rbx]                                                     ; +0x1ac, 0x14010dd8c\ncall    qword ptr [rax+140h]                                           ; +0x1af, 0x14010dd8f\nmov     rcx, rbx                                                       ; +0x1b5, 0x14010dd95\nmovss   xmm6, dword ptr [rax]                                          ; +0x1b8, 0x14010dd98\nmov     rax, [rbx]                                                     ; +0x1bc, 0x14010dd9c\ncall    qword ptr [rax+0A8h]                                           ; +0x1bf, 0x14010dd9f\nmulss   xmm0, xmm6                                                     ; +0x1c5, 0x14010dda5\nmovaps  xmm6, [rsp+48h+var_28]                                         ; +0x1c9, 0x14010dda9\naddss   xmm0, cs:dword_1408355D0                                       ; +0x1ce, 0x14010ddae\nmov     rsi, [rdi+330h]                                                ; +0x1d6, 0x14010ddb6\nmov     r14, [rsp+48h+var_18]                                          ; +0x1dd, 0x14010ddbd\ntest    rsi, rsi                                                       ; +0x1e2, 0x14010ddc2\njz      short loc_14010DDEC                                            ; +0x1e5, 0x14010ddc5\nmovss   xmm2, cs:dword_140835598                                       ; +0x1e7, 0x14010ddc7\nlea     rcx, [rsp+48h+arg_0]                                           ; +0x1ef, 0x14010ddcf\nmov     rbx, [rsi]                                                     ; +0x1f4, 0x14010ddd4\nmovaps  xmm1, xmm0                                                     ; +0x1f7, 0x14010ddd7\ncall    cs:??0CCSize@cocos2d@@QEAA@MM@Z; cocos2d::CCSize::CCSize(float,float) ; +0x1fa, 0x14010ddda\nmov     rdx, rax                                                       ; +0x200, 0x14010dde0\nmov     rcx, rsi                                                       ; +0x203, 0x14010dde3\ncall    qword ptr [rbx+138h]                                           ; +0x206, 0x14010dde6\nmov     eax, [rdi+2D8h]                                                ; +0x20c, 0x14010ddec\nmov     rsi, [rsp+48h+var_10]                                          ; +0x212, 0x14010ddf2\nmov     rbp, [rsp+48h+arg_10]                                          ; +0x217, 0x14010ddf7\nmov     rbx, [rsp+48h+arg_8]                                           ; +0x21c, 0x14010ddfc\ncmp     eax, 1                                                         ; +0x221, 0x14010de01\njnz     short loc_14010DE1B                                            ; +0x224, 0x14010de04\nmov     rcx, rdi                                                       ; +0x226, 0x14010de06\ncall    DeathTrackerPopup__buildList                                   ; +0x229, 0x14010de09\nmov     rcx, rdi                                                       ; +0x22e, 0x14010de0e\nadd     rsp, 40h                                                       ; +0x231, 0x14010de11\npop     rdi                                                            ; +0x235, 0x14010de15\njmp     DeathTrackerPopup__updatePanel                                 ; +0x236, 0x14010de16\ncmp     eax, 2                                                         ; +0x23b, 0x14010de1b\njnz     short loc_14010DE43                                            ; +0x23e, 0x14010de1e\ncmp     byte ptr [rdi+3DAh], 0                                         ; +0x240, 0x14010de20\nmov     rcx, rdi                                                       ; +0x247, 0x14010de27\njz      short loc_14010DE3E                                            ; +0x24a, 0x14010de2a\ncall    DeathTrackerPopup__buildAttemptLine                            ; +0x24c, 0x14010de2c\nmov     rcx, rdi                                                       ; +0x251, 0x14010de31\nadd     rsp, 40h                                                       ; +0x254, 0x14010de34\npop     rdi                                                            ; +0x258, 0x14010de38\njmp     DeathTrackerPopup__updatePanel                                 ; +0x259, 0x14010de39\ncall    DeathTrackerPopup__buildHistory                                ; +0x25e, 0x14010de3e\nmov     rcx, rdi                                                       ; +0x263, 0x14010de43\nadd     rsp, 40h                                                       ; +0x266, 0x14010de46\npop     rdi                                                            ; +0x26a, 0x14010de4a\njmp     DeathTrackerPopup__updatePanel                                 ; +0x26b, 0x14010de4b", "xrefs": ["DeathTrackerPopup::init @ 0x140105c89", "DeathTrackerPopup::onToggleGlobal @ 0x14010da51", "DeathTrackerPopup::onPanelButton @ 0x14010dee3", "DeathTrackerPopup::onPanelButton @ 0x14010df9e", "<???> @ 0x1408962f4", "<???> @ 0x14089634c", "<???> @ 0x140915adc"], "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"}