//
// getFrameForStreak from 0x446ccc to 0x446e36 (362 bytes)
//
// 2 xrefs:
// > PlayerObject::setupStreak @ 0x446fbc
// > PlayerObject::update @ 0x44938e
//
// 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:48:30 +0000
//
int *__fastcall getFrameForStreak(int *a1, int a2, float a3)
{
float v6; // s16
int FramesForStreak; // r4
int v8; // r7
const char *v9; // r3
unsigned int v10; // r4
const char *v11; // r4
size_t v12; // r0
unsigned int v14; // [sp+Ch] [bp-204h] BYREF
unsigned int v15; // [sp+10h] [bp-200h]
char *v16; // [sp+14h] [bp-1FCh]
_BYTE v17[500]; // [sp+18h] [bp-1F8h] BYREF
v6 = COERCE_FLOAT(getFrameTimeForStreak(a2));
FramesForStreak = getFramesForStreak(a2);
v15 = 500;
v14 = 0;
v16 = v17;
v8 = (int)floorf(a3 / v6) % FramesForStreak + 1;
fmt::BasicWriter::operator<<(&v14, "shipfire", 0);
if ( a2 <= 9 )
fmt::BasicWriter::operator<<(&v14, "0", 0);
fmt::BasicWriter::FormatInt,char>>(&v14, a2);
fmt::BasicWriter::operator<<(&v14, "_", 0);
if ( v8 > 9 )
{
if ( v8 > 99 )
goto LABEL_8;
v9 = "0";
}
else
{
v9 = "00";
}
fmt::BasicWriter::operator<<(&v14, v9, 0);
LABEL_8:
fmt::BasicWriter::FormatInt,char>>(&v14, v8);
fmt::BasicWriter::operator<<(&v14, ".png", 0);
v10 = v14;
if ( v14 + 1 > v15 )
fmt::internal::Array::grow((int)&v14, v14 + 1);
v16[v10] = 0;
v11 = v16;
*a1 = 0;
a1[1] = 0;
a1[2] = 0;
v12 = strlen(v11);
std::string::__init(a1, v11, v12);
if ( v16 != v17 && v16 )
operator delete[](v16);
return a1;
}