{"type": "func", "start": 7819980, "end": 7820400, "name": "DeathTrackerPopup::setView", "pseudocode": "// \n// DeathTrackerPopup::setView from 0x7752cc to 0x775470 (420 bytes)\n// \n// 4 xrefs:\n// > DeathTrackerPopup::onToggleGlobal @ 0x7754fa\n// > DeathTrackerPopup::onPanelButton @ 0x775574\n// > DeathTrackerPopup::onPanelButton @ 0x7755d6\n// > DeathTrackerPopup::init @ 0x776816\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\nint __fastcall DeathTrackerPopup::setView(DeathTrackerPopup *this, int a2)\n{\n  int v2; // r6\n  int v4; // r0\n  int v5; // r1\n  int v6; // r0\n  int v7; // r1\n  bool v8; // zf\n  int v9; // r0\n  int v10; // r0\n  int v11; // r0\n  int v12; // r0\n  int v13; // r3\n  char *v14; // r1\n  float v15; // s15\n  int v16; // r6\n  void (__fastcall *v17)(int, _BYTE *); // r8\n  int v18; // r3\n  float v20; // s16\n  _BYTE v21[8]; // [sp+4h] [bp-Ch] BYREF\n\n  if ( a2 != 2 )\n    v2 = 0;\n  *((_DWORD *)this + 140) = a2;\n  if ( a2 == 2 )\n    v2 = *((unsigned __int8 *)this + 706);\n  v4 = *((_DWORD *)this + 138);\n  if ( v4 )\n  {\n    if ( a2 )\n      v5 = v2;\n    else\n      v5 = 1;\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v4 + 172))(v4, v5);\n  }\n  v6 = *((_DWORD *)this + 133);\n  if ( v6 )\n  {\n    v7 = *((_DWORD *)this + 140);\n    if ( v7 != 1 )\n    {\n      v8 = v7 == 2;\n      v7 = v7 == 2 ? *((unsigned __int8 *)this + 706) : 0;\n      if ( v8 )\n        v7 ^= 1u;\n    }\n    (*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 172))(v6, v7);\n  }\n  v9 = *((_DWORD *)this + 151);\n  if ( v9 )\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v9 + 172))(v9, *((_DWORD *)this + 140) == 1);\n  v10 = *((_DWORD *)this + 139);\n  if ( v10 )\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v10 + 172))(v10, *((_DWORD *)this + 140) == 3);\n  v11 = *((_DWORD *)this + 153);\n  if ( v11 )\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v11 + 172))(v11, *((_DWORD *)this + 140) != 1);\n  v12 = *((_DWORD *)this + 152);\n  if ( v12 )\n  {\n    (*(void (__fastcall **)(int, bool))(*(_DWORD *)v12 + 172))(v12, *((_DWORD *)this + 140) != 1);\n    if ( v2 )\n    {\n      v14 = \"Attempt Progress\";\n    }\n    else\n    {\n      v13 = *((_DWORD *)this + 140);\n      if ( v13 )\n      {\n        if ( v13 == 1 )\n          v14 = \"Death List\";\n        else\n          v14 = v13 == 2 ? \"Death History\" : \"Progression\";\n      }\n      else\n      {\n        v14 = \"Death Distribution\";\n      }\n    }\n    (*(void (__fastcall **)(_DWORD, char *))(**((_DWORD **)this + 152) + 464))(*((_DWORD *)this + 152), v14);\n    if ( *((_DWORD *)this + 140) != 2 || *((_BYTE *)this + 706) )\n    {\n      v20 = *(float *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 164))(*((_DWORD *)this + 152));\n      v15 = (float)(v20 * (*(float (__fastcall **)(_DWORD))(**((_DWORD **)this + 152) + 84))(*((_DWORD *)this + 152)))\n          + 22.0;\n    }\n    else\n    {\n      v15 = *((float *)this + 134) - 4.0;\n    }\n    v16 = *((_DWORD *)this + 153);\n    if ( v16 )\n    {\n      v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 160);\n      cocos2d::CCSize::CCSize((cocos2d::CCSize *)v21, v15, 18.0);\n      v17(v16, v21);\n    }\n  }\n  v18 = *((_DWORD *)this + 140);\n  if ( v18 == 1 )\n  {\n    DeathTrackerPopup::buildList((ScrollableContentLayer **)this);\n  }\n  else if ( v18 == 2 )\n  {\n    if ( *((_BYTE *)this + 706) )\n      DeathTrackerPopup::buildAttemptLine(this);\n    else\n      DeathTrackerPopup::buildHistory(this);\n  }\n  return DeathTrackerPopup::updatePanel(this);\n}", "assembly": "; \n; DeathTrackerPopup::setView from 0x7752cc to 0x775470 (420 bytes)\n; \n; 4 xrefs:\n; > DeathTrackerPopup::onToggleGlobal @ 0x7754fa\n; > DeathTrackerPopup::onPanelButton @ 0x775574\n; > DeathTrackerPopup::onPanelButton @ 0x7755d6\n; > DeathTrackerPopup::init @ 0x776816\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.W          {R4-R8,LR}                                             ; +0x0, 0x7752cc\nCMP             R1, #2                                                 ; +0x4, 0x7752d0\nVPUSH           {D8}                                                   ; +0x6, 0x7752d2\nMOV             R4, R0                                                 ; +0xa, 0x7752d6\nLDR             R3, =(__stack_chk_guard_ptr - 0x7752E6)                ; +0xc, 0x7752d8\nIT NE                                                                  ; +0xe, 0x7752da\nMOVNE           R6, #0                                                 ; +0x10, 0x7752dc\nSTR.W           R1, [R0,#0x230]                                        ; +0x12, 0x7752de\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x16, 0x7752e2\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x18, 0x7752e4\nIT EQ                                                                  ; +0x1a, 0x7752e6\nLDRBEQ.W        R6, [R0,#0x2C2]                                        ; +0x1c, 0x7752e8\nSUB             SP, SP, #0x10                                          ; +0x20, 0x7752ec\nLDR             R2, [R3]                                               ; +0x22, 0x7752ee\nMOV             R5, R3                                                 ; +0x24, 0x7752f0\nLDR.W           R0, [R0,#0x228]                                        ; +0x26, 0x7752f2\nSTR             R2, [SP,#0x10+var_4]                                   ; +0x2a, 0x7752f6\nCBZ             R0, loc_77530A                                         ; +0x2c, 0x7752f8\nLDR             R3, [R0]                                               ; +0x2e, 0x7752fa\nCMP             R1, #0                                                 ; +0x30, 0x7752fc\nITE NE                                                                 ; +0x32, 0x7752fe\nMOVNE           R1, R6                                                 ; +0x34, 0x775300\nMOVEQ           R1, #1                                                 ; +0x36, 0x775302\nLDR.W           R3, [R3,#0xAC]                                         ; +0x38, 0x775304\nBLX             R3                                                     ; +0x3c, 0x775308\nLDR.W           R0, [R4,#0x214]                                        ; +0x3e, 0x77530a\nCBZ             R0, loc_77532E                                         ; +0x42, 0x77530e\nLDR.W           R1, [R4,#0x230]                                        ; +0x44, 0x775310\nLDR             R3, [R0]                                               ; +0x48, 0x775314\nCMP             R1, #1                                                 ; +0x4a, 0x775316\nLDR.W           R3, [R3,#0xAC]                                         ; +0x4c, 0x775318\nBEQ             loc_77532C                                             ; +0x50, 0x77531c\nCMP             R1, #2                                                 ; +0x52, 0x77531e\nITET EQ                                                                ; +0x54, 0x775320\nLDRBEQ.W        R1, [R4,#0x2C2]                                        ; +0x56, 0x775322\nMOVNE           R1, #0                                                 ; +0x5a, 0x775326\nEOREQ.W         R1, R1, #1                                             ; +0x5c, 0x775328\nBLX             R3                                                     ; +0x60, 0x77532c\nLDR.W           R0, [R4,#0x25C]                                        ; +0x62, 0x77532e\nCBZ             R0, loc_775346                                         ; +0x66, 0x775332\nLDR.W           R1, [R4,#0x230]                                        ; +0x68, 0x775334\nLDR             R3, [R0]                                               ; +0x6c, 0x775338\nSUBS            R7, R1, #1                                             ; +0x6e, 0x77533a\nNEGS            R1, R7                                                 ; +0x70, 0x77533c\nLDR.W           R3, [R3,#0xAC]                                         ; +0x72, 0x77533e\nADCS            R1, R7                                                 ; +0x76, 0x775342\nBLX             R3                                                     ; +0x78, 0x775344\nLDR.W           R0, [R4,#0x22C]                                        ; +0x7a, 0x775346\nCBZ             R0, loc_77535E                                         ; +0x7e, 0x77534a\nLDR.W           R1, [R4,#0x230]                                        ; +0x80, 0x77534c\nLDR             R3, [R0]                                               ; +0x84, 0x775350\nSUBS            R2, R1, #3                                             ; +0x86, 0x775352\nNEGS            R1, R2                                                 ; +0x88, 0x775354\nLDR.W           R3, [R3,#0xAC]                                         ; +0x8a, 0x775356\nADCS            R1, R2                                                 ; +0x8e, 0x77535a\nBLX             R3                                                     ; +0x90, 0x77535c\nLDR.W           R0, [R4,#0x264]                                        ; +0x92, 0x77535e\nCBZ             R0, loc_775378                                         ; +0x96, 0x775362\nLDR.W           R1, [R4,#0x230]                                        ; +0x98, 0x775364\nLDR             R3, [R0]                                               ; +0x9c, 0x775368\nADDS.W          R1, R1, #0xFFFFFFFF                                    ; +0x9e, 0x77536a\nLDR.W           R3, [R3,#0xAC]                                         ; +0xa2, 0x77536e\nIT NE                                                                  ; +0xa6, 0x775372\nMOVNE           R1, #1                                                 ; +0xa8, 0x775374\nBLX             R3                                                     ; +0xaa, 0x775376\nLDR.W           R0, [R4,#0x260]                                        ; +0xac, 0x775378\nCMP             R0, #0                                                 ; +0xb0, 0x77537c\nBEQ             loc_775406                                             ; +0xb2, 0x77537e\nLDR.W           R1, [R4,#0x230]                                        ; +0xb4, 0x775380\nLDR             R3, [R0]                                               ; +0xb8, 0x775384\nADDS.W          R1, R1, #0xFFFFFFFF                                    ; +0xba, 0x775386\nLDR.W           R3, [R3,#0xAC]                                         ; +0xbe, 0x77538a\nIT NE                                                                  ; +0xc2, 0x77538e\nMOVNE           R1, #1                                                 ; +0xc4, 0x775390\nBLX             R3                                                     ; +0xc6, 0x775392\nLDR.W           R0, [R4,#0x260]                                        ; +0xc8, 0x775394\nLDR             R3, [R0]                                               ; +0xcc, 0x775398\nLDR.W           R2, [R3,#0x1D0]                                        ; +0xce, 0x77539a\nCBNZ            R6, loc_7753B4                                         ; +0xd2, 0x77539e\nLDR.W           R3, [R4,#0x230]                                        ; +0xd4, 0x7753a0\nCBZ             R3, loc_7753BA                                         ; +0xd8, 0x7753a4\nCMP             R3, #1                                                 ; +0xda, 0x7753a6\nBEQ             loc_7753C0                                             ; +0xdc, 0x7753a8\nCMP             R3, #2                                                 ; +0xde, 0x7753aa\nBEQ             loc_7753C6                                             ; +0xe0, 0x7753ac\nLDR             R1, =(aProgression - 0x7753B4); \"Progression\"          ; +0xe2, 0x7753ae\nADD             R1, PC; \"Progression\"                                  ; +0xe4, 0x7753b0\nB               loc_7753CA                                             ; +0xe6, 0x7753b2\nLDR             R1, =(aAttemptProgres - 0x7753BA); \"Attempt Progress\"  ; +0xe8, 0x7753b4\nADD             R1, PC; \"Attempt Progress\"                             ; +0xea, 0x7753b6\nB               loc_7753CA                                             ; +0xec, 0x7753b8\nLDR             R1, =(aDeathDistribut - 0x7753C0); \"Death Distribution\" ; +0xee, 0x7753ba\nADD             R1, PC; \"Death Distribution\"                           ; +0xf0, 0x7753bc\nB               loc_7753CA                                             ; +0xf2, 0x7753be\nLDR             R1, =(aDeathList - 0x7753C6); \"Death List\"             ; +0xf4, 0x7753c0\nADD             R1, PC; \"Death List\"                                   ; +0xf6, 0x7753c2\nB               loc_7753CA                                             ; +0xf8, 0x7753c4\nLDR             R1, =(aDeathHistory - 0x7753CC); \"Death History\"       ; +0xfa, 0x7753c6\nADD             R1, PC; \"Death History\"                                ; +0xfc, 0x7753c8\nBLX             R2                                                     ; +0xfe, 0x7753ca\nLDR.W           R3, [R4,#0x230]                                        ; +0x100, 0x7753cc\nCMP             R3, #2                                                 ; +0x104, 0x7753d0\nBNE             loc_77543E                                             ; +0x106, 0x7753d2\nLDRB.W          R3, [R4,#0x2C2]                                        ; +0x108, 0x7753d4\nCBNZ            R3, loc_77543E                                         ; +0x10c, 0x7753d8\nVMOV.F32        S14, #4.0                                              ; +0x10e, 0x7753da\nVLDR            S15, [R4,#0x218]                                       ; +0x112, 0x7753de\nVSUB.F32        S15, S15, S14                                          ; +0x116, 0x7753e2\nLDR.W           R6, [R4,#0x264]                                        ; +0x11a, 0x7753e6\nCBZ             R6, loc_775406                                         ; +0x11e, 0x7753ea\nLDR             R3, [R6]                                               ; +0x120, 0x7753ec\nADD             R7, SP, #0x10+var_C                                    ; +0x122, 0x7753ee\nVMOV            R1, S15; float                                         ; +0x124, 0x7753f0\nMOV             R0, R7; this                                           ; +0x128, 0x7753f4\nLDR             R2, flt_775470; float                                  ; +0x12a, 0x7753f6\nLDR.W           R8, [R3,#0xA0]                                         ; +0x12c, 0x7753f8\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x130, 0x7753fc\nMOV             R0, R6                                                 ; +0x134, 0x775400\nMOV             R1, R7                                                 ; +0x136, 0x775402\nBLX             R8                                                     ; +0x138, 0x775404\nLDR.W           R3, [R4,#0x230]                                        ; +0x13a, 0x775406\nCMP             R3, #1                                                 ; +0x13e, 0x77540a\nBNE             loc_775416                                             ; +0x140, 0x77540c\nMOV             R0, R4; this                                           ; +0x142, 0x77540e\nBL              _ZN17DeathTrackerPopup9buildListEv; DeathTrackerPopup::buildList(void) ; +0x144, 0x775410\nB               loc_77542C                                             ; +0x148, 0x775414\nCMP             R3, #2                                                 ; +0x14a, 0x775416\nBNE             loc_77542C                                             ; +0x14c, 0x775418\nLDRB.W          R3, [R4,#0x2C2]                                        ; +0x14e, 0x77541a\nMOV             R0, R4; this                                           ; +0x152, 0x77541e\nCBZ             R3, loc_775428                                         ; +0x154, 0x775420\nBL              _ZN17DeathTrackerPopup16buildAttemptLineEv; DeathTrackerPopup::buildAttemptLine(void) ; +0x156, 0x775422\nB               loc_77542C                                             ; +0x15a, 0x775426\nBL              _ZN17DeathTrackerPopup12buildHistoryEv; DeathTrackerPopup::buildHistory(void) ; +0x15c, 0x775428\nMOV             R0, R4; this                                           ; +0x160, 0x77542c\nBL              _ZN17DeathTrackerPopup11updatePanelEv; DeathTrackerPopup::updatePanel(void) ; +0x162, 0x77542e\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x166, 0x775432\nLDR             R3, [R5]                                               ; +0x168, 0x775434\nCMP             R2, R3                                                 ; +0x16a, 0x775436\nBEQ             loc_775466                                             ; +0x16c, 0x775438\nBLX             __stack_chk_fail                                       ; +0x16e, 0x77543a\nLDR.W           R0, [R4,#0x260]                                        ; +0x172, 0x77543e\nLDR             R3, [R0]                                               ; +0x176, 0x775442\nLDR.W           R3, [R3,#0xA4]                                         ; +0x178, 0x775444\nBLX             R3                                                     ; +0x17c, 0x775448\nVLDR            S16, [R0]                                              ; +0x17e, 0x77544a\nLDR.W           R0, [R4,#0x260]                                        ; +0x182, 0x77544e\nLDR             R3, [R0]                                               ; +0x186, 0x775452\nLDR             R3, [R3,#0x54]                                         ; +0x188, 0x775454\nBLX             R3                                                     ; +0x18a, 0x775456\nVMOV.F32        S15, #22.0                                             ; +0x18c, 0x775458\nVMOV            S14, R0                                                ; +0x190, 0x77545c\nVMLA.F32        S15, S16, S14                                          ; +0x194, 0x775460\nB               loc_7753E6                                             ; +0x198, 0x775464\nADD             SP, SP, #0x10                                          ; +0x19a, 0x775466\nVPOP            {D8}                                                   ; +0x19c, 0x775468\nPOP.W           {R4-R8,PC}                                             ; +0x1a0, 0x77546c", "xrefs": ["DeathTrackerPopup::onToggleGlobal @ 0x7754fa", "DeathTrackerPopup::onPanelButton @ 0x775574", "DeathTrackerPopup::onPanelButton @ 0x7755d6", "DeathTrackerPopup::init @ 0x776816"], "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"}