// // GJGameLevel::dtBumpBucket from 0x140265150 to 0x1402653e2 (658 bytes) // // 2 xrefs: // > PlayLayer::destroyPlayer @ 0x140512a2a // > @ 0x14091c8d4 // // This function is hookable on this platform (idp: pc, 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:28:49 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GJGameLevel::dtBumpBucket(__int64 a1, size_t *a2, int a3) { int v3; // ebx __int64 v5; // r10 __int64 v6; // r11 unsigned __int64 v7; // r9 unsigned __int64 v8; // rdx unsigned __int64 v9; // rcx int *v10; // r8 __int64 v11; // rsi int *v12; // rdi char *v13; // rcx char *v14; // rbx __int64 v15; // rdi __int64 v16; // rdx unsigned int v17; // ebx __int64 v18; // rax __int64 v19; // rax _BYTE *v20; // rax size_t v21; // r8 __int128 v22; // [rsp+20h] [rbp-E0h] BYREF char *v23; // [rsp+30h] [rbp-D0h] int v24; // [rsp+38h] [rbp-C8h] BYREF _QWORD v25[2]; // [rsp+40h] [rbp-C0h] BYREF _QWORD v26[2]; // [rsp+50h] [rbp-B0h] BYREF _BYTE v27[528]; // [rsp+60h] [rbp-A0h] BYREF int v28; // [rsp+2C0h] [rbp+1C0h] BYREF v3 = a3; if ( a3 > 99 ) v3 = 99; if ( v3 < 0 ) v3 = 0; v28 = v3; v22 = 0; v23 = nullptr; GJGameLevel::scoreStringToVector(a1, a2, (__int64)&v22); v5 = *((_QWORD *)&v22 + 1); v6 = v22; v7 = (__int64)(*((_QWORD *)&v22 + 1) - v22) >> 2; v8 = v7; v9 = 0; if ( v7 < 2 ) { LABEL_11: v11 = 4 * v8; v12 = (int *)(4 * v8 + v22); if ( *((char **)&v22 + 1) == v23 ) { sub_140069B30((const void **)&v22, (_BYTE *)(4 * v8 + v22), &v28); } else { if ( v12 == *((int **)&v22 + 1) ) { **((_DWORD **)&v22 + 1) = v3; v13 = (char *)(*((_QWORD *)&v22 + 1) + 4LL); *((_QWORD *)&v22 + 1) += 4LL; goto LABEL_18; } **((_DWORD **)&v22 + 1) = *(_DWORD *)(*((_QWORD *)&v22 + 1) - 4LL); *((_QWORD *)&v22 + 1) += 4LL; memmove(v12 + 1, (const void *)(4 * v8 + v6), v5 - (_QWORD)v12 - 4); *v12 = v3; } v13 = *((char **)&v22 + 1); LABEL_18: v24 = 1; v14 = (char *)(v11 + v22 + 4); if ( v13 == v23 ) { sub_140069B30((const void **)&v22, (_BYTE *)(v11 + v22 + 4), &v24); } else if ( v14 == v13 ) { *(_DWORD *)v13 = 1; *((_QWORD *)&v22 + 1) += 4LL; } else { *(_DWORD *)v13 = *((_DWORD *)v13 - 1); *((_QWORD *)&v22 + 1) += 4LL; memmove(v14 + 4, v14, v13 - v14 - 4); *(_DWORD *)v14 = 1; } goto LABEL_23; } while ( 1 ) { v10 = (int *)(v22 + 4 * v9); if ( *v10 == v3 ) break; if ( *v10 > v3 && v8 == v7 ) v8 = v9; v9 += 2LL; if ( v9 + 2 > v7 ) goto LABEL_11; } ++v10[1]; LABEL_23: fmt::BasicWriter::BasicWriter(v27); v15 = 0; v16 = v22; if ( (unsigned __int64)((__int64)(*((_QWORD *)&v22 + 1) - v22) >> 2) >= 2 ) { do { if ( v15 ) { v25[0] = byte_14070ECF8; v25[1] = 0; fmt::BasicWriter::operator<<(v27, v25); v16 = v22; } v26[0] = byte_14070ECF8; v26[1] = 0; v17 = *(_DWORD *)(v16 + 4 * v15 + 4); v18 = fmt::BasicWriter::operator<<(v27, *(unsigned int *)(v16 + 4 * v15)); fmt::BasicWriter::operator<<(v18, v26); fmt::BasicWriter::operator<<(v19, v17); v15 += 2; v16 = v22; } while ( v15 + 2 <= (unsigned __int64)((__int64)(*((_QWORD *)&v22 + 1) - v22) >> 2) ); } v20 = (_BYTE *)fmt::BasicWriter::c_str(v27); v21 = -1; do ++v21; while ( v20[v21] ); sub_1400405A0((void **)a2, v20, v21); fmt::BasicWriter::~BasicWriter(v27); sub_140069730((__int64)&v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source