{"type": "func", "start": 7808400, "end": 7808902, "name": "DeathTrackerPopup::buildAttemptLine", "pseudocode": "// \n// DeathTrackerPopup::buildAttemptLine from 0x772590 to 0x772786 (502 bytes)\n// \n// 2 xrefs:\n// > DeathTrackerPopup::refreshView @ 0x774f18\n// > DeathTrackerPopup::setView @ 0x775422\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:17 +0000\n// \n\nchar **__fastcall DeathTrackerPopup::buildAttemptLine(DeathTrackerPopup *this)\n{\n  int v2; // r5\n  int v3; // r8\n  int v4; // r0\n  unsigned int i; // r9\n  int v6; // r3\n  int v7; // r5\n  int v8; // r0\n  unsigned int v9; // r3\n  int v10; // r1\n  int v11; // r5\n  int v12; // r2\n  int j; // r3\n  int v14; // r0\n  int v15; // r0\n  int v17; // [sp+4h] [bp-38h]\n  int v18; // [sp+14h] [bp-28h]\n  char *v19; // [sp+1Ch] [bp-20h] BYREF\n  char *v20; // [sp+20h] [bp-1Ch]\n  char *v21; // [sp+24h] [bp-18h]\n  char *v22; // [sp+28h] [bp-14h] BYREF\n  char *v23; // [sp+2Ch] [bp-10h]\n  int v24; // [sp+30h] [bp-Ch]\n\n  v19 = nullptr;\n  v20 = nullptr;\n  v21 = nullptr;\n  if ( *((_BYTE *)this + 564) )\n  {\n    v2 = 954437177 * ((*((_DWORD *)this + 146) - *((_DWORD *)this + 145)) >> 2) - 1;\n    v3 = 36 * v2;\n    while ( v2 >= 0 )\n    {\n      v4 = *((_DWORD *)this + 145);\n      v22 = nullptr;\n      v23 = nullptr;\n      v24 = 0;\n      GJGameLevel::dtExpandOrder((unsigned __int8 *)(v4 + v3 + 4), (int)&v22);\n      for ( i = 0; i < (v23 - v22) >> 2; ++i )\n      {\n        if ( v20 == v21 )\n        {\n          std::vector<int>::__push_back_slow_path<int const&>((int)&v19, &v22[4 * i]);\n        }\n        else\n        {\n          if ( v20 )\n            *(_DWORD *)v20 = *(_DWORD *)&v22[4 * i];\n          v20 += 4;\n        }\n      }\n      --v2;\n      std::__vector_base<int>::~__vector_base(&v22);\n      v3 -= 36;\n    }\n  }\n  else\n  {\n    v6 = *((_DWORD *)this + 142);\n    if ( v6 >= 0 )\n    {\n      v8 = *((_DWORD *)this + 145);\n      if ( v6 < 954437177 * ((*((_DWORD *)this + 146) - v8) >> 2) )\n        GJGameLevel::dtExpandOrder((unsigned __int8 *)(v8 + 36 * v6 + 4), (int)&v19);\n    }\n  }\n  v22 = nullptr;\n  v7 = (v20 - v19) >> 2;\n  v23 = nullptr;\n  v24 = 0;\n  if ( v7 )\n  {\n    std::vector<int>::allocate(&v22, (v20 - v19) >> 2);\n    do\n    {\n      if ( v23 )\n        *(_DWORD *)v23 = 0;\n      --v7;\n      v23 += 4;\n    }\n    while ( v7 );\n  }\n  v9 = 0;\n  v10 = 0;\n  while ( v9 < (v20 - v19) >> 2 )\n  {\n    if ( v10 < *(_DWORD *)&v19[4 * v9] )\n      v10 = *(_DWORD *)&v19[4 * v9];\n    *(_DWORD *)&v22[4 * v9++] = v10;\n  }\n  v11 = *((unsigned __int8 *)this + 564);\n  if ( *((_BYTE *)this + 564) )\n  {\n    v11 = 0;\n    LOWORD(v18) = -5351;\n    BYTE2(v18) = 45;\n  }\n  else\n  {\n    v12 = *((_DWORD *)this + 146);\n    LOWORD(v18) = -12801;\n    BYTE2(v18) = *((_BYTE *)this + 564);\n    for ( j = 954437177 * ((v12 - *((_DWORD *)this + 145)) >> 2) - 1; j > *((_DWORD *)this + 142); --j )\n    {\n      v14 = *(_DWORD *)(v12 - 4);\n      v12 -= 36;\n      if ( v11 < v14 )\n        v11 = v14;\n    }\n  }\n  v15 = *((_DWORD *)this + 138);\n  if ( v15 )\n  {\n    LOWORD(v17) = -5351;\n    BYTE2(v17) = 45;\n    DeathHistogram::setAttemptLine(v15, (int *)&v19, (int *)&v22, v18, v11, v17, *((_BYTE *)this + 577));\n  }\n  std::__vector_base<int>::~__vector_base(&v22);\n  return std::__vector_base<int>::~__vector_base(&v19);\n}", "assembly": "; \n; DeathTrackerPopup::buildAttemptLine from 0x772590 to 0x772786 (502 bytes)\n; \n; 2 xrefs:\n; > DeathTrackerPopup::refreshView @ 0x774f18\n; > DeathTrackerPopup::setView @ 0x775422\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:17 +0000\n; \nPUSH.W          {R4-R11,LR}                                            ; +0x0, 0x772590\nSUB             SP, SP, #0x3C                                          ; +0x4, 0x772594\nLDR             R6, =(__stack_chk_guard_ptr - 0x7725A2)                ; +0x6, 0x772596\nMOVS            R2, #0                                                 ; +0x8, 0x772598\nMOV             R4, R0                                                 ; +0xa, 0x77259a\nSTR             R2, [SP,#0x3C+var_20]                                  ; +0xc, 0x77259c\nADD             R6, PC; __stack_chk_guard_ptr                          ; +0xe, 0x77259e\nLDR             R6, [R6]; __stack_chk_guard                            ; +0x10, 0x7725a0\nSTR             R2, [SP,#0x3C+var_1C]                                  ; +0x12, 0x7725a2\nSTR             R2, [SP,#0x3C+var_18]                                  ; +0x14, 0x7725a4\nLDR             R3, [R6]                                               ; +0x16, 0x7725a6\nSTR             R3, [SP,#0x3C+var_8]                                   ; +0x18, 0x7725a8\nLDRB.W          R3, [R0,#0x234]                                        ; +0x1a, 0x7725aa\nCMP             R3, #0                                                 ; +0x1e, 0x7725ae\nBEQ             loc_772634                                             ; +0x20, 0x7725b0\nLDR.W           R1, [R0,#0x244]                                        ; +0x22, 0x7725b2\nMOV.W           R8, #0x24 ; '$'                                        ; +0x26, 0x7725b6\nLDR.W           R3, [R0,#0x248]                                        ; +0x2a, 0x7725ba\nADD.W           R11, SP, #0x3C+var_20                                  ; +0x2e, 0x7725be\nMOV             R7, R2                                                 ; +0x32, 0x7725c2\nSUBS            R3, R3, R1                                             ; +0x34, 0x7725c4\nLDR             R1, =0x38E38E39                                        ; +0x36, 0x7725c6\nASRS            R3, R3, #2                                             ; +0x38, 0x7725c8\nMULS            R3, R1                                                 ; +0x3a, 0x7725ca\nSUBS            R5, R3, #1                                             ; +0x3c, 0x7725cc\nMUL             R8, R8, R5                                             ; +0x3e, 0x7725ce\nCMP             R5, #0                                                 ; +0x42, 0x7725d2\nBLT             loc_77263C                                             ; +0x44, 0x7725d4\nLDR.W           R0, [R4,#0x244]                                        ; +0x46, 0x7725d6\nADD.W           R10, SP, #0x3C+var_14                                  ; +0x4a, 0x7725da\nSTR             R7, [SP,#0x3C+var_14]                                  ; +0x4e, 0x7725de\nADD             R0, R8                                                 ; +0x50, 0x7725e0\nMOV             R1, R10                                                ; +0x52, 0x7725e2\nADDS            R0, #4                                                 ; +0x54, 0x7725e4\nSTR             R7, [SP,#0x3C+var_10]                                  ; +0x56, 0x7725e6\nSTR             R7, [SP,#0x3C+var_C]                                   ; +0x58, 0x7725e8\nBL              _ZN11GJGameLevel13dtExpandOrderERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERNS0_6vectorIiNS4_IiEEEE; GJGameLevel::dtExpandOrder(std::string const&,std::vector<int> &) ; +0x5a, 0x7725ea\nMOV.W           R9, #0                                                 ; +0x5e, 0x7725ee\nLDR             R2, [SP,#0x3C+var_14]                                  ; +0x62, 0x7725f2\nLDR             R3, [SP,#0x3C+var_10]                                  ; +0x64, 0x7725f4\nSUBS            R3, R3, R2                                             ; +0x66, 0x7725f6\nCMP.W           R9, R3,ASR#2                                           ; +0x68, 0x7725f8\nBCS             loc_772626                                             ; +0x6c, 0x7725fc\nLDR             R3, [SP,#0x3C+var_1C]                                  ; +0x6e, 0x7725fe\nADD.W           R1, R2, R9,LSL#2                                       ; +0x70, 0x772600\nLDR             R0, [SP,#0x3C+var_18]                                  ; +0x74, 0x772604\nCMP             R3, R0                                                 ; +0x76, 0x772606\nBEQ             loc_77261A                                             ; +0x78, 0x772608\nLDR.W           R2, [R2,R9,LSL#2]                                      ; +0x7a, 0x77260a\nCBZ             R3, loc_772612                                         ; +0x7e, 0x77260e\nSTR             R2, [R3]                                               ; +0x80, 0x772610\nLDR             R3, [SP,#0x3C+var_1C]                                  ; +0x82, 0x772612\nADDS            R3, #4                                                 ; +0x84, 0x772614\nSTR             R3, [SP,#0x3C+var_1C]                                  ; +0x86, 0x772616\nB               loc_772620                                             ; +0x88, 0x772618\nMOV             R0, R11                                                ; +0x8a, 0x77261a\nBL              _ZNSt6__ndk16vectorIiNS_9allocatorIiEEE21__push_back_slow_pathIRKiEEvOT_; std::vector<int>::__push_back_slow_path<int const&>(int const&) ; +0x8c, 0x77261c\nADD.W           R9, R9, #1                                             ; +0x90, 0x772620\nB               loc_7725F2                                             ; +0x94, 0x772624\nMOV             R0, R10                                                ; +0x96, 0x772626\nSUBS            R5, #1                                                 ; +0x98, 0x772628\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x9a, 0x77262a\nSUB.W           R8, R8, #0x24 ; '$'                                    ; +0x9e, 0x77262e\nB               loc_7725D2                                             ; +0xa2, 0x772632\nLDR.W           R3, [R0,#0x238]                                        ; +0xa4, 0x772634\nCMP             R3, #0                                                 ; +0xa8, 0x772638\nBGE             loc_772650                                             ; +0xaa, 0x77263a\nLDR             R3, [SP,#0x3C+var_20]                                  ; +0xac, 0x77263c\nLDR             R5, [SP,#0x3C+var_1C]                                  ; +0xae, 0x77263e\nSUBS            R5, R5, R3                                             ; +0xb0, 0x772640\nMOVS            R3, #0                                                 ; +0xb2, 0x772642\nSTR             R3, [SP,#0x3C+var_14]                                  ; +0xb4, 0x772644\nASRS            R5, R5, #2                                             ; +0xb6, 0x772646\nSTR             R3, [SP,#0x3C+var_10]                                  ; +0xb8, 0x772648\nSTR             R3, [SP,#0x3C+var_C]                                   ; +0xba, 0x77264a\nBEQ             loc_772686                                             ; +0xbc, 0x77264c\nB               loc_772668                                             ; +0xbe, 0x77264e\nLDR.W           R0, [R0,#0x244]                                        ; +0xc0, 0x772650\nLDR.W           R2, [R4,#0x248]                                        ; +0xc4, 0x772654\nLDR             R1, =0x38E38E39                                        ; +0xc8, 0x772658\nSUBS            R2, R2, R0                                             ; +0xca, 0x77265a\nASRS            R2, R2, #2                                             ; +0xcc, 0x77265c\nMULS            R2, R1                                                 ; +0xce, 0x77265e\nCMP             R3, R2                                                 ; +0xd0, 0x772660\nBLT.W           loc_772770                                             ; +0xd2, 0x772662\nB               loc_77263C                                             ; +0xd6, 0x772666\nADD             R7, SP, #0x3C+var_14                                   ; +0xd8, 0x772668\nMOV             R1, R5                                                 ; +0xda, 0x77266a\nMOV             R0, R7                                                 ; +0xdc, 0x77266c\nBL              _ZNSt6__ndk16vectorIiNS_9allocatorIiEEE8allocateEj; std::vector<int>::allocate(uint) ; +0xde, 0x77266e\nMOVS            R2, #0                                                 ; +0xe2, 0x772672\nLDR             R3, [SP,#0x3C+var_10]                                  ; +0xe4, 0x772674\nCBZ             R3, loc_77267A                                         ; +0xe6, 0x772676\nSTR             R2, [R3]                                               ; +0xe8, 0x772678\nLDR             R3, [SP,#0x3C+var_10]                                  ; +0xea, 0x77267a\nSUBS            R5, #1                                                 ; +0xec, 0x77267c\nADD.W           R3, R3, #4                                             ; +0xee, 0x77267e\nSTR             R3, [SP,#0x3C+var_10]                                  ; +0xf2, 0x772682\nBNE             loc_772674                                             ; +0xf4, 0x772684\nMOVS            R3, #0                                                 ; +0xf6, 0x772686\nMOV             R1, R3                                                 ; +0xf8, 0x772688\nB               loc_77268E                                             ; +0xfa, 0x77268a\nB               loc_77275E                                             ; +0xfc, 0x77268c\nLDR             R0, [SP,#0x3C+var_20]                                  ; +0xfe, 0x77268e\nLDR             R2, [SP,#0x3C+var_1C]                                  ; +0x100, 0x772690\nSUBS            R2, R2, R0                                             ; +0x102, 0x772692\nCMP.W           R3, R2,ASR#2                                           ; +0x104, 0x772694\nBCS             loc_7726AE                                             ; +0x108, 0x772698\nLDR.W           R2, [R0,R3,LSL#2]                                      ; +0x10a, 0x77269a\nCMP             R1, R2                                                 ; +0x10e, 0x77269e\nIT LT                                                                  ; +0x110, 0x7726a0\nMOVLT           R1, R2                                                 ; +0x112, 0x7726a2\nLDR             R2, [SP,#0x3C+var_14]                                  ; +0x114, 0x7726a4\nSTR.W           R1, [R2,R3,LSL#2]                                      ; +0x116, 0x7726a6\nADDS            R3, #1                                                 ; +0x11a, 0x7726aa\nB               loc_77268E                                             ; +0x11c, 0x7726ac\nLDRB.W          R5, [R4,#0x234]                                        ; +0x11e, 0x7726ae\nCBZ             R5, loc_7726CA                                         ; +0x122, 0x7726b2\nMOVS            R3, #0x19                                              ; +0x124, 0x7726b4\nMOVS            R5, #0                                                 ; +0x126, 0x7726b6\nSTRB.W          R3, [SP,#0x3C+var_28]                                  ; +0x128, 0x7726b8\nMOVS            R3, #0xEB                                              ; +0x12c, 0x7726bc\nSTRB.W          R3, [SP,#0x3C+var_28+1]                                ; +0x12e, 0x7726be\nMOVS            R3, #0x2D ; '-'                                        ; +0x132, 0x7726c2\nSTRB.W          R3, [SP,#0x3C+var_28+2]                                ; +0x134, 0x7726c4\nB               loc_772704                                             ; +0x138, 0x7726c8\nLDR.W           R2, [R4,#0x248]                                        ; +0x13a, 0x7726ca\nMOVS            R3, #0xFF                                              ; +0x13e, 0x7726ce\nLDR.W           R1, [R4,#0x244]                                        ; +0x140, 0x7726d0\nSTRB.W          R3, [SP,#0x3C+var_28]                                  ; +0x144, 0x7726d4\nMOVS            R3, #0xCD                                              ; +0x148, 0x7726d8\nSUBS            R1, R2, R1                                             ; +0x14a, 0x7726da\nSTRB.W          R3, [SP,#0x3C+var_28+1]                                ; +0x14c, 0x7726dc\nLDR             R3, =0x38E38E39                                        ; +0x150, 0x7726e0\nASRS            R1, R1, #2                                             ; +0x152, 0x7726e2\nSTRB.W          R5, [SP,#0x3C+var_28+2]                                ; +0x154, 0x7726e4\nMULS            R3, R1                                                 ; +0x158, 0x7726e8\nLDR.W           R1, [R4,#0x238]                                        ; +0x15a, 0x7726ea\nSUBS            R3, #1                                                 ; +0x15e, 0x7726ee\nCMP             R3, R1                                                 ; +0x160, 0x7726f0\nBLE             loc_772704                                             ; +0x162, 0x7726f2\nLDR.W           R0, [R2,#-4]                                           ; +0x164, 0x7726f4\nSUBS            R3, #1                                                 ; +0x168, 0x7726f8\nSUBS            R2, #0x24 ; '$'                                        ; +0x16a, 0x7726fa\nCMP             R5, R0                                                 ; +0x16c, 0x7726fc\nIT LT                                                                  ; +0x16e, 0x7726fe\nMOVLT           R5, R0                                                 ; +0x170, 0x772700\nB               loc_7726F0                                             ; +0x172, 0x772702\nLDR.W           R0, [R4,#0x228]                                        ; +0x174, 0x772704\nADD             R7, SP, #0x3C+var_14                                   ; +0x178, 0x772708\nADD.W           R8, SP, #0x3C+var_20                                   ; +0x17a, 0x77270a\nCBNZ            R0, loc_772728                                         ; +0x17e, 0x77270e\nMOV             R0, R7                                                 ; +0x180, 0x772710\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x182, 0x772712\nMOV             R0, R8                                                 ; +0x186, 0x772716\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x188, 0x772718\nLDR             R2, [SP,#0x3C+var_8]                                   ; +0x18c, 0x77271c\nLDR             R3, [R6]                                               ; +0x18e, 0x77271e\nCMP             R2, R3                                                 ; +0x190, 0x772720\nBEQ             loc_772780                                             ; +0x192, 0x772722\nBLX             __stack_chk_fail                                       ; +0x194, 0x772724\nMOVS            R3, #0x19                                              ; +0x198, 0x772728\nSTRB.W          R3, [SP,#0x3C+var_24]                                  ; +0x19a, 0x77272a\nMOVS            R3, #0xEB                                              ; +0x19e, 0x77272e\nSTRB.W          R3, [SP,#0x3C+var_24+1]                                ; +0x1a0, 0x772730\nMOVS            R3, #0x2D ; '-'                                        ; +0x1a4, 0x772734\nSTRB.W          R3, [SP,#0x3C+var_24+2]                                ; +0x1a6, 0x772736\nLDR             R3, [SP,#0x3C+var_24]                                  ; +0x1aa, 0x77273a\nMOV             R1, R8                                                 ; +0x1ac, 0x77273c\nSTR             R5, [SP,#0x3C+var_3C]                                  ; +0x1ae, 0x77273e\nMOV             R2, R7                                                 ; +0x1b0, 0x772740\nSTRH.W          R3, [SP,#0x3C+var_38]                                  ; +0x1b2, 0x772742\nLSRS            R3, R3, #0x10                                          ; +0x1b6, 0x772746\nSTRB.W          R3, [SP,#0x3C+var_36]                                  ; +0x1b8, 0x772748\nLDRB.W          R3, [R4,#0x241]                                        ; +0x1bc, 0x77274c\nSTR             R3, [SP,#0x3C+var_34]                                  ; +0x1c0, 0x772750\nLDR             R3, [SP,#0x3C+var_28]                                  ; +0x1c2, 0x772752\nBL              _ZN14DeathHistogram14setAttemptLineERKNSt6__ndk16vectorIiNS0_9allocatorIiEEEES6_N7cocos2d10_ccColor3BEiS8_b; DeathHistogram::setAttemptLine(std::vector<int> const&,std::vector<int> const&,cocos2d::_ccColor3B,int,cocos2d::_ccColor3B,bool) ; +0x1c4, 0x772754\nB               loc_772710                                             ; +0x1c8, 0x772758\nMOV             R0, R10                                                ; +0x1ca, 0x77275a\nB               loc_772760                                             ; +0x1cc, 0x77275c\nMOV             R0, R7                                                 ; +0x1ce, 0x77275e\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x1d0, 0x772760\nB               loc_772766                                             ; +0x1d4, 0x772764\nADD             R0, SP, #0x3C+var_20                                   ; +0x1d6, 0x772766\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x1d8, 0x772768\nBL              __cxa_end_cleanup                                      ; +0x1dc, 0x77276c\nMOVS            R2, #0x24 ; '$'                                        ; +0x1e0, 0x772770\nADD             R1, SP, #0x3C+var_20                                   ; +0x1e2, 0x772772\nMLA             R0, R2, R3, R0                                         ; +0x1e4, 0x772774\nADDS            R0, #4                                                 ; +0x1e8, 0x772778\nBL              _ZN11GJGameLevel13dtExpandOrderERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERNS0_6vectorIiNS4_IiEEEE; GJGameLevel::dtExpandOrder(std::string const&,std::vector<int> &) ; +0x1ea, 0x77277a\nB               loc_77263C                                             ; +0x1ee, 0x77277e\nADD             SP, SP, #0x3C ; '<'                                    ; +0x1f0, 0x772780\nPOP.W           {R4-R11,PC}                                            ; +0x1f2, 0x772782", "xrefs": ["DeathTrackerPopup::refreshView @ 0x774f18", "DeathTrackerPopup::setView @ 0x775422"], "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"}