{"type": "func", "start": 7820428, "end": 7820574, "name": "DeathTrackerPopup::onToggleGlobal", "pseudocode": "// \n// DeathTrackerPopup::onToggleGlobal from 0x77548c to 0x77551e (146 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::onToggleGlobal(DeathTrackerPopup *this, cocos2d::CCObject *a2)\n{\n  int v2; // r7\n  int v4; // r5\n  int v5; // r1\n  unsigned __int8 v7[12]; // [sp+0h] [bp-14h] BYREF\n\n  v2 = *((_DWORD *)this + 138);\n  if ( v2 && !*((_BYTE *)this + 664) && (*((_DWORD *)this + 140) != 2 || !*((_BYTE *)this + 706)) )\n  {\n    DeathTrackerPopup::dtScrollKey((DeathTrackerPopup *)v7, (int)this);\n    DeathHistogram::persistScroll(v2, v7);\n    std::string::~string((int)v7);\n  }\n  v4 = *((unsigned __int8 *)this + 664) ^ 1;\n  *((_BYTE *)this + 664) = v4;\n  if ( v4 )\n  {\n    v5 = 0;\n    *((_DWORD *)this + 175) = *((_DWORD *)this + 140);\n  }\n  else\n  {\n    v5 = *((_DWORD *)this + 175);\n    *((_BYTE *)this + 705) = 1;\n  }\n  *((_DWORD *)this + 140) = v5;\n  DeathTrackerPopup::setView(this, v5);\n  return DeathTrackerPopup::refreshView(this);\n}", "assembly": "; \n; DeathTrackerPopup::onToggleGlobal from 0x77548c to 0x77551e (146 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; \nLDR             R3, =(__stack_chk_guard_ptr - 0x775494)                ; +0x0, 0x77548c\nPUSH            {R4-R7,LR}                                             ; +0x2, 0x77548e\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x4, 0x775490\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x6, 0x775492\nLDR.W           R7, [R0,#0x228]                                        ; +0x8, 0x775494\nSUB             SP, SP, #0x14                                          ; +0xc, 0x775498\nLDR             R2, [R3]                                               ; +0xe, 0x77549a\nMOV             R4, R0                                                 ; +0x10, 0x77549c\nMOV             R6, R3                                                 ; +0x12, 0x77549e\nSTR             R2, [SP,#0x14+var_8]                                   ; +0x14, 0x7754a0\nCBZ             R7, loc_7754D0                                         ; +0x16, 0x7754a2\nLDRB.W          R3, [R0,#0x298]                                        ; +0x18, 0x7754a4\nCBNZ            R3, loc_7754D0                                         ; +0x1c, 0x7754a8\nLDR.W           R3, [R0,#0x230]                                        ; +0x1e, 0x7754aa\nCMP             R3, #2                                                 ; +0x22, 0x7754ae\nBNE             loc_7754B8                                             ; +0x24, 0x7754b0\nLDRB.W          R3, [R0,#0x2C2]                                        ; +0x26, 0x7754b2\nCBNZ            R3, loc_7754D0                                         ; +0x2a, 0x7754b6\nMOV             R0, SP; this                                           ; +0x2c, 0x7754b8\nMOV             R1, R4                                                 ; +0x2e, 0x7754ba\nBL              _ZN17DeathTrackerPopup11dtScrollKeyEv; DeathTrackerPopup::dtScrollKey(void) ; +0x30, 0x7754bc\nMOV             R0, R7                                                 ; +0x34, 0x7754c0\nMOV             R1, SP                                                 ; +0x36, 0x7754c2\nMOV             R5, SP                                                 ; +0x38, 0x7754c4\nBL              _ZN14DeathHistogram13persistScrollERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE; DeathHistogram::persistScroll(std::string const&) ; +0x3a, 0x7754c6\nMOV             R0, SP                                                 ; +0x3e, 0x7754ca\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x40, 0x7754cc\nLDRB.W          R5, [R4,#0x298]                                        ; +0x44, 0x7754d0\nEOR.W           R5, R5, #1                                             ; +0x48, 0x7754d4\nSTRB.W          R5, [R4,#0x298]                                        ; +0x4c, 0x7754d8\nCBZ             R5, loc_7754EA                                         ; +0x50, 0x7754dc\nLDR.W           R3, [R4,#0x230]                                        ; +0x52, 0x7754de\nMOVS            R1, #0                                                 ; +0x56, 0x7754e2\nSTR.W           R3, [R4,#0x2BC]                                        ; +0x58, 0x7754e4\nB               loc_7754F4                                             ; +0x5c, 0x7754e8\nLDR.W           R1, [R4,#0x2BC]; int                                   ; +0x5e, 0x7754ea\nMOVS            R3, #1                                                 ; +0x62, 0x7754ee\nSTRB.W          R3, [R4,#0x2C1]                                        ; +0x64, 0x7754f0\nSTR.W           R1, [R4,#0x230]                                        ; +0x68, 0x7754f4\nMOV             R0, R4; this                                           ; +0x6c, 0x7754f8\nBL              _ZN17DeathTrackerPopup7setViewEi; DeathTrackerPopup::setView(int) ; +0x6e, 0x7754fa\nMOV             R0, R4; this                                           ; +0x72, 0x7754fe\nBL              _ZN17DeathTrackerPopup11refreshViewEv; DeathTrackerPopup::refreshView(void) ; +0x74, 0x775500\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x78, 0x775504\nLDR             R3, [R6]                                               ; +0x7a, 0x775506\nCMP             R2, R3                                                 ; +0x7c, 0x775508\nBEQ             loc_77551A                                             ; +0x7e, 0x77550a\nBLX             __stack_chk_fail                                       ; +0x80, 0x77550c\nMOV             R0, R5                                                 ; +0x84, 0x775510\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x86, 0x775512\nBL              __cxa_end_cleanup                                      ; +0x8a, 0x775516\nADD             SP, SP, #0x14                                          ; +0x8e, 0x77551a\nPOP             {R4-R7,PC}                                             ; +0x90, 0x77551c", "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"}