{"type": "func", "start": 7820580, "end": 7820764, "name": "DeathTrackerPopup::onPanelButton", "pseudocode": "// \n// DeathTrackerPopup::onPanelButton from 0x775524 to 0x7755dc (184 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:19 +0000\n// \n\nchar **__fastcall DeathTrackerPopup::onPanelButton(DeathTrackerPopup *this, cocos2d::CCObject *a2)\n{\n  int v3; // r6\n  int v4; // r5\n  char **result; // r0\n  int v6; // r1\n  int v7; // r3\n  int v8; // r3\n  int v9; // r1\n  bool v10; // r3\n  int v11; // r3\n\n  v3 = (*(int (__fastcall **)(cocos2d::CCObject *))(*(_DWORD *)a2 + 32))(a2);\n  v4 = v3 / 10;\n  v6 = v3 % 10;\n  result = (char **)(v3 / 10);\n  v7 = v3 % 10;\n  if ( !*((_BYTE *)this + 664) )\n  {\n    if ( !v4 )\n    {\n      DeathTrackerPopup::setView(this, *(_DWORD *)&word_BF0AF0[2 * v6 + 2]);\n      return DeathTrackerPopup::refreshView(this);\n    }\n    v9 = *((_DWORD *)this + 140);\n    if ( v4 == 1 )\n    {\n      if ( v9 == 3 || v9 == 2 && *((_BYTE *)this + 706) )\n        return result;\n      *((_DWORD *)this + 143) = v7;\n      if ( !v7 )\n      {\nLABEL_16:\n        *((_BYTE *)this + 577) = 1;\n        return DeathTrackerPopup::refreshView(this);\n      }\n      v10 = 0;\n    }\n    else\n    {\n      if ( v9 )\n      {\n        if ( v9 == 2 && v7 <= 1 )\n        {\n          v11 = v7 == 0;\n          if ( *((unsigned __int8 *)this + 706) != v11 )\n          {\n            *((_BYTE *)this + 706) = v11;\n            return (char **)DeathTrackerPopup::setView(this, 2);\n          }\n        }\n        return result;\n      }\n      v10 = v7 == 1;\n    }\n    *((_BYTE *)this + 576) = v10;\n    goto LABEL_16;\n  }\n  if ( !v4 && v6 <= 1 )\n  {\n    v8 = v6 == 1;\n    if ( *((unsigned __int8 *)this + 697) != v8 )\n    {\n      *((_BYTE *)this + 697) = v8;\n      return DeathTrackerPopup::refreshView(this);\n    }\n  }\n  return result;\n}", "assembly": "; \n; DeathTrackerPopup::onPanelButton from 0x775524 to 0x7755dc (184 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:59:19 +0000\n; \nPUSH            {R4-R6,LR}                                             ; +0x0, 0x775524\nMOV             R4, R0                                                 ; +0x2, 0x775526\nLDR             R3, [R1]                                               ; +0x4, 0x775528\nMOV             R0, R1                                                 ; +0x6, 0x77552a\nLDR             R3, [R3,#0x20]                                         ; +0x8, 0x77552c\nBLX             R3                                                     ; +0xa, 0x77552e\nMOVS            R1, #0xA                                               ; +0xc, 0x775530\nMOV             R6, R0                                                 ; +0xe, 0x775532\nBLX             __aeabi_idiv                                           ; +0x10, 0x775534\nMOVS            R1, #0xA                                               ; +0x14, 0x775538\nMOV             R5, R0                                                 ; +0x16, 0x77553a\nMOV             R0, R6                                                 ; +0x18, 0x77553c\nBLX             __aeabi_idivmod                                        ; +0x1a, 0x77553e\nLDRB.W          R2, [R4,#0x298]                                        ; +0x1e, 0x775542\nMOV             R3, R1                                                 ; +0x22, 0x775546\nCBZ             R2, loc_775566                                         ; +0x24, 0x775548\nCMP             R5, #0                                                 ; +0x26, 0x77554a\nBNE             locret_7755DA                                          ; +0x28, 0x77554c\nCMP             R1, #1                                                 ; +0x2a, 0x77554e\nBGT             locret_7755DA                                          ; +0x2c, 0x775550\nLDRB.W          R2, [R4,#0x2B9]                                        ; +0x2e, 0x775552\nITE EQ                                                                 ; +0x32, 0x775556\nMOVEQ           R3, #1                                                 ; +0x34, 0x775558\nMOVNE           R3, #0                                                 ; +0x36, 0x77555a\nCMP             R2, R3                                                 ; +0x38, 0x77555c\nBEQ             locret_7755DA                                          ; +0x3a, 0x77555e\nSTRB.W          R3, [R4,#0x2B9]                                        ; +0x3c, 0x775560\nB               loc_775578                                             ; +0x40, 0x775564\nCBNZ            R5, loc_775582                                         ; +0x42, 0x775566\nLDR             R2, =(word_BF0AF0 - 0x775570)                          ; +0x44, 0x775568\nMOV             R0, R4; this                                           ; +0x46, 0x77556a\nADD             R2, PC; word_BF0AF0                                    ; +0x48, 0x77556c\nADD.W           R3, R2, R1,LSL#2                                       ; +0x4a, 0x77556e\nLDR             R1, [R3,#4]; int                                       ; +0x4e, 0x775572\nBL              _ZN17DeathTrackerPopup7setViewEi; DeathTrackerPopup::setView(int) ; +0x50, 0x775574\nMOV             R0, R4; this                                           ; +0x54, 0x775578\nPOP.W           {R4-R6,LR}                                             ; +0x56, 0x77557a\nB.W             _ZN17DeathTrackerPopup11refreshViewEv; DeathTrackerPopup::refreshView(void) ; +0x5a, 0x77557e\nCMP             R5, #1                                                 ; +0x5e, 0x775582\nLDR.W           R1, [R4,#0x230]; int                                   ; +0x60, 0x775584\nBNE             loc_7755AC                                             ; +0x64, 0x775588\nCMP             R1, #3                                                 ; +0x66, 0x77558a\nBEQ             locret_7755DA                                          ; +0x68, 0x77558c\nCMP             R1, #2                                                 ; +0x6a, 0x77558e\nBNE             loc_775598                                             ; +0x6c, 0x775590\nLDRB.W          R2, [R4,#0x2C2]                                        ; +0x6e, 0x775592\nCBNZ            R2, locret_7755DA                                      ; +0x72, 0x775596\nSTR.W           R3, [R4,#0x23C]                                        ; +0x74, 0x775598\nCBZ             R3, loc_7755A4                                         ; +0x78, 0x77559c\nMOVS            R3, #0                                                 ; +0x7a, 0x77559e\nSTRB.W          R3, [R4,#0x240]                                        ; +0x7c, 0x7755a0\nMOVS            R3, #1                                                 ; +0x80, 0x7755a4\nSTRB.W          R3, [R4,#0x241]                                        ; +0x82, 0x7755a6\nB               loc_775578                                             ; +0x86, 0x7755aa\nCBNZ            R1, loc_7755B6                                         ; +0x88, 0x7755ac\nSUBS            R2, R3, #1                                             ; +0x8a, 0x7755ae\nNEGS            R3, R2                                                 ; +0x8c, 0x7755b0\nADCS            R3, R2                                                 ; +0x8e, 0x7755b2\nB               loc_7755A0                                             ; +0x90, 0x7755b4\nCMP             R1, #2                                                 ; +0x92, 0x7755b6\nBNE             locret_7755DA                                          ; +0x94, 0x7755b8\nCMP             R3, #1                                                 ; +0x96, 0x7755ba\nBGT             locret_7755DA                                          ; +0x98, 0x7755bc\nCLZ.W           R3, R3                                                 ; +0x9a, 0x7755be\nLDRB.W          R2, [R4,#0x2C2]                                        ; +0x9e, 0x7755c2\nLSRS            R3, R3, #5                                             ; +0xa2, 0x7755c6\nCMP             R2, R3                                                 ; +0xa4, 0x7755c8\nBEQ             locret_7755DA                                          ; +0xa6, 0x7755ca\nSTRB.W          R3, [R4,#0x2C2]                                        ; +0xa8, 0x7755cc\nMOV             R0, R4; this                                           ; +0xac, 0x7755d0\nPOP.W           {R4-R6,LR}                                             ; +0xae, 0x7755d2\nB.W             _ZN17DeathTrackerPopup7setViewEi; DeathTrackerPopup::setView(int) ; +0xb2, 0x7755d6\nPOP             {R4-R6,PC}                                             ; +0xb6, 0x7755da", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}