{"type": "func", "start": 13327144, "end": 13327500, "name": "DeathTrackerPopup::onPanelButton", "pseudocode": "// \n// DeathTrackerPopup::onPanelButton from 0xcb5b28 to 0xcb5c8c (356 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xdad10\n// > DeathTrackerPopup::init @ 0xcb5008\n// > <???> @ 0x15468c8\n// \n// This function is hookable on this platform (idp: arm, 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 13:06:12 +0000\n// \n\n__int64 __fastcall DeathTrackerPopup::onPanelButton(DeathTrackerPopup *this, cocos2d::CCObject *a2)\n{\n  __int64 result; // x0\n  int v4; // w1\n  int v5; // w2\n\n  result = (*(__int64 (__fastcall **)(cocos2d::CCObject *))(*(_QWORD *)a2 + 64LL))(a2);\n  v4 = (int)result / 10;\n  v5 = (int)result % 10;\n  if ( *((_BYTE *)this + 920) )\n  {\n    if ( v5 <= 1 && !v4 )\n    {\n      result = v5 == 1;\n      if ( *((unsigned __int8 *)this + 977) != (_DWORD)result )\n      {\n        *((_BYTE *)this + 977) = result;\n        return DeathTrackerPopup::refreshView(this);\n      }\n    }\n  }\n  else if ( v4 )\n  {\n    result = *((unsigned int *)this + 182);\n    if ( v4 == 1 )\n    {\n      if ( (_DWORD)result != 3 )\n      {\n        if ( (_DWORD)result != 2 || (result = *((unsigned __int8 *)this + 986), !*((_BYTE *)this + 986)) )\n        {\n          *((_DWORD *)this + 185) = v5;\n          if ( v5 )\n            *((_BYTE *)this + 744) = 0;\n          *((_BYTE *)this + 745) = 1;\n          return DeathTrackerPopup::refreshView(this);\n        }\n      }\n    }\n    else if ( (_DWORD)result )\n    {\n      if ( v5 <= 1 && (_DWORD)result == 2 )\n      {\n        result = v5 == 0;\n        if ( *((unsigned __int8 *)this + 986) != (_DWORD)result )\n        {\n          *((_BYTE *)this + 986) = result;\n          return DeathTrackerPopup::setView(this, 2);\n        }\n      }\n    }\n    else\n    {\n      *((_BYTE *)this + 744) = v5 == 1;\n      *((_BYTE *)this + 745) = 1;\n      return DeathTrackerPopup::refreshView(this);\n    }\n  }\n  else\n  {\n    DeathTrackerPopup::setView(this, *((_DWORD *)&qword_11A2820 + v5 + 4));\n    return DeathTrackerPopup::refreshView(this);\n  }\n  return result;\n}", "assembly": "; \n; DeathTrackerPopup::onPanelButton from 0xcb5b28 to 0xcb5c8c (356 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xdad10\n; > DeathTrackerPopup::init @ 0xcb5008\n; > <???> @ 0x15468c8\n; \n; This function is hookable on this platform (idp: arm, 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 13:06:12 +0000\n; \nSTP             X29, X30, [SP,#var_20]!                                ; +0x0, 0xcb5b28\nMOV             X29, SP                                                ; +0x4, 0xcb5b2c\nSTR             X19, [SP,#0x20+var_10]                                 ; +0x8, 0xcb5b30\nMOV             X19, X0                                                ; +0xc, 0xcb5b34\nMOV             X0, X1                                                 ; +0x10, 0xcb5b38\nLDR             X1, [X1]                                               ; +0x14, 0xcb5b3c\nLDR             X1, [X1,#0x40]                                         ; +0x18, 0xcb5b40\nBLR             X1                                                     ; +0x1c, 0xcb5b44\nMOV             W1, #0x6667                                            ; +0x20, 0xcb5b48\nLDRB            W3, [X19,#0x398]                                       ; +0x24, 0xcb5b4c\nMOVK            W1, #0x6666,LSL#16                                     ; +0x28, 0xcb5b50\nSMULL           X1, W0, W1                                             ; +0x2c, 0xcb5b54\nLSR             X1, X1, #0x20 ; ' '                                    ; +0x30, 0xcb5b58\nASR             W1, W1, #2                                             ; +0x34, 0xcb5b5c\nSUB             W1, W1, W0,ASR#31                                      ; +0x38, 0xcb5b60\nLSL             W2, W1, #3                                             ; +0x3c, 0xcb5b64\nADD             W2, W2, W1,LSL#1                                       ; +0x40, 0xcb5b68\nSUB             W2, W0, W2                                             ; +0x44, 0xcb5b6c\nCBZ             W3, loc_CB5BA8                                         ; +0x48, 0xcb5b70\nCMP             W2, #1                                                 ; +0x4c, 0xcb5b74\nB.GT            loc_CB5BCC                                             ; +0x50, 0xcb5b78\nCBNZ            W1, loc_CB5BCC                                         ; +0x54, 0xcb5b7c\nCMP             W2, #1                                                 ; +0x58, 0xcb5b80\nLDRB            W1, [X19,#0x3D1]                                       ; +0x5c, 0xcb5b84\nCSET            W0, EQ                                                 ; +0x60, 0xcb5b88\nCMP             W1, W0                                                 ; +0x64, 0xcb5b8c\nB.EQ            loc_CB5BCC                                             ; +0x68, 0xcb5b90\nSTRB            W0, [X19,#0x3D1]                                       ; +0x6c, 0xcb5b94\nMOV             X0, X19; this                                          ; +0x70, 0xcb5b98\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x74, 0xcb5b9c\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x78, 0xcb5ba0\nB               _ZN17DeathTrackerPopup11refreshViewEv; DeathTrackerPopup::refreshView(void) ; +0x7c, 0xcb5ba4\nCBZ             W1, loc_CB5BD8                                         ; +0x80, 0xcb5ba8\nCMP             W1, #1                                                 ; +0x84, 0xcb5bac\nLDR             W0, [X19,#0x2D8]                                       ; +0x88, 0xcb5bb0\nB.EQ            loc_CB5C00                                             ; +0x8c, 0xcb5bb4\nCMP             W2, #1                                                 ; +0x90, 0xcb5bb8\nCBZ             W0, loc_CB5C34                                         ; +0x94, 0xcb5bbc\nB.GT            loc_CB5BCC                                             ; +0x98, 0xcb5bc0\nCMP             W0, #2                                                 ; +0x9c, 0xcb5bc4\nB.EQ            loc_CB5C54                                             ; +0xa0, 0xcb5bc8\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xa4, 0xcb5bcc\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xa8, 0xcb5bd0\nRET                                                                    ; +0xac, 0xcb5bd4\nADRP            X1, #qword_11A2820@PAGE                                ; +0xb0, 0xcb5bd8\nMOV             X0, X19; this                                          ; +0xb4, 0xcb5bdc\nADD             X1, X1, #qword_11A2820@PAGEOFF                         ; +0xb8, 0xcb5be0\nADD             X2, X1, W2,SXTW#2                                      ; +0xbc, 0xcb5be4\nLDR             W1, [X2,#0x10]; int                                    ; +0xc0, 0xcb5be8\nBL              _ZN17DeathTrackerPopup7setViewEi; DeathTrackerPopup::setView(int) ; +0xc4, 0xcb5bec\nMOV             X0, X19; this                                          ; +0xc8, 0xcb5bf0\nLDR             X19, [SP,#0x20+var_10]                                 ; +0xcc, 0xcb5bf4\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0xd0, 0xcb5bf8\nB               _ZN17DeathTrackerPopup11refreshViewEv; DeathTrackerPopup::refreshView(void) ; +0xd4, 0xcb5bfc\nCMP             W0, #3                                                 ; +0xd8, 0xcb5c00\nB.EQ            loc_CB5BCC                                             ; +0xdc, 0xcb5c04\nCMP             W0, #2                                                 ; +0xe0, 0xcb5c08\nB.EQ            loc_CB5C80                                             ; +0xe4, 0xcb5c0c\nSTR             W2, [X19,#0x2E4]                                       ; +0xe8, 0xcb5c10\nCBZ             W2, loc_CB5C1C                                         ; +0xec, 0xcb5c14\nSTRB            WZR, [X19,#0x2E8]                                      ; +0xf0, 0xcb5c18\nMOV             W1, #1                                                 ; +0xf4, 0xcb5c1c\nSTRB            W1, [X19,#0x2E9]                                       ; +0xf8, 0xcb5c20\nMOV             X0, X19; this                                          ; +0xfc, 0xcb5c24\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x100, 0xcb5c28\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x104, 0xcb5c2c\nB               _ZN17DeathTrackerPopup11refreshViewEv; DeathTrackerPopup::refreshView(void) ; +0x108, 0xcb5c30\nCSET            W0, EQ                                                 ; +0x10c, 0xcb5c34\nMOV             W1, #1                                                 ; +0x110, 0xcb5c38\nSTRB            W0, [X19,#0x2E8]                                       ; +0x114, 0xcb5c3c\nMOV             X0, X19; this                                          ; +0x118, 0xcb5c40\nSTRB            W1, [X19,#0x2E9]                                       ; +0x11c, 0xcb5c44\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x120, 0xcb5c48\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x124, 0xcb5c4c\nB               _ZN17DeathTrackerPopup11refreshViewEv; DeathTrackerPopup::refreshView(void) ; +0x128, 0xcb5c50\nCMP             W2, WZR                                                ; +0x12c, 0xcb5c54\nLDRB            W1, [X19,#0x3DA]                                       ; +0x130, 0xcb5c58\nCSET            W0, EQ                                                 ; +0x134, 0xcb5c5c\nCMP             W1, W0                                                 ; +0x138, 0xcb5c60\nB.EQ            loc_CB5BCC                                             ; +0x13c, 0xcb5c64\nSTRB            W0, [X19,#0x3DA]                                       ; +0x140, 0xcb5c68\nMOV             X0, X19; this                                          ; +0x144, 0xcb5c6c\nMOV             W1, #2; int                                            ; +0x148, 0xcb5c70\nLDR             X19, [SP,#0x20+var_10]                                 ; +0x14c, 0xcb5c74\nLDP             X29, X30, [SP+0x20+var_20],#0x20                       ; +0x150, 0xcb5c78\nB               _ZN17DeathTrackerPopup7setViewEi; DeathTrackerPopup::setView(int) ; +0x154, 0xcb5c7c\nLDRB            W0, [X19,#0x3DA]                                       ; +0x158, 0xcb5c80\nCBZ             W0, loc_CB5C10                                         ; +0x15c, 0xcb5c84\nB               loc_CB5BCC                                             ; +0x160, 0xcb5c88", "xrefs": ["<???> @ 0xdad10", "DeathTrackerPopup::init @ 0xcb5008", "<???> @ 0x15468c8"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}