//
// GameToolbox::stringFromHSV from 0x2eec88 to 0x2eed7a (242 bytes)
//
// 6 xrefs:
// > GameObject::getSaveString @ 0x364560
// > GameObject::getSaveString @ 0x36460c
// > EffectGameObject::getSaveString @ 0x3effc0
// > EffectGameObject::getSaveString @ 0x3f2a44
// > EnterEffectObject::getSaveString @ 0x3f4284
// > ColorAction::writeSaveString @ 0x4a20fe
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
int __fastcall GameToolbox::stringFromHSV(int a1, float a2, float a3, float a4, __int16 a5, char *a6)
{
char *v7; // r0
unsigned int v9[3]; // [sp+Ch] [bp-208h] BYREF
char v10; // [sp+18h] [bp-1FCh] BYREF
float varg_r1; // [sp+234h] [bp+20h]
float varg_r2; // [sp+238h] [bp+24h]
float varg_r3; // [sp+23Ch] [bp+28h]
varg_r1 = a2;
varg_r2 = a3;
varg_r3 = a4;
v9[0] = 0;
v9[1] = 500;
v9[2] = (unsigned int)&v10;
fmt::BasicWriter::operator<<((int)v9);
fmt::BasicWriter::operator<<(v9, a6, 0);
fmt::BasicWriter::operator<<((int)v9);
fmt::BasicWriter::operator<<(v9, a6, 0);
fmt::BasicWriter::operator<<((int)v9);
fmt::BasicWriter::operator<<(v9, a6, 0);
fmt::BasicWriter::operator<<(v9, (unsigned __int8)a5);
fmt::BasicWriter::operator<<(v9, a6, 0);
fmt::BasicWriter::operator<<(v9, HIBYTE(a5));
v7 = (char *)fmt::BasicWriter::c_str((int *)v9);
sub_776584(a1, v7);
fmt::internal::Array::free((int)v9);
return a1;
}