{"type": "func", "start": 5370294352, "end": 5370294692, "name": "EditorPauseLayer::onDeathStats", "pseudocode": "// \n// EditorPauseLayer::onDeathStats from 0x140183050 to 0x1401831a4 (340 bytes)\n// \n// 2 xrefs:\n// > EditorPauseLayer::customSetup @ 0x140181b10\n// > <???> @ 0x140918cb0\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:37 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nstruct cocos2d::CCObject *__fastcall EditorPauseLayer::onDeathStats(__int64 a1)\n{\n  __int64 v1; // rbx\n  cocos2d::CCObject *v2; // rdi\n  __int64 v3; // r8\n  int v4; // r9d\n  struct cocos2d::CCObject *result; // rax\n  __int64 (__fastcall *v6)(cocos2d::CCObject *); // rdx\n\n  v1 = *(_QWORD *)(a1 + 576);\n  v2 = (cocos2d::CCObject *)operator new(0x418u);\n  SetupTriggerPopup::SetupTriggerPopup((__int64)v2);\n  *(_QWORD *)v2 = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 40) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 41) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 42) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 43) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 44) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 51) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 54) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 68) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 83) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 84) = &DeathStatsPopup::`vftable';\n  *((_QWORD *)v2 + 125) = 0;\n  *((_QWORD *)v2 + 126) = 0;\n  *((_QWORD *)v2 + 127) = 0;\n  *((_QWORD *)v2 + 128) = 0;\n  *((_QWORD *)v2 + 129) = 0;\n  *((_DWORD *)v2 + 260) = 0;\n  if ( !DeathStatsPopup::init((__int64)v2, v1, v3, v4) )\n    return (struct cocos2d::CCObject *)(*(__int64 (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v2 + 8LL))(\n                                         v2,\n                                         1);\n  result = cocos2d::CCObject::autorelease(v2);\n  if ( v2 )\n  {\n    v6 = *(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)v2 + 1064LL);\n    if ( (char *)v6 == (char *)SetupTriggerPopup::show )\n      return (struct cocos2d::CCObject *)SetupTriggerPopup::show(v2);\n    else\n      return (struct cocos2d::CCObject *)v6(v2);\n  }\n  return result;\n}", "assembly": "; \n; EditorPauseLayer::onDeathStats from 0x140183050 to 0x1401831a4 (340 bytes)\n; \n; 2 xrefs:\n; > EditorPauseLayer::customSetup @ 0x140181b10\n; > <???> @ 0x140918cb0\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:37 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140183050\npush    rdi                                                            ; +0x5, 0x140183055\nsub     rsp, 20h                                                       ; +0x6, 0x140183056\nmov     rbx, [rcx+240h]                                                ; +0xa, 0x14018305a\nmov     ecx, 418h; Size                                                ; +0x11, 0x140183061\ncall    ??2@YAPEAX_K@Z; operator new(unsigned __int64)                 ; +0x16, 0x140183066\nmov     rdi, rax                                                       ; +0x1b, 0x14018306b\nmov     [rsp+28h+arg_0], rax                                           ; +0x1e, 0x14018306e\nmov     rcx, rax                                                       ; +0x23, 0x140183073\ncall    SetupTriggerPopup__SetupTriggerPopup                           ; +0x26, 0x140183076\nlea     rax, ??_7DeathStatsPopup@@6B@; const DeathStatsPopup::`vftable' ; +0x2b, 0x14018307b\nmov     [rdi], rax                                                     ; +0x32, 0x140183082\nlea     rax, ??_7DeathStatsPopup@@6B@_0; const DeathStatsPopup::`vftable' ; +0x35, 0x140183085\nmov     [rdi+140h], rax                                                ; +0x3c, 0x14018308c\nlea     rax, ??_7DeathStatsPopup@@6B@_1; const DeathStatsPopup::`vftable' ; +0x43, 0x140183093\nmov     [rdi+148h], rax                                                ; +0x4a, 0x14018309a\nlea     rax, ??_7DeathStatsPopup@@6B@_2; const DeathStatsPopup::`vftable' ; +0x51, 0x1401830a1\nmov     [rdi+150h], rax                                                ; +0x58, 0x1401830a8\nlea     rax, ??_7DeathStatsPopup@@6B@_3; const DeathStatsPopup::`vftable' ; +0x5f, 0x1401830af\nmov     [rdi+158h], rax                                                ; +0x66, 0x1401830b6\nlea     rax, ??_7DeathStatsPopup@@6B@_4; const DeathStatsPopup::`vftable' ; +0x6d, 0x1401830bd\nmov     [rdi+160h], rax                                                ; +0x74, 0x1401830c4\nlea     rax, ??_7DeathStatsPopup@@6B@_5; const DeathStatsPopup::`vftable' ; +0x7b, 0x1401830cb\nmov     [rdi+198h], rax                                                ; +0x82, 0x1401830d2\nlea     rax, ??_7DeathStatsPopup@@6B@_6; const DeathStatsPopup::`vftable' ; +0x89, 0x1401830d9\nmov     [rdi+1B0h], rax                                                ; +0x90, 0x1401830e0\nlea     rax, ??_7DeathStatsPopup@@6B@_7; const DeathStatsPopup::`vftable' ; +0x97, 0x1401830e7\nmov     [rdi+220h], rax                                                ; +0x9e, 0x1401830ee\nlea     rax, ??_7DeathStatsPopup@@6B@_8; const DeathStatsPopup::`vftable' ; +0xa5, 0x1401830f5\nmov     [rdi+298h], rax                                                ; +0xac, 0x1401830fc\nlea     rax, ??_7DeathStatsPopup@@6B@_9; const DeathStatsPopup::`vftable' ; +0xb3, 0x140183103\nmov     [rdi+2A0h], rax                                                ; +0xba, 0x14018310a\nxor     eax, eax                                                       ; +0xc1, 0x140183111\nmov     [rdi+3E8h], rax                                                ; +0xc3, 0x140183113\nmov     [rdi+3F0h], rax                                                ; +0xca, 0x14018311a\nmov     [rdi+3F8h], rax                                                ; +0xd1, 0x140183121\nmov     [rdi+400h], rax                                                ; +0xd8, 0x140183128\nmov     [rdi+408h], rax                                                ; +0xdf, 0x14018312f\nmov     [rdi+410h], eax                                                ; +0xe6, 0x140183136\nmov     rdx, rbx                                                       ; +0xec, 0x14018313c\nmov     rcx, rdi                                                       ; +0xef, 0x14018313f\ncall    DeathStatsPopup__init                                          ; +0xf2, 0x140183142\nmov     rcx, rdi                                                       ; +0xf7, 0x140183147\ntest    al, al                                                         ; +0xfa, 0x14018314a\njz      short loc_14018318E                                            ; +0xfc, 0x14018314c\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0xfe, 0x14018314e\ntest    rdi, rdi                                                       ; +0x104, 0x140183154\njz      short loc_140183199                                            ; +0x107, 0x140183157\nmov     rax, [rdi]                                                     ; +0x109, 0x140183159\nmov     rdx, [rax+428h]                                                ; +0x10c, 0x14018315c\nlea     rax, SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x113, 0x140183163\nmov     rcx, rdi                                                       ; +0x11a, 0x14018316a\ncmp     rdx, rax                                                       ; +0x11d, 0x14018316d\njnz     short loc_140183181                                            ; +0x120, 0x140183170\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x122, 0x140183172\nadd     rsp, 20h                                                       ; +0x127, 0x140183177\npop     rdi                                                            ; +0x12b, 0x14018317b\njmp     SetupTriggerPopup__show; Merged with: SetupTriggerPopup::show, SetTextPopup::show ; +0x12c, 0x14018317c\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x131, 0x140183181\nadd     rsp, 20h                                                       ; +0x136, 0x140183186\npop     rdi                                                            ; +0x13a, 0x14018318a\njmp     rdx                                                            ; +0x13b, 0x14018318b\nmov     rax, [rdi]                                                     ; +0x13e, 0x14018318e\nmov     edx, 1                                                         ; +0x141, 0x140183191\ncall    qword ptr [rax+8]                                              ; +0x146, 0x140183196\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x149, 0x140183199\nadd     rsp, 20h                                                       ; +0x14e, 0x14018319e\npop     rdi                                                            ; +0x152, 0x1401831a2\nretn                                                                   ; +0x153, 0x1401831a3", "xrefs": ["EditorPauseLayer::customSetup @ 0x140181b10", "<???> @ 0x140918cb0"], "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"}