{"type": "func", "start": 7805180, "end": 7805510, "name": "DeathTrackerPopup::parseGlobal", "pseudocode": "// \n// DeathTrackerPopup::parseGlobal from 0x7718fc to 0x771a46 (330 bytes)\n// \n// 1 xrefs:\n// > DeathTrackerPopup::init @ 0x775a5e\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\nGameLevelManager *__fastcall DeathTrackerPopup::parseGlobal(void **this)\n{\n  GameLevelManager *result; // r0\n  int v3; // r3\n  int v4; // r0\n  int v5; // r4\n  int v6; // r9\n  size_t v7; // r2\n  _BYTE *v8; // r10\n  _BYTE *v9; // r0\n  unsigned int v10; // r2\n  unsigned int v11; // r4\n  _BYTE *v12; // r1\n  int i; // r3\n  char *v14; // r2\n  void *v15; // r3\n  void *v16; // r2\n  unsigned __int8 v17; // [sp+0h] [bp-28h] BYREF\n  _BYTE v18[3]; // [sp+1h] [bp-27h] BYREF\n  size_t v19; // [sp+4h] [bp-24h]\n  void *v20; // [sp+8h] [bp-20h]\n  char *v21; // [sp+Ch] [bp-1Ch] BYREF\n  int v22; // [sp+10h] [bp-18h]\n  int v23; // [sp+14h] [bp-14h]\n  int v24[3]; // [sp+18h] [bp-10h] BYREF\n\n  v21 = nullptr;\n  result = (GameLevelManager *)std::vector<int>::assign(this + 169, 0x65u, (int *)&v21);\n  v3 = (int)*(this + 132);\n  *(this + 172) = nullptr;\n  *(this + 173) = nullptr;\n  *((_BYTE *)this + 696) = 0;\n  if ( v3 )\n  {\n    v4 = GameLevelManager::sharedState(result);\n    GameLevelManager::getDeathDisplayData(\n      (GameLevelManager *)&v17,\n      v4,\n      *((_DWORD *)*(this + 132) + 67) - *((_DWORD *)*(this + 132) + 68));\n    v5 = v17;\n    v6 = v17 & 1;\n    if ( v6 )\n    {\n      v7 = v19;\n      if ( v19 )\n      {\n        v8 = v20;\nLABEL_7:\n        v9 = memchr(v8, 124, v7);\n        if ( v9 && v9 - v8 != -1 )\n        {\n          v10 = v9 - v8 + 1;\n          v21 = nullptr;\n          v22 = 0;\n          v23 = 0;\n          memset(v24, 0, sizeof(v24));\n          if ( v6 )\n          {\n            v11 = v19;\n            if ( v10 > v19 )\nLABEL_13:\n              sub_38AD50();\n            v12 = v20;\n          }\n          else\n          {\n            v11 = v5 >> 1;\n            if ( v10 > v11 )\n              goto LABEL_13;\n            v12 = v18;\n          }\n          std::string::__init(v24, &v12[v10], v11 - v10);\n          GJGameLevel::dtExpandOrder((unsigned __int8 *)v24, (int)&v21);\n          std::string::~string((int)v24);\n          if ( (unsigned int)(v22 - (_DWORD)v21) >= 0x19C )\n          {\n            for ( i = 0; i != 404; i += 4 )\n              *(_DWORD *)((char *)*(this + 169) + i) = *(_DWORD *)&v21[i];\n            v14 = v21;\n            v15 = *(void **)((char *)&stru_18C.st_size + (_DWORD)v21);\n            *(this + 172) = v15;\n            v16 = *(void **)(&stru_18C.st_info + (_DWORD)v14);\n            *((_BYTE *)this + 696) = (int)v15 > 0;\n            *(this + 173) = v16;\n          }\n          std::__vector_base<int>::~__vector_base(&v21);\n        }\n      }\n    }\n    else\n    {\n      v7 = (int)v17 >> 1;\n      if ( v7 )\n      {\n        v8 = v18;\n        goto LABEL_7;\n      }\n    }\n    return (GameLevelManager *)std::string::~string((int)&v17);\n  }\n  return result;\n}", "assembly": "; \n; DeathTrackerPopup::parseGlobal from 0x7718fc to 0x771a46 (330 bytes)\n; \n; 1 xrefs:\n; > DeathTrackerPopup::init @ 0x775a5e\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-R10,LR}                                            ; +0x0, 0x7718fc\nSUB             SP, SP, #0x28                                          ; +0x4, 0x771900\nLDR             R7, =(__stack_chk_guard_ptr - 0x77190E)                ; +0x6, 0x771902\nADD             R6, SP, #0x28+var_s0                                   ; +0x8, 0x771904\nMOV             R5, R0                                                 ; +0xa, 0x771906\nMOVS            R4, #0                                                 ; +0xc, 0x771908\nADD             R7, PC; __stack_chk_guard_ptr                          ; +0xe, 0x77190a\nLDR             R7, [R7]; __stack_chk_guard                            ; +0x10, 0x77190c\nSTR.W           R4, [R6,#-0x1C]!                                       ; +0x12, 0x77190e\nADD.W           R0, R0, #0x2A4                                         ; +0x16, 0x771912\nMOVS            R1, #0x65 ; 'e'                                        ; +0x1a, 0x771916\nLDR             R3, [R7]                                               ; +0x1c, 0x771918\nMOV             R2, R6                                                 ; +0x1e, 0x77191a\nSTR             R3, [SP,#0x28+var_4]                                   ; +0x20, 0x77191c\nBL              _ZNSt6__ndk16vectorIiNS_9allocatorIiEEE6assignEjRKi; std::vector<int>::assign(uint,int const&) ; +0x22, 0x77191e\nLDR.W           R3, [R5,#0x210]                                        ; +0x26, 0x771922\nSTR.W           R4, [R5,#0x2B0]                                        ; +0x2a, 0x771926\nSTR.W           R4, [R5,#0x2B4]                                        ; +0x2e, 0x77192a\nSTRB.W          R4, [R5,#0x2B8]                                        ; +0x32, 0x77192e\nCMP             R3, #0                                                 ; +0x36, 0x771932\nBEQ             loc_771A34                                             ; +0x38, 0x771934\nBL              _ZN16GameLevelManager11sharedStateEv; GameLevelManager::sharedState(void) ; +0x3a, 0x771936\nLDR.W           R3, [R5,#0x210]                                        ; +0x3e, 0x77193a\nMOV             R8, SP                                                 ; +0x42, 0x77193e\nLDR.W           R2, [R3,#0x10C]                                        ; +0x44, 0x771940\nLDR.W           R3, [R3,#0x110]                                        ; +0x48, 0x771944\nSUBS            R2, R2, R3                                             ; +0x4c, 0x771948\nMOV             R1, R0; int                                            ; +0x4e, 0x77194a\nMOV             R0, SP; this                                           ; +0x50, 0x77194c\nBL              _ZN16GameLevelManager19getDeathDisplayDataEi; GameLevelManager::getDeathDisplayData(int) ; +0x52, 0x77194e\nLDRB.W          R4, [SP,#0x28+var_28]                                  ; +0x56, 0x771952\nANDS.W          R9, R4, #1                                             ; +0x5a, 0x771956\nBEQ             loc_771968                                             ; +0x5e, 0x77195a\nLDR             R2, [SP,#0x28+var_24]                                  ; +0x60, 0x77195c\nCMP             R2, #0                                                 ; +0x62, 0x77195e\nBEQ             loc_771A14                                             ; +0x64, 0x771960\nLDR.W           R10, [SP,#0x28+var_20]                                 ; +0x66, 0x771962\nB               loc_771970                                             ; +0x6a, 0x771966\nASRS            R2, R4, #1; size_t                                     ; +0x6c, 0x771968\nBEQ             loc_771A14                                             ; +0x6e, 0x77196a\nADD.W           R10, SP, #0x28+var_27                                  ; +0x70, 0x77196c\nMOV             R0, R10; void *                                        ; +0x74, 0x771970\nMOVS            R1, #0x7C ; '|'; int                                   ; +0x76, 0x771972\nBLX             memchr                                                 ; +0x78, 0x771974\nCMP             R0, #0                                                 ; +0x7c, 0x771978\nBEQ             loc_771A14                                             ; +0x7e, 0x77197a\nRSB.W           R2, R10, R0                                            ; +0x80, 0x77197c\nADDS            R3, R2, #1                                             ; +0x84, 0x771980\nBEQ             loc_771A14                                             ; +0x86, 0x771982\nMOVS            R3, #0                                                 ; +0x88, 0x771984\nADDS            R2, #1                                                 ; +0x8a, 0x771986\nSTR             R3, [SP,#0x28+var_1C]                                  ; +0x8c, 0x771988\nSTR             R3, [SP,#0x28+var_18]                                  ; +0x8e, 0x77198a\nSTR             R3, [SP,#0x28+var_14]                                  ; +0x90, 0x77198c\nSTR             R3, [SP,#0x28+var_10]                                  ; +0x92, 0x77198e\nSTR             R3, [SP,#0x28+var_C]                                   ; +0x94, 0x771990\nSTR             R3, [SP,#0x28+var_8]                                   ; +0x96, 0x771992\nCMP.W           R9, #0                                                 ; +0x98, 0x771994\nBEQ             loc_7719A2                                             ; +0x9c, 0x771998\nLDR             R4, [SP,#0x28+var_24]                                  ; +0x9e, 0x77199a\nCMP             R2, R4                                                 ; +0xa0, 0x77199c\nBLS             loc_7719AC                                             ; +0xa2, 0x77199e\nB               loc_7719A8                                             ; +0xa4, 0x7719a0\nASRS            R4, R4, #1                                             ; +0xa6, 0x7719a2\nCMP             R2, R4                                                 ; +0xa8, 0x7719a4\nBLS             loc_7719B0                                             ; +0xaa, 0x7719a6\nBL              sub_38AD50                                             ; +0xac, 0x7719a8\nLDR             R1, [SP,#0x28+var_20]                                  ; +0xb0, 0x7719ac\nB               loc_7719B4                                             ; +0xb2, 0x7719ae\nADD.W           R1, SP, #0x28+var_27                                   ; +0xb4, 0x7719b0\nADD.W           R9, SP, #0x28+var_10                                   ; +0xb8, 0x7719b4\nADD             R1, R2                                                 ; +0xbc, 0x7719b8\nSUBS            R2, R4, R2                                             ; +0xbe, 0x7719ba\nMOV             R0, R9                                                 ; +0xc0, 0x7719bc\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcj; std::string::__init(char const*,uint) ; +0xc2, 0x7719be\nMOV             R0, R9                                                 ; +0xc6, 0x7719c2\nMOV             R1, R6                                                 ; +0xc8, 0x7719c4\nBL              _ZN11GJGameLevel13dtExpandOrderERKNSt6__ndk112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEERNS0_6vectorIiNS4_IiEEEE; GJGameLevel::dtExpandOrder(std::string const&,std::vector<int> &) ; +0xca, 0x7719c6\nMOV             R0, R9                                                 ; +0xce, 0x7719ca\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0xd0, 0x7719cc\nLDR             R2, [SP,#0x28+var_1C]                                  ; +0xd4, 0x7719d0\nLDR             R3, [SP,#0x28+var_18]                                  ; +0xd6, 0x7719d2\nSUBS            R3, R3, R2                                             ; +0xd8, 0x7719d4\nCMP.W           R3, #0x19C                                             ; +0xda, 0x7719d6\nBCC             loc_771A0E                                             ; +0xde, 0x7719da\nMOVS            R3, #0                                                 ; +0xe0, 0x7719dc\nLDR             R2, [SP,#0x28+var_1C]                                  ; +0xe2, 0x7719de\nLDR             R1, [R2,R3]                                            ; +0xe4, 0x7719e0\nLDR.W           R2, [R5,#0x2A4]                                        ; +0xe6, 0x7719e2\nSTR             R1, [R2,R3]                                            ; +0xea, 0x7719e6\nADDS            R3, #4                                                 ; +0xec, 0x7719e8\nCMP.W           R3, #0x194                                             ; +0xee, 0x7719ea\nBNE             loc_7719DE                                             ; +0xf2, 0x7719ee\nLDR             R2, [SP,#0x28+var_1C]                                  ; +0xf4, 0x7719f0\nLDR.W           R3, [R2,#stru_18C.st_size]                             ; +0xf6, 0x7719f2\nCMP             R3, #0                                                 ; +0xfa, 0x7719f6\nSTR.W           R3, [R5,#0x2B0]                                        ; +0xfc, 0x7719f8\nLDR.W           R2, [R2,#stru_18C.st_info]                             ; +0x100, 0x7719fc\nITE LE                                                                 ; +0x104, 0x771a00\nMOVLE           R3, #0                                                 ; +0x106, 0x771a02\nMOVGT           R3, #1                                                 ; +0x108, 0x771a04\nSTRB.W          R3, [R5,#0x2B8]                                        ; +0x10a, 0x771a06\nSTR.W           R2, [R5,#0x2B4]                                        ; +0x10e, 0x771a0a\nMOV             R0, R6                                                 ; +0x112, 0x771a0e\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x114, 0x771a10\nMOV             R0, R8                                                 ; +0x118, 0x771a14\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x11a, 0x771a16\nB               loc_771A34                                             ; +0x11e, 0x771a1a\nMOV             R0, R9                                                 ; +0x120, 0x771a1c\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x122, 0x771a1e\nB               loc_771A24                                             ; +0x126, 0x771a22\nMOV             R0, R6                                                 ; +0x128, 0x771a24\nBL              _ZNSt6__ndk113__vector_baseIiNS_9allocatorIiEEED2Ev; std::__vector_base<int>::~__vector_base() ; +0x12a, 0x771a26\nMOV             R0, R8                                                 ; +0x12e, 0x771a2a\nBL              _ZNSt6__ndk112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev; std::string::~string() ; +0x130, 0x771a2c\nBL              __cxa_end_cleanup                                      ; +0x134, 0x771a30\nLDR             R2, [SP,#0x28+var_4]                                   ; +0x138, 0x771a34\nLDR             R3, [R7]                                               ; +0x13a, 0x771a36\nCMP             R2, R3                                                 ; +0x13c, 0x771a38\nBEQ             loc_771A40                                             ; +0x13e, 0x771a3a\nBLX             __stack_chk_fail                                       ; +0x140, 0x771a3c\nADD             SP, SP, #0x28 ; '('                                    ; +0x144, 0x771a40\nPOP.W           {R4-R10,PC}                                            ; +0x146, 0x771a42", "xrefs": ["DeathTrackerPopup::init @ 0x775a5e"], "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"}