//
// SFXTriggerGameObject::getSaveString from 0x7815ac to 0x782aac (5376 bytes)
//
// 3 xrefs:
// > SongTriggerGameObject::getSaveString @ 0x782afc
// > ??> @ 0x8e560
// > ??> @ 0x116d3b0
//
// 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
//
__int64 __usercall SFXTriggerGameObject::getSaveString@(
SFXTriggerGameObject *this@,
GJBaseGameLayer *a2@,
__int64 a3@)
{
size_t v5; // x20
float m_volume; // s0
float m_volumeNear; // s0
float m_volumeMedium; // s0
float m_volumeFar; // s0
float m_duration; // s0
float m_minInterval; // s0
float m_soundDuration; // s0
float m_volumeVariance; // s0
const char *v15; // [xsp+2C0h] [xbp+2C0h] BYREF
_DWORD v16[5]; // [xsp+2C8h] [xbp+2C8h] BYREF
char v17; // [xsp+2DCh] [xbp+2DCh]
_DWORD v18[5]; // [xsp+2E0h] [xbp+2E0h] BYREF
char v19; // [xsp+2F4h] [xbp+2F4h]
_DWORD v20[5]; // [xsp+2F8h] [xbp+2F8h] BYREF
char v21; // [xsp+30Ch] [xbp+30Ch]
_DWORD v22[5]; // [xsp+310h] [xbp+310h] BYREF
char v23; // [xsp+324h] [xbp+324h]
_DWORD v24[5]; // [xsp+328h] [xbp+328h] BYREF
char v25; // [xsp+33Ch] [xbp+33Ch]
_DWORD v26[5]; // [xsp+340h] [xbp+340h] BYREF
char v27; // [xsp+354h] [xbp+354h]
_DWORD v28[5]; // [xsp+358h] [xbp+358h] BYREF
char v29; // [xsp+36Ch] [xbp+36Ch]
_DWORD v30[5]; // [xsp+370h] [xbp+370h] BYREF
char v31; // [xsp+384h] [xbp+384h]
size_t v32; // [xsp+388h] [xbp+388h] BYREF
unsigned __int64 v33; // [xsp+390h] [xbp+390h]
char *v34; // [xsp+398h] [xbp+398h]
_BYTE v35[504]; // [xsp+3A0h] [xbp+3A0h] BYREF
v32 = 0;
v33 = 500;
v34 = v35;
EffectGameObject::getSaveString(this, a2, (__int64)&v15);
fmt::BasicWriter::operator<<(&v32, v15, *((_QWORD *)v15 - 3));
if ( v15 - 24 != (const char *)&qword_124B6B0 )
sub_74B3A8((void *)(v15 - 24));
if ( this->m_soundID )
{
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x188u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_soundID);
if ( !this->m_speed )
{
LABEL_5:
if ( !this->m_pitchIndex )
goto LABEL_6;
goto LABEL_55;
}
}
else if ( !this->m_speed )
{
goto LABEL_5;
}
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x194u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_speed);
if ( !this->m_pitchIndex )
{
LABEL_6:
if ( this->m_volume == 0.0 )
goto LABEL_7;
goto LABEL_56;
}
LABEL_55:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x195u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_pitchIndex);
if ( this->m_volume == 0.0 )
{
LABEL_7:
if ( !this->m_reverb )
goto LABEL_8;
goto LABEL_57;
}
LABEL_56:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x196u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
m_volume = this->m_volume;
v16[1] = 32;
v16[0] = 0;
v16[2] = 0;
v16[3] = 0;
v16[4] = -1;
v17 = 0;
fmt::BasicWriter::FormatDouble(&v32, v16, m_volume);
if ( !this->m_reverb )
{
LABEL_8:
if ( !this->m_fastFourierTransform )
goto LABEL_9;
goto LABEL_58;
}
LABEL_57:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x197u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_reverb);
if ( !this->m_fastFourierTransform )
{
LABEL_9:
if ( !this->m_loop )
goto LABEL_10;
goto LABEL_59;
}
LABEL_58:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x19Cu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_fastFourierTransform);
if ( !this->m_loop )
{
LABEL_10:
if ( !this->m_stopLoop )
goto LABEL_11;
goto LABEL_60;
}
LABEL_59:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x19Du);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_loop);
if ( !this->m_stopLoop )
{
LABEL_11:
if ( !this->m_unique )
goto LABEL_12;
goto LABEL_61;
}
LABEL_60:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x19Eu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_stopLoop);
if ( !this->m_unique )
{
LABEL_12:
if ( !this->m_sfxUniqueID )
goto LABEL_13;
goto LABEL_62;
}
LABEL_61:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x19Fu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_unique);
if ( !this->m_sfxUniqueID )
{
LABEL_13:
if ( !this->m_override )
goto LABEL_14;
goto LABEL_63;
}
LABEL_62:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A0u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_sfxUniqueID);
if ( !this->m_override )
{
LABEL_14:
if ( !this->m_start )
goto LABEL_15;
goto LABEL_64;
}
LABEL_63:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A4u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_override);
if ( !this->m_start )
{
LABEL_15:
if ( !this->m_fadeIn )
goto LABEL_16;
goto LABEL_65;
}
LABEL_64:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x198u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_start);
if ( !this->m_fadeIn )
{
LABEL_16:
if ( !this->m_end )
goto LABEL_17;
goto LABEL_66;
}
LABEL_65:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x199u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_fadeIn);
if ( !this->m_end )
{
LABEL_17:
if ( !this->m_fadeOut )
goto LABEL_18;
goto LABEL_67;
}
LABEL_66:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x19Au);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_end);
if ( !this->m_fadeOut )
{
LABEL_18:
if ( !this->m_stop )
goto LABEL_19;
goto LABEL_68;
}
LABEL_67:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x19Bu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_fadeOut);
if ( !this->m_stop )
{
LABEL_19:
if ( !this->m_changeSpeed )
goto LABEL_20;
goto LABEL_69;
}
LABEL_68:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A1u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_stop);
if ( !this->m_changeSpeed )
{
LABEL_20:
if ( !this->m_changeVolume )
goto LABEL_21;
goto LABEL_70;
}
LABEL_69:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A2u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_changeSpeed);
if ( !this->m_changeVolume )
{
LABEL_21:
if ( !this->m_targetGroupID )
goto LABEL_22;
goto LABEL_71;
}
LABEL_70:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A3u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_changeVolume);
if ( !this->m_targetGroupID )
{
LABEL_22:
if ( !this->m_centerGroupID )
goto LABEL_23;
goto LABEL_72;
}
LABEL_71:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x33u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_targetGroupID);
if ( !this->m_centerGroupID )
{
LABEL_23:
if ( this->m_volumeNear == 0.0 )
goto LABEL_24;
goto LABEL_73;
}
LABEL_72:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x47u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_centerGroupID);
if ( this->m_volumeNear == 0.0 )
{
LABEL_24:
if ( this->m_volumeMedium == 0.0 )
goto LABEL_25;
goto LABEL_74;
}
LABEL_73:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A5u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
m_volumeNear = this->m_volumeNear;
v18[1] = 32;
v18[0] = 0;
v18[2] = 0;
v18[3] = 0;
v18[4] = -1;
v19 = 0;
fmt::BasicWriter::FormatDouble(&v32, v18, m_volumeNear);
if ( this->m_volumeMedium == 0.0 )
{
LABEL_25:
if ( this->m_volumeFar == 0.0 )
goto LABEL_26;
goto LABEL_75;
}
LABEL_74:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A6u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
m_volumeMedium = this->m_volumeMedium;
v20[1] = 32;
v20[0] = 0;
v20[2] = 0;
v20[3] = 0;
v20[4] = -1;
v21 = 0;
fmt::BasicWriter::FormatDouble(&v32, v20, m_volumeMedium);
if ( this->m_volumeFar == 0.0 )
{
LABEL_26:
if ( !this->m_minDistNear )
goto LABEL_27;
goto LABEL_76;
}
LABEL_75:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A7u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
m_volumeFar = this->m_volumeFar;
v22[1] = 32;
v22[0] = 0;
v22[2] = 0;
v22[3] = 0;
v22[4] = -1;
v23 = 0;
fmt::BasicWriter::FormatDouble(&v32, v22, m_volumeFar);
if ( !this->m_minDistNear )
{
LABEL_27:
if ( !this->m_minDistMedium )
goto LABEL_28;
goto LABEL_77;
}
LABEL_76:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A8u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_minDistNear);
if ( !this->m_minDistMedium )
{
LABEL_28:
if ( !this->m_minDistFar )
goto LABEL_29;
goto LABEL_78;
}
LABEL_77:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1A9u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_minDistMedium);
if ( !this->m_minDistFar )
{
LABEL_29:
if ( !this->m_proximityMode )
goto LABEL_30;
goto LABEL_79;
}
LABEL_78:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1AAu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_minDistFar);
if ( !this->m_proximityMode )
{
LABEL_30:
if ( !this->m_cameraDistance )
goto LABEL_31;
goto LABEL_80;
}
LABEL_79:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1CAu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_proximityMode);
if ( !this->m_cameraDistance )
{
LABEL_31:
if ( !this->m_targetPlayer1 )
goto LABEL_32;
goto LABEL_81;
}
LABEL_80:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1ACu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_cameraDistance);
if ( !this->m_targetPlayer1 )
{
LABEL_32:
if ( !this->m_targetPlayer2 )
goto LABEL_33;
goto LABEL_82;
}
LABEL_81:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x8Au);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_targetPlayer1);
if ( !this->m_targetPlayer2 )
{
LABEL_33:
if ( !this->m_ignoreVolumeTest )
goto LABEL_34;
goto LABEL_83;
}
LABEL_82:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0xC8u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_targetPlayer2);
if ( !this->m_ignoreVolumeTest )
{
LABEL_34:
if ( this->m_duration == 0.0 )
goto LABEL_35;
goto LABEL_84;
}
LABEL_83:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1E9u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_ignoreVolumeTest);
if ( this->m_duration == 0.0 )
{
LABEL_35:
if ( !this->m_preload )
goto LABEL_36;
goto LABEL_85;
}
LABEL_84:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0xAu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
m_duration = this->m_duration;
v24[1] = 32;
v24[0] = 0;
v24[2] = 0;
v24[3] = 0;
v24[4] = -1;
v25 = 0;
fmt::BasicWriter::FormatDouble(&v32, v24, m_duration);
if ( !this->m_preload )
{
LABEL_36:
if ( this->m_minInterval == 0.0 )
goto LABEL_37;
goto LABEL_86;
}
LABEL_85:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1B1u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_preload);
if ( this->m_minInterval == 0.0 )
{
LABEL_37:
if ( !this->m_sfxGroup )
goto LABEL_38;
goto LABEL_87;
}
LABEL_86:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1B2u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
m_minInterval = this->m_minInterval;
v26[1] = 32;
v26[0] = 0;
v26[2] = 0;
v26[3] = 0;
v26[4] = -1;
v27 = 0;
fmt::BasicWriter::FormatDouble(&v32, v26, m_minInterval);
if ( !this->m_sfxGroup )
{
LABEL_38:
if ( !this->m_groupID )
goto LABEL_39;
goto LABEL_88;
}
LABEL_87:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1C7u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_sfxGroup);
if ( !this->m_groupID )
{
LABEL_39:
if ( this->m_soundDuration == 0.0 )
goto LABEL_40;
goto LABEL_89;
}
LABEL_88:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1C9u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_groupID);
if ( this->m_soundDuration == 0.0 )
{
LABEL_40:
if ( this->m_reverbPreset == Generic )
goto LABEL_41;
goto LABEL_90;
}
LABEL_89:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1EAu);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
m_soundDuration = this->m_soundDuration;
v28[1] = 32;
v28[0] = 0;
v28[2] = 0;
v28[3] = 0;
v28[4] = -1;
v29 = 0;
fmt::BasicWriter::FormatDouble(&v32, v28, m_soundDuration);
if ( this->m_reverbPreset == Generic )
{
LABEL_41:
if ( !this->m_reverbEnabled )
goto LABEL_42;
goto LABEL_91;
}
LABEL_90:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1F6u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_reverbPreset);
if ( !this->m_reverbEnabled )
{
LABEL_42:
if ( !this->m_dontReset )
goto LABEL_43;
goto LABEL_92;
}
LABEL_91:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x1F7u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_reverbEnabled);
if ( !this->m_dontReset )
{
LABEL_43:
if ( !this->m_speedVariance )
goto LABEL_44;
goto LABEL_93;
}
LABEL_92:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x253u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, this->m_dontReset);
if ( !this->m_speedVariance )
{
LABEL_44:
if ( !this->m_pitchVariance )
goto LABEL_45;
goto LABEL_94;
}
LABEL_93:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v32, 0x254u);
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v32,
this->m_speedVariance);
if ( !this->m_pitchVariance )
{
LABEL_45:
if ( this->m_volumeVariance == 0.0 )
goto LABEL_46;
LABEL_95:
fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt