{"type": "func", "start": 7807368, "end": 7807616, "name": "DeathTrackerPopup::dtScrollKey", "pseudocode": "// \n// DeathTrackerPopup::dtScrollKey from 0x772188 to 0x772280 (248 bytes)\n// \n// 3 xrefs:\n// > DeathTrackerPopup::onClose @ 0x77233a\n// > DeathTrackerPopup::refreshView @ 0x77500a\n// > DeathTrackerPopup::onToggleGlobal @ 0x7754bc\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:16 +0000\n// \n\nDeathTrackerPopup *__fastcall DeathTrackerPopup::dtScrollKey(DeathTrackerPopup *this, int a2)\n{\n  int v3; // r4\n  int v4; // r1\n  unsigned int v5; // r1\n  size_t v6; // r3\n  size_t v7; // r9\n  char *v8; // r5\n  char *v9; // r4\n  unsigned int v10; // r0\n  size_t v11; // r1\n  void *v12; // r2\n  unsigned int v14; // [sp+10h] [bp-14h] BYREF\n  size_t v15; // [sp+14h] [bp-10h]\n  void *v16; // [sp+18h] [bp-Ch]\n\n  v3 = *(_DWORD *)(a2 + 528);\n  if ( v3 )\n    v4 = *(_DWORD *)(v3 + 268) - *(_DWORD *)(v3 + 272);\n  else\n    v4 = 0;\n  GameToolbox::intToString((GameToolbox *)&v14, v4);\n  v6 = (unsigned __int8)v14;\n  if ( (v14 & 1) != 0 )\n    v5 = v14;\n  else\n    v6 = (int)(unsigned __int8)v14 >> 1;\n  if ( (v14 & 1) != 0 )\n    v6 = v15;\n  else\n    v5 = 10;\n  v7 = v6 + 7;\n  if ( (v14 & 1) != 0 )\n    v5 = (v5 & 0xFFFFFFFE) - 1;\n  if ( v5 - v6 <= 6 )\n  {\n    std::string::__grow_by_and_replace((int)&v14, v5, v7 - v5, v6, 0, 0, 7u, \"dtdist_\");\n  }\n  else\n  {\n    if ( (v14 & 1) != 0 )\n      v8 = (char *)v16;\n    else\n      v8 = (char *)&v14 + 1;\n    if ( v6 )\n    {\n      v9 = \"dtdist_\";\n      if ( v8 <= \"dtdist_\" && &v8[v6] > \"dtdist_\" )\n        v9 = \"\";\n      memmove(v8 + 7, v8, v6);\n    }\n    else\n    {\n      v9 = \"dtdist_\";\n    }\n    *(_DWORD *)v8 = *(_DWORD *)v9;\n    *((_WORD *)v8 + 2) = *((_WORD *)v9 + 2);\n    v8[6] = v9[6];\n    if ( (v14 & 1) != 0 )\n      v15 = v7;\n    else\n      LOBYTE(v14) = 2 * v7;\n    v8[v7] = 0;\n  }\n  v10 = v14;\n  v11 = v15;\n  v12 = v16;\n  v14 = 0;\n  v15 = 0;\n  v16 = nullptr;\n  *(_DWORD *)this = v10;\n  *((_DWORD *)this + 1) = v11;\n  *((_DWORD *)this + 2) = v12;\n  std::string::~string((int)&v14);\n  return this;\n}", "assembly": "; \n; DeathTrackerPopup::dtScrollKey from 0x772188 to 0x772280 (248 bytes)\n; \n; 3 xrefs:\n; > DeathTrackerPopup::onClose @ 0x77233a\n; > DeathTrackerPopup::refreshView @ 0x77500a\n; > DeathTrackerPopup::onToggleGlobal @ 0x7754bc\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:16 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x772188\nSUB             SP, SP, #0x24                                          ; +0x4, 0x77218c\nLDR             R6, =(__stack_chk_guard_ptr - 0x77219A)                ; +0x6, 0x77218e\nMOV             R7, R0                                                 ; +0x8, 0x772190\nLDR.W           R4, [R1,#0x210]                                        ; +0xa, 0x772192\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x772196\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x772198\nLDR             R3, [R6]                                               ; +0x12, 0x77219a\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x14, 0x77219c\nCBZ             R4, loc_7721AC                                         ; +0x16, 0x77219e\nLDR.W           R1, [R4,#0x10C]                                        ; +0x18, 0x7721a0\nLDR.W           R3, [R4,#0x110]                                        ; +0x1c, 0x7721a4\nSUBS            R1, R1, R3                                             ; +0x20, 0x7721a8\nB               loc_7721AE                                             ; +0x22, 0x7721aa\nMOV             R1, R4; int                                            ; +0x24, 0x7721ac\nADD.W           R8, SP, #0x24+var_14                                   ; +0x26, 0x7721ae\nMOV             R0, R8; this                                           ; +0x2a, 0x7721b2\nBL              _ZN11GameToolbox11intToStringEi; GameToolbox::intToString(int) ; +0x2c, 0x7721b4\nLDRB.W          R3, [SP,#0x24+var_14]                                  ; +0x30, 0x7721b8\nANDS.W          R2, R3, #1                                             ; +0x34, 0x7721bc\nITETE EQ                                                               ; +0x38, 0x7721c0\nASREQ           R3, R3, #1                                             ; +0x3a, 0x7721c2\nLDRNE           R1, [SP,#0x24+var_14]                                  ; +0x3c, 0x7721c4\nMOVEQ           R1, #0xA                                               ; +0x3e, 0x7721c6\nLDRNE           R3, [SP,#0x24+var_10]                                  ; +0x40, 0x7721c8\nADD.W           R9, R3, #7                                             ; +0x42, 0x7721ca\nITT NE                                                                 ; +0x46, 0x7721ce\nBICNE.W         R1, R1, #1                                             ; +0x48, 0x7721d0\nADDNE.W         R1, R1, #0xFFFFFFFF                                    ; +0x4c, 0x7721d4\nSUBS            R0, R1, R3                                             ; +0x50, 0x7721d8\nCMP             R0, #6                                                 ; +0x52, 0x7721da\nBLS             loc_772232                                             ; +0x54, 0x7721dc\nCBZ             R2, loc_7721E4                                         ; +0x56, 0x7721de\nLDR             R5, [SP,#0x24+var_C]                                   ; +0x58, 0x7721e0\nB               loc_7721E8                                             ; +0x5a, 0x7721e2\nADD.W           R5, SP, #0x24+var_14+1                                 ; +0x5c, 0x7721e4\nCBZ             R3, loc_772206                                         ; +0x60, 0x7721e8\nLDR             R4, =(aDtdist - 0x7721F0); \"dtdist_\"                   ; +0x62, 0x7721ea\nADD             R4, PC; \"dtdist_\"                                      ; +0x64, 0x7721ec\nCMP             R5, R4                                                 ; +0x66, 0x7721ee\nBHI             loc_7721FA                                             ; +0x68, 0x7721f0\nADDS            R2, R5, R3                                             ; +0x6a, 0x7721f2\nCMP             R2, R4                                                 ; +0x6c, 0x7721f4\nIT HI                                                                  ; +0x6e, 0x7721f6\nADDHI           R4, #(aDtdist+7 - 0xBE2988); \"\"                        ; +0x70, 0x7721f8\nADDS            R0, R5, #7; void *                                     ; +0x72, 0x7721fa\nMOV             R1, R5; void *                                         ; +0x74, 0x7721fc\nMOV             R2, R3; size_t                                         ; +0x76, 0x7721fe\nBLX             memmove                                                ; +0x78, 0x772200\nB               loc_77220A                                             ; +0x7c, 0x772204\nLDR             R4, =(aDtdist - 0x77220C); \"dtdist_\"                   ; +0x7e, 0x772206\nADD             R4, PC; \"dtdist_\"                                      ; +0x80, 0x772208\nLDR             R3, [R4]; \"dtdist_\"                                    ; +0x82, 0x77220a\nSTR             R3, [R5]                                               ; +0x84, 0x77220c\nLDRH            R3, [R4,#4]; \"st_\" ...                                 ; +0x86, 0x77220e\nSTRH            R3, [R5,#4]                                            ; +0x88, 0x772210\nLDRB            R3, [R4,#6]; \"_\" ...                                   ; +0x8a, 0x772212\nSTRB            R3, [R5,#6]                                            ; +0x8c, 0x772214\nLDRB.W          R3, [SP,#0x24+var_14]                                  ; +0x8e, 0x772216\nLSLS            R3, R3, #0x1F                                          ; +0x92, 0x77221a\nITEE MI                                                                ; +0x94, 0x77221c\nSTRMI.W         R9, [SP,#0x24+var_10]                                  ; +0x96, 0x77221e\nMOVPL.W         R3, R9,LSL#1                                           ; +0x9a, 0x772222\nSTRBPL.W        R3, [SP,#0x24+var_14]                                  ; +0x9e, 0x772226\nMOVS            R3, #0                                                 ; +0xa2, 0x77222a\nSTRB.W          R3, [R5,R9]                                            ; +0xa4, 0x77222c\nB               loc_77224C                                             ; +0xa8, 0x772230\nMOVS            R2, #0                                                 ; +0xaa, 0x772232\nSTR             R2, [SP,#0x24+var_24]                                  ; +0xac, 0x772234\nSTR             R2, [SP,#0x24+var_20]                                  ; +0xae, 0x772236\nMOVS            R2, #7                                                 ; +0xb0, 0x772238\nSTR             R2, [SP,#0x24+var_1C]                                  ; +0xb2, 0x77223a\nMOV             R0, R8                                                 ; +0xb4, 0x77223c\nLDR             R2, =(aDtdist - 0x772244); \"dtdist_\"                   ; +0xb6, 0x77223e\nADD             R2, PC; \"dtdist_\"                                      ; +0xb8, 0x772240\nSTR             R2, [SP,#0x24+var_18]                                  ; +0xba, 0x772242\nRSB.W           R2, R1, R9                                             ; +0xbc, 0x772244\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE21__grow_by_and_replaceEjjjjjjPKc; std::string::__grow_by_and_replace(uint,uint,uint,uint,uint,uint,char const*) ; +0xc0, 0x772248\nLDM.W           R8, {R0-R2}                                            ; +0xc4, 0x77224c\nMOVS            R3, #0                                                 ; +0xc8, 0x772250\nSTR             R3, [SP,#0x24+var_14]                                  ; +0xca, 0x772252\nSTR             R3, [SP,#0x24+var_10]                                  ; +0xcc, 0x772254\nSTR             R3, [SP,#0x24+var_C]                                   ; +0xce, 0x772256\nSTM.W           R7, {R0-R2}                                            ; +0xd0, 0x772258\nMOV             R0, R8                                                 ; +0xd4, 0x77225c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd6, 0x77225e\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xda, 0x772262\nLDR             R3, [R6]                                               ; +0xdc, 0x772264\nMOV             R0, R7                                                 ; +0xde, 0x772266\nCMP             R2, R3                                                 ; +0xe0, 0x772268\nBEQ             loc_77227A                                             ; +0xe2, 0x77226a\nBLX             __stack_chk_fail                                       ; +0xe4, 0x77226c\nMOV             R0, R8                                                 ; +0xe8, 0x772270\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xea, 0x772272\nBL              __cxa_end_cleanup                                      ; +0xee, 0x772276\nADD             SP, SP, #0x24 ; '$'                                    ; +0xf2, 0x77227a\nPOP.W           {R4-R9,PC}                                             ; +0xf4, 0x77227c", "xrefs": ["DeathTrackerPopup::onClose @ 0x77233a", "DeathTrackerPopup::refreshView @ 0x77500a", "DeathTrackerPopup::onToggleGlobal @ 0x7754bc"], "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"}