// // GJGameLevel::dtBumpRun from 0x853e20 to 0x854224 (1028 bytes) // // 2 xrefs: // > GJGameLevel::recordDeath @ 0x854294 // > @ 0xce050 // // 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 12:55:28 +0000 // __int64 __fastcall GJGameLevel::dtBumpRun(__int64 a1, char *a2, int a3, int a4) { int v4; // w5 int v5; // w4 __int64 v6; // x2 int *v7; // x4 int *v8; // x0 char *v9; // x1 int *v10; // x0 int *v11; // x4 int *v12; // x4 int *v13; // x0 size_t v14; // x20 __int64 i; // x23 size_t v16; // x28 size_t v17; // x22 __int64 v18; // x22 size_t v19; // x28 size_t v20; // x23 size_t v21; // x28 size_t v22; // x22 int v25; // [xsp+68h] [xbp+68h] BYREF int v26[3]; // [xsp+6Ch] [xbp+6Ch] BYREF unsigned int v27; // [xsp+78h] [xbp+78h] unsigned int v28; // [xsp+80h] [xbp+80h] unsigned int v29; // [xsp+88h] [xbp+88h] BYREF int *v30; // [xsp+90h] [xbp+90h] BYREF int *v31; // [xsp+98h] [xbp+98h] int *v32; // [xsp+A0h] [xbp+A0h] size_t v33; // [xsp+A8h] [xbp+A8h] BYREF unsigned __int64 v34; // [xsp+B0h] [xbp+B0h] char *v35; // [xsp+B8h] [xbp+B8h] _BYTE v36[504]; // [xsp+C0h] [xbp+C0h] BYREF if ( a3 > 99 ) v4 = 99; else v4 = a3; if ( v4 < 0 ) v4 = 0; if ( a4 > 99 ) v5 = 99; else v5 = a4; v25 = a4; v26[0] = a3; if ( v5 < 0 ) v5 = 0; v26[0] = v4; v25 = v5; v30 = nullptr; v31 = nullptr; v32 = nullptr; GJGameLevel::scoreStringToVector(a1, a2, (__int64)&v30); v6 = 0; v7 = v31; v8 = v30; while ( v6 + 3 <= (unsigned __int64)(v31 - v30) ) { if ( *v8 == v26[0] && v8[1] == v25 ) { ++v30[v6 + 2]; v9 = (char *)v31; goto LABEL_29; } v8 += 3; v6 += 3; } v10 = v32; if ( v32 == v31 ) { std::vector::__push_back_slow_path((__int64)&v30, v26); v11 = v31; v10 = v32; } else { if ( v31 ) { *v31 = v26[0]; v7 = v31; v10 = v32; } v11 = v7 + 1; v31 = v11; } if ( v11 == v10 ) { std::vector::__push_back_slow_path((__int64)&v30, &v25); v12 = v31; v10 = v32; } else { if ( v11 ) { *v11 = v25; v11 = v31; v10 = v32; } v12 = v11 + 1; v31 = v12; } v29 = 1; if ( v12 >= v10 ) { std::vector::__push_back_slow_path((void **)&v30, &v29); v9 = (char *)v31; } else { if ( v12 ) { *v12 = 1; v12 = v31; } v9 = (char *)(v12 + 1); v31 = v12 + 1; } LABEL_29: v13 = v30; v33 = 0; v14 = 0; v35 = v36; v34 = 500; if ( (unsigned __int64)(v9 - (char *)v30) > 0xB ) { for ( i = 3; ; i = v18 ) { v27 = *(int *)((char *)v13 + v14); fmt::BasicWriter::FormatInt,char>>(&v33, v27); v21 = v33; v22 = v33 + 1; if ( v33 + 1 > v34 ) fmt::internal::Array::grow(&v33, v33 + 1); v33 = v22; v35[v21] = 44; v28 = *(int *)((char *)v30 + v14 + 4); fmt::BasicWriter::FormatInt,char>>(&v33, v28); v16 = v33; v17 = v33 + 1; if ( v33 + 1 > v34 ) fmt::internal::Array::grow(&v33, v33 + 1); v33 = v17; v35[v16] = 44; v29 = *(int *)((char *)v30 + v14 + 8); fmt::BasicWriter::FormatInt,char>>(&v33, v29); v13 = v30; v18 = i + 3; if ( i + 3 > (unsigned __int64)(v31 - v30) ) break; if ( i ) { v19 = v33; v20 = v33 + 1; if ( v33 + 1 > v34 ) fmt::internal::Array::grow(&v33, v33 + 1); v33 = v20; v35[v19] = 44; v13 = v30; } v14 += 12LL; } v14 = v33; if ( v33 + 1 > v34 ) fmt::internal::Array::grow(&v33, v33 + 1); } v35[v14] = 0; std::string::assign((__int64 *)a2, v35); if ( v35 != v36 && v35 ) operator delete[](v35); if ( v30 ) { if ( v30 != v31 ) v31 += ~((unsigned __int64)((char *)(v31 - 1) - (char *)v30) >> 2); operator delete(v30); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source