//
// SongTriggerGameObject::getSaveString from 0x3f9e38 to 0x3f9f8e (342 bytes)
//
// 0 xrefs:
//
// 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
//
SongTriggerGameObject *__fastcall SongTriggerGameObject::getSaveString(
SongTriggerGameObject *this,
GJBaseGameLayer *a2,
GameObject *a3)
{
char *v5; // r0
char *v7; // [sp+0h] [bp-214h] BYREF
const char *v8; // [sp+4h] [bp-210h]
size_t v9; // [sp+8h] [bp-20Ch]
unsigned int v10[3]; // [sp+Ch] [bp-208h] BYREF
char v11; // [sp+18h] [bp-1FCh] BYREF
v10[0] = 0;
v10[1] = 500;
v10[2] = (unsigned int)&v11;
SFXTriggerGameObject::getSaveString((SFXTriggerGameObject *)&v7, a2, a3);
v8 = v7;
v9 = *((_DWORD *)v7 - 3);
fmt::BasicWriter::operator<<(v10, v7, v9);
sub_774008(&v7);
if ( BYTE2(a2->m_glowLayerT3) )
{
v8 = ",";
v9 = 0;
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, 399);
v8 = ",";
v9 = 0;
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, BYTE2(a2->m_glowLayerT3));
}
if ( HIBYTE(a2->m_glowLayerT3) )
{
v8 = ",";
v9 = 0;
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, 400);
v8 = ",";
v9 = 0;
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, HIBYTE(a2->m_glowLayerT3));
}
if ( a2->m_specialLayerT3 )
{
v8 = ",";
v9 = 0;
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, 432);
v8 = ",";
v9 = 0;
fmt::BasicWriter::operator<<(v10, ",", 0);
fmt::BasicWriter::operator<<(v10, (int)a2->m_specialLayerT3);
}
v5 = (char *)fmt::BasicWriter::c_str((int *)v10);
sub_776584((int)this, v5);
fmt::internal::Array::free((int)v10);
return this;
}