// // sub_1004BB780 from 0x1004bb780 to 0x1004bba3c (700 bytes) // // 1 xrefs: // > DeathTrackerPopup::init @ 0x1004bad4c // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:06:17 +0000 // void __fastcall sub_1004BB780(_QWORD *a1) { __int64 v2; // x20 __int64 v3; // x21 __int64 v4; // x8 int v5; // w8 unsigned __int64 v6; // x9 int *v7; // x10 int v8; // w11 int v9; // t1 double v10; // d0 double v11; // d0 char *v12; // x9 __int64 v13; // x21 unsigned __int64 v14; // x22 const std::string *v15; // x26 const char *v16; // x0 __int64 v17; // x26 const char *v18; // x0 const char *v19; // x0 _QWORD v20[3]; // [xsp+0h] [xbp-B0h] BYREF int *v21; // [xsp+18h] [xbp-98h] BYREF int *v22; // [xsp+20h] [xbp-90h] __int64 v23; // [xsp+28h] [xbp-88h] void **v24; // [xsp+30h] [xbp-80h] BYREF void *v25[2]; // [xsp+38h] [xbp-78h] BYREF void *__p[2]; // [xsp+48h] [xbp-68h] BYREF __int128 v27; // [xsp+58h] [xbp-58h] int v28; // [xsp+68h] [xbp-48h] int v29; // [xsp+6Ch] [xbp-44h] v2 = a1[95]; v3 = a1[94]; while ( v2 != v3 ) { v2 -= 64; sub_10000A738((__int64)(a1 + 94), v2); } a1[95] = v3; v4 = a1[85]; if ( !v4 ) return; if ( (*(char *)(v4 + 1615) & 0x8000000000000000LL) != 0 ) { if ( *(_QWORD *)(v4 + 1600) ) goto LABEL_13; } else if ( *(_BYTE *)(v4 + 1615) ) { goto LABEL_13; } if ( (*(char *)(v4 + 1639) & 0x8000000000000000LL) == 0 ) { if ( !*(_BYTE *)(v4 + 1639) ) goto LABEL_28; LABEL_13: v27 = 0u; *(_OWORD *)__p = 0u; *(_OWORD *)v25 = 0u; LODWORD(v24) = *(_DWORD *)(v4 + 1640); std::string::operator=((std::string *)v25, (const std::string *)(v4 + 1592)); std::string::operator=((std::string *)&__p[1], (const std::string *)(a1[85] + 1616LL)); v28 = *(_DWORD *)(a1[85] + 1648LL); v29 = 0; v21 = nullptr; v22 = nullptr; v23 = 0; GJGameLevel::dtExpandOrder((std::string *)v25, (__int64)&v21); if ( v22 == v21 ) { if ( !v21 ) { LABEL_23: sub_1004BCA38(a1 + 94, &v24); if ( SHIBYTE(v27) < 0 ) operator delete(__p[1]); if ( SHIBYTE(__p[0]) < 0 ) operator delete(v25[0]); v4 = a1[85]; goto LABEL_28; } } else { v5 = v29; v6 = v22 - v21; if ( v6 <= 1 ) v6 = 1; v7 = v21; do { v9 = *v7++; v8 = v9; if ( v9 > v5 ) { v29 = v8; v5 = v8; } --v6; } while ( v6 ); } v22 = v21; operator delete(v21); goto LABEL_23; } if ( *(_QWORD *)(v4 + 1624) ) goto LABEL_13; LABEL_28: v10 = sub_1000D0E20(v4); sub_1004BCA94(&v21, a1[85] + 1664LL, 124, v10); v12 = (char *)v21; if ( v22 != v21 ) { v13 = 0; v14 = 0; do { sub_1004BCA94(v20, &v12[v13], 58, v11); v15 = (const std::string *)v20[0]; if ( 0xAAAAAAAAAAAAAAABLL * ((__int64)(v20[1] - v20[0]) >> 3) >= 5 ) { v27 = 0u; *(_OWORD *)__p = 0u; *(_OWORD *)v25 = 0u; if ( *(char *)(v20[0] + 23LL) < 0 ) v16 = *(const char **)v20[0]; else v16 = (const char *)v20[0]; LODWORD(v24) = atoi(v16); std::string::operator=((std::string *)v25, v15 + 1); std::string::operator=((std::string *)&__p[1], (const std::string *)(v20[0] + 48LL)); v17 = v20[0]; v18 = (const char *)(v20[0] + 72LL); if ( *(char *)(v20[0] + 95LL) < 0 ) v18 = *(const char **)v18; v28 = atoi(v18); v19 = (const char *)(v17 + 96); if ( *(char *)(v17 + 119) < 0 ) v19 = *(const char **)v19; v29 = atoi(v19); sub_1004BCA38(a1 + 94, &v24); if ( SHIBYTE(v27) < 0 ) operator delete(__p[1]); if ( SHIBYTE(__p[0]) < 0 ) operator delete(v25[0]); } v24 = (void **)v20; sub_100018250(&v24); ++v14; v12 = (char *)v21; v13 += 24; } while ( v14 < 0xAAAAAAAAAAAAAAABLL * (((char *)v22 - (char *)v21) >> 3) ); } v24 = (void **)&v21; sub_100018250(&v24); }
GD Web Decomp Icon

GD Web Decomp

Raw Source