//
// GJGameLevel::dtBumpBucket from 0x4dd7e0 to 0x4dd920 (320 bytes)
//
// 1 xrefs:
// > GJGameLevel::recordDeath @ 0x4ddb3a
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:50:58 +0000
//
char **__fastcall GJGameLevel::dtBumpBucket(int a1, unsigned __int8 *a2, int a3)
{
unsigned int v4; // r2
unsigned int v5; // r0
unsigned int v6; // r3
int v7; // r5
int v8; // r5
int v9; // r6
unsigned int *v10; // r0
unsigned int *v11; // r0
char *v12; // r0
int v14; // [sp+Ch] [bp-220h] BYREF
const char *v15; // [sp+10h] [bp-21Ch] BYREF
int v16; // [sp+14h] [bp-218h]
char *v17; // [sp+18h] [bp-214h] BYREF
int v18; // [sp+1Ch] [bp-210h]
int v19; // [sp+20h] [bp-20Ch]
unsigned int v20[3]; // [sp+24h] [bp-208h] BYREF
char v21; // [sp+30h] [bp-1FCh] BYREF
v14 = a3;
if ( a3 >= 99 )
a3 = 99;
v14 = a3 & ~(a3 >> 31);
v17 = nullptr;
v18 = 0;
v19 = 0;
GJGameLevel::scoreStringToVector(a1, a2, &v17);
v4 = 0;
v5 = (v18 - (int)v17) >> 2;
v6 = v5;
while ( v4 + 2 <= v5 )
{
v7 = *(_DWORD *)&v17[4 * v4];
if ( v7 == v14 )
{
++*(_DWORD *)&v17[4 * v4 + 4];
goto LABEL_12;
}
if ( v7 > v14 && v6 == v5 )
v6 = v4;
v4 += 2;
}
v8 = 4 * v6;
std::vector::insert(&v17, &v17[4 * v6], (char *)&v14);
v15 = (_BYTE *)(&dword_0 + 1);
std::vector::insert((int *)&v17, &v17[v8 + 4], &v15);
LABEL_12:
v9 = 0;
v20[1] = 500;
v20[2] = (unsigned int)&v21;
v20[0] = 0;
while ( v9 + 2 <= (unsigned int)((v18 - (int)v17) >> 2) )
{
if ( v9 )
{
v15 = ",";
v16 = 0;
fmt::BasicWriter::operator<<(v20, ",", 0);
}
v10 = fmt::BasicWriter::operator<<(v20, *(_DWORD *)&v17[4 * v9]);
v15 = ",";
v16 = 0;
v11 = fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v11, *(_DWORD *)&v17[4 * v9 + 4]);
v9 += 2;
}
v12 = (char *)fmt::BasicWriter::c_str((int *)v20);
std::string::assign((int *)a2, v12);
fmt::internal::Array::free((int)v20);
return std::__vector_base::~__vector_base(&v17);
}