// // GJGameLevel::scoreVectorToString from 0x738ce8 to 0x739080 (920 bytes) // // 2 xrefs: // > GJGameLevel::storeNewLocalScore @ 0x73916c // > @ 0x9dcf8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // __int64 __usercall GJGameLevel::scoreVectorToString@(char **a1@, std::vector *a2@, __int64 a3@) { char *v5; // x20 char *v6; // x22 char *v7; // x0 unsigned __int64 v8; // x1 char *v9; // x20 size_t v10; // x19 size_t v11; // x27 size_t v12; // x26 char *v14; // x19 int v15; // w1 char *v16; // x0 int v17; // w3 char *v18; // x0 char *v19; // x19 char *v20; // x22 int v21; // w1 char *v22; // x0 int v23; // w19 char *v24; // x0 size_t v25; // [xsp+68h] [xbp+68h] BYREF unsigned __int64 v26; // [xsp+70h] [xbp+70h] char *v27; // [xsp+78h] [xbp+78h] _BYTE v28[504]; // [xsp+80h] [xbp+80h] BYREF if ( (_DWORD)a2 != 1 ) { v5 = *a1; v6 = a1[1]; if ( *a1 != v6 ) { sub_738B0C(v5, a1[1], 2 * (63 - __clz((v6 - v5) >> 2))); if ( v6 - v5 > 67 ) { v14 = v5 + 64; std::__insertion_sort<__gnu_cxx::__normal_iterator>,__gnu_cxx::__ops::_Iter_less_iter>( (signed __int64)v5, v5 + 64); if ( v6 != v5 + 64 ) { v15 = *((_DWORD *)v5 + 15); v16 = v5 + 60; v17 = *(_DWORD *)v14; if ( *(_DWORD *)v14 < v15 ) goto LABEL_24; while ( 1 ) { v18 = v14; v14 += 4; *(_DWORD *)v18 = v17; if ( v6 == v14 ) break; while ( 1 ) { v15 = *((_DWORD *)v14 - 1); v16 = v14 - 4; v17 = *(_DWORD *)v14; if ( *(_DWORD *)v14 >= v15 ) break; LABEL_24: while ( 1 ) { *((_DWORD *)v16 + 1) = v15; v15 = *((_DWORD *)v16 - 1); if ( v17 >= v15 ) break; v16 -= 4; } v14 += 4; *(_DWORD *)v16 = v17; if ( v6 == v14 ) goto LABEL_5; } } } } else { std::__insertion_sort<__gnu_cxx::__normal_iterator>,__gnu_cxx::__ops::_Iter_less_iter>( (signed __int64)v5, v6); } LABEL_5: v7 = *a1; v5 = a1[1]; goto LABEL_6; } goto LABEL_40; } v19 = *a1; v5 = a1[1]; if ( v5 == *a1 ) { LABEL_40: v7 = v5; goto LABEL_6; } std::__introsort_loop<__gnu_cxx::__normal_iterator>,long,__gnu_cxx::__ops::_Iter_comp_iter>>( v19, a1[1], 2 * (63 - __clz((v5 - v19) >> 2)), 0); if ( v5 - v19 > 67 ) { v20 = v19 + 64; std::__insertion_sort<__gnu_cxx::__normal_iterator>,__gnu_cxx::__ops::_Iter_comp_iter>>( (signed __int64)v19, v19 + 64); if ( v5 != v19 + 64 ) { v21 = *((_DWORD *)v19 + 15); v22 = v19 + 60; v23 = *(_DWORD *)v20; if ( *(_DWORD *)v20 > v21 ) goto LABEL_35; while ( 1 ) { v24 = v20; v20 += 4; *(_DWORD *)v24 = v23; if ( v5 == v20 ) break; while ( 1 ) { v21 = *((_DWORD *)v20 - 1); v22 = v20 - 4; v23 = *(_DWORD *)v20; if ( *(_DWORD *)v20 <= v21 ) break; LABEL_35: while ( 1 ) { *((_DWORD *)v22 + 1) = v21; v21 = *((_DWORD *)v22 - 1); if ( v23 <= v21 ) break; v22 -= 4; } v20 += 4; *(_DWORD *)v22 = v23; if ( v5 == v20 ) goto LABEL_5; } } } goto LABEL_5; } std::__insertion_sort<__gnu_cxx::__normal_iterator>,__gnu_cxx::__ops::_Iter_comp_iter>>( (signed __int64)v19, v5); v5 = a1[1]; v7 = *a1; LABEL_6: v8 = (v5 - v7) >> 2; if ( v8 > 0xA ) { v9 = v5 - 4; a1[1] = v9; v8 = (v9 - v7) >> 2; } v25 = 0; v10 = 0; v26 = 500; v27 = v28; if ( v8 ) { while ( 1 ) { fmt::BasicWriter::FormatInt,char>>( &v25, *(_DWORD *)&v7[4 * v10]); v7 = *a1; if ( ++v10 >= (a1[1] - *a1) >> 2 ) break; while ( (_DWORD)v10 ) { v11 = v25; v12 = v25 + 1; if ( v25 + 1 > v26 ) fmt::internal::Array::grow(&v25, v25 + 1); v25 = v12; v27[v11] = 44; fmt::BasicWriter::FormatInt,char>>( &v25, *(_DWORD *)&(*a1)[4 * v10]); v7 = *a1; if ( ++v10 >= (a1[1] - *a1) >> 2 ) goto LABEL_14; } } LABEL_14: v10 = v25; if ( v25 + 1 > v26 ) fmt::internal::Array::grow(&v25, v25 + 1); } v27[v10] = 0; sub_D153B8(a3, v27); if ( v27 != v28 && v27 ) operator delete[](v27); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source