//
// sub_1404E4310 from 0x1404e4310 to 0x1404e451c (524 bytes)
//
// 4 xrefs:
// > PlayerObject::setupStreak @ 0x1404e6cd3
// > PlayerObject::update @ 0x1404e820d
// > ??> @ 0x140929b88
// > ??> @ 0x140929b94
//
// 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:33:10 +0000
//
// Hidden C++ exception states: #wind=1
char *__fastcall sub_1404E4310(char *a1, int a2, float a3)
{
float v5; // xmm0_4
int v6; // ebx
int v7; // ebx
_BYTE *v8; // rax
size_t v9; // r8
const char *v11; // [rsp+20h] [rbp-E0h] BYREF
__int64 v12; // [rsp+28h] [rbp-D8h]
_BYTE v13[528]; // [rsp+40h] [rbp-C0h] BYREF
v11 = a1;
switch ( a2 )
{
case 4:
v5 = 0.041666668;
v6 = 6;
break;
case 5:
v5 = 0.050000001;
v6 = 16;
break;
case 6:
v5 = 0.041666668;
v6 = 5;
break;
default:
v5 = 0.03125;
if ( a2 == 2 )
{
v6 = 9;
}
else if ( a2 == 3 )
{
v6 = 10;
}
else
{
v6 = 0;
}
break;
}
v7 = (int)floorf(a3 / v5) % v6 + 1;
fmt::BasicWriter::BasicWriter(v13);
v11 = (const char *)&qword_140719470;
v12 = 0;
fmt::BasicWriter::operator<<(v13, &v11);
if ( a2 < 10 )
{
v11 = "0";
v12 = 0;
fmt::BasicWriter::operator<<(v13, &v11);
}
fmt::BasicWriter::operator<<(v13, (unsigned int)a2);
v11 = "_";
v12 = 0;
fmt::BasicWriter::operator<<(v13, &v11);
if ( v7 < 10 )
{
v11 = "00";
LABEL_18:
v12 = 0;
fmt::BasicWriter::operator<<(v13, &v11);
goto LABEL_19;
}
if ( v7 < 100 )
{
v11 = "0";
goto LABEL_18;
}
LABEL_19:
fmt::BasicWriter::operator<<(v13, (unsigned int)v7);
v11 = ".png";
v12 = 0;
fmt::BasicWriter::operator<<(v13, &v11);
v8 = (_BYTE *)fmt::BasicWriter::c_str(v13);
*(_OWORD *)a1 = 0;
*((_QWORD *)a1 + 2) = 0;
*((_QWORD *)a1 + 3) = 0;
v9 = -1;
do
++v9;
while ( v8[v9] );
sub_14003D230(a1, v8, v9);
fmt::BasicWriter::~BasicWriter(v13);
return a1;
}