{"type": "func", "start": 5370256640, "end": 5370256820, "name": "EditLevelLayer::onDeathTracker", "pseudocode": "// \n// EditLevelLayer::onDeathTracker from 0x140179d00 to 0x140179db4 (180 bytes)\n// \n// 2 xrefs:\n// > EditLevelLayer::init @ 0x140179775\n// > <???> @ 0x1409186e0\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:27:34 +0000\n// \n\n// Hidden C++ exception states: #wind=1\n__int64 __fastcall EditLevelLayer::onDeathTracker(__int64 a1)\n{\n  __int64 v2; // rcx\n  __int64 v3; // rax\n  __int64 SavedLevel; // rax\n  __int64 v5; // rdx\n  _QWORD *v6; // rax\n  void *v8; // [rsp+30h] [rbp+8h]\n\n  v2 = *(_QWORD *)&qword_14090BFB0;\n  if ( !*(_QWORD *)&qword_14090BFB0 )\n  {\n    v8 = operator new(0x690u);\n    *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager(v8);\n    (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0);\n    v2 = *(_QWORD *)&qword_14090BFB0;\n  }\n  v3 = *(_QWORD *)(a1 + 472);\n  if ( !v3\n    || (*(_DWORD *)(v3 + 992) - *(_DWORD *)(v3 + 996) <= 0\n      ? ((v5 = (unsigned int)(*(_DWORD *)(v3 + 328) - *(_DWORD *)(v3 + 332)), !*(_BYTE *)(v3 + 721))\n       ? (SavedLevel = GameLevelManager::getSavedLevel(v2, v5))\n       : (SavedLevel = GameLevelManager::getSavedGauntletLevel(v2, v5)))\n      : (SavedLevel = GameLevelManager::getSavedDailyLevel(\n                        v2,\n                        (unsigned int)(*(_DWORD *)(v3 + 992) - *(_DWORD *)(v3 + 996)))),\n        !SavedLevel) )\n  {\n    SavedLevel = *(_QWORD *)(a1 + 472);\n  }\n  v6 = DeathTrackerPopup::create(SavedLevel);\n  return (*(__int64 (__fastcall **)(_QWORD *))(*v6 + 1064LL))(v6);\n}", "assembly": "; \n; EditLevelLayer::onDeathTracker from 0x140179d00 to 0x140179db4 (180 bytes)\n; \n; 2 xrefs:\n; > EditLevelLayer::init @ 0x140179775\n; > <???> @ 0x1409186e0\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:27:34 +0000\n; \npush    rbx                                                            ; +0x0, 0x140179d00\nsub     rsp, 20h                                                       ; +0x2, 0x140179d02\nmov     rbx, rcx                                                       ; +0x6, 0x140179d06\nmov     rcx, cs:qword_14090BFB0                                        ; +0x9, 0x140179d09\ntest    rcx, rcx                                                       ; +0x10, 0x140179d10\njnz     short loc_140179D47                                            ; +0x13, 0x140179d13\nmov     ecx, 690h; Size                                                ; +0x15, 0x140179d15\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x1a, 0x140179d1a\nmov     [rsp+28h+arg_0], rax                                           ; +0x1f, 0x140179d1f\nmov     rcx, rax                                                       ; +0x24, 0x140179d24\ncall    GameLevelManager__GameLevelManager                             ; +0x27, 0x140179d27\nnop                                                                    ; +0x2c, 0x140179d2c\nmov     cs:qword_14090BFB0, rax                                        ; +0x2d, 0x140179d2d\nmov     rcx, [rax]                                                     ; +0x34, 0x140179d34\nmov     rdx, [rcx+48h]                                                 ; +0x37, 0x140179d37\nmov     rcx, rax                                                       ; +0x3b, 0x140179d3b\ncall    rdx                                                            ; +0x3e, 0x140179d3e\nmov     rcx, cs:qword_14090BFB0                                        ; +0x40, 0x140179d40\nmov     rax, [rbx+1D8h]                                                ; +0x47, 0x140179d47\ntest    rax, rax                                                       ; +0x4e, 0x140179d4e\njz      short loc_140179D90                                            ; +0x51, 0x140179d51\nmov     edx, [rax+3E0h]                                                ; +0x53, 0x140179d53\nsub     edx, [rax+3E4h]                                                ; +0x59, 0x140179d59\ntest    edx, edx                                                       ; +0x5f, 0x140179d5f\njle     short loc_140179D6A                                            ; +0x61, 0x140179d61\ncall    GameLevelManager__getSavedDailyLevel                           ; +0x63, 0x140179d63\njmp     short loc_140179D8B                                            ; +0x68, 0x140179d68\nmov     edx, [rax+148h]                                                ; +0x6a, 0x140179d6a\nsub     edx, [rax+14Ch]                                                ; +0x70, 0x140179d70\ncmp     byte ptr [rax+2D1h], 0                                         ; +0x76, 0x140179d76\njz      short loc_140179D86                                            ; +0x7d, 0x140179d7d\ncall    GameLevelManager__getSavedGauntletLevel                        ; +0x7f, 0x140179d7f\njmp     short loc_140179D8B                                            ; +0x84, 0x140179d84\ncall    GameLevelManager__getSavedLevel                                ; +0x86, 0x140179d86\ntest    rax, rax                                                       ; +0x8b, 0x140179d8b\njnz     short loc_140179D97                                            ; +0x8e, 0x140179d8e\nmov     rax, [rbx+1D8h]                                                ; +0x90, 0x140179d90\nmov     rcx, rax                                                       ; +0x97, 0x140179d97\ncall    DeathTrackerPopup__create                                      ; +0x9a, 0x140179d9a\nmov     rcx, [rax]                                                     ; +0x9f, 0x140179d9f\nmov     rdx, [rcx+428h]                                                ; +0xa2, 0x140179da2\nmov     rcx, rax                                                       ; +0xa9, 0x140179da9\nadd     rsp, 20h                                                       ; +0xac, 0x140179dac\npop     rbx                                                            ; +0xb0, 0x140179db0\njmp     rdx                                                            ; +0xb1, 0x140179db1", "xrefs": ["EditLevelLayer::init @ 0x140179775", "<???> @ 0x1409186e0"], "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"}