//
// CameraTriggerGameObject::getSaveString from 0x7851ec to 0x786150 (3940 bytes)
//
// 2 xrefs:
// > ??> @ 0x3bb50
// > ??> @ 0x1171bb0
//
// 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 CameraTriggerGameObject::getSaveString@(
CameraTriggerGameObject *this@,
GJBaseGameLayer *a2@,
__int64 a3@)
{
char *v5; // x0
int m_objectID; // w0
size_t v7; // x20
double m_previewOpacity; // d0
unsigned int *v10; // x2
int v11; // w1
double m_velocityModifier; // d0
double v13; // d0
double m_rotationDegrees; // d0
double m_followEasing; // d0
double v16; // d0
double v17; // d0
double v18; // d0
double v19; // d0
double m_easingRate; // d0
double v21; // d0
double m_duration; // d0
double x; // d0
double m_zoomValue; // d0
double y; // d0
const char *v26; // [xsp+198h] [xbp+198h] BYREF
_DWORD v27[5]; // [xsp+1A0h] [xbp+1A0h] BYREF
char v28; // [xsp+1B4h] [xbp+1B4h]
_DWORD v29[5]; // [xsp+1B8h] [xbp+1B8h] BYREF
char v30; // [xsp+1CCh] [xbp+1CCh]
_DWORD v31[5]; // [xsp+1D0h] [xbp+1D0h] BYREF
char v32; // [xsp+1E4h] [xbp+1E4h]
_DWORD v33[5]; // [xsp+1E8h] [xbp+1E8h] BYREF
char v34; // [xsp+1FCh] [xbp+1FCh]
_DWORD v35[5]; // [xsp+200h] [xbp+200h] BYREF
char v36; // [xsp+214h] [xbp+214h]
_DWORD v37[5]; // [xsp+218h] [xbp+218h] BYREF
char v38; // [xsp+22Ch] [xbp+22Ch]
_DWORD v39[5]; // [xsp+230h] [xbp+230h] BYREF
char v40; // [xsp+244h] [xbp+244h]
_DWORD v41[5]; // [xsp+248h] [xbp+248h] BYREF
char v42; // [xsp+25Ch] [xbp+25Ch]
_DWORD v43[5]; // [xsp+260h] [xbp+260h] BYREF
char v44; // [xsp+274h] [xbp+274h]
_DWORD v45[5]; // [xsp+278h] [xbp+278h] BYREF
char v46; // [xsp+28Ch] [xbp+28Ch]
_DWORD v47[5]; // [xsp+290h] [xbp+290h] BYREF
char v48; // [xsp+2A4h] [xbp+2A4h]
_DWORD v49[5]; // [xsp+2A8h] [xbp+2A8h] BYREF
char v50; // [xsp+2BCh] [xbp+2BCh]
_DWORD v51[5]; // [xsp+2C0h] [xbp+2C0h] BYREF
char v52; // [xsp+2D4h] [xbp+2D4h]
_DWORD v53[5]; // [xsp+2D8h] [xbp+2D8h] BYREF
char v54; // [xsp+2ECh] [xbp+2ECh]
_DWORD v55[5]; // [xsp+2F0h] [xbp+2F0h] BYREF
char v56; // [xsp+304h] [xbp+304h]
size_t v57; // [xsp+308h] [xbp+308h] BYREF
unsigned __int64 v58; // [xsp+310h] [xbp+310h]
char *v59; // [xsp+318h] [xbp+318h]
_BYTE v60[504]; // [xsp+320h] [xbp+320h] BYREF
v57 = 0;
v58 = 500;
v59 = v60;
EffectGameObject::getSaveString(this, a2, (__int64)&v26);
fmt::BasicWriter::operator<<(&v57, v26, *((_QWORD *)v26 - 3));
v5 = (char *)(v26 - 24);
if ( v26 - 24 != (const char *)&qword_124B6B0 )
{
if ( &pthread_create )
{
v10 = (unsigned int *)(v26 - 8);
do
v11 = __ldaxr(v10);
while ( __stlxr(v11 - 1, v10) );
}
else
{
v11 = *((_DWORD *)v26 - 2);
*((_DWORD *)v26 - 2) = v11 - 1;
}
if ( v11 <= 0 )
operator delete(v5);
}
m_objectID = this->m_objectID;
if ( m_objectID == 2015 )
{
if ( this->m_duration != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0xAu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
m_duration = this->m_duration;
v35[1] = 32;
v35[0] = 0;
v35[2] = 0;
v35[3] = 0;
v35[4] = -1;
v36 = 0;
fmt::BasicWriter::FormatDouble(&v57, v35, m_duration);
}
if ( this->m_easingType )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1Eu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_easingType);
}
if ( this->m_easingRate != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x55u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
m_easingRate = this->m_easingRate;
v37[1] = 32;
v37[0] = 0;
v37[2] = 0;
v37[3] = 0;
v37[4] = -1;
v38 = 0;
fmt::BasicWriter::FormatDouble(&v57, v37, m_easingRate);
}
if ( this->m_rotationDegrees != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x44u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
m_rotationDegrees = this->m_rotationDegrees;
v39[1] = 32;
v39[0] = 0;
v39[2] = 0;
v39[3] = 0;
v39[4] = -1;
v40 = 0;
fmt::BasicWriter::FormatDouble(&v57, v39, m_rotationDegrees);
}
if ( this->m_lockObjectRotation )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x46u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_lockObjectRotation);
}
if ( this->m_isDirectionFollowSnap360 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x18Au);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_isDirectionFollowSnap360);
}
}
else if ( m_objectID > 2015 )
{
if ( m_objectID == 2016 )
{
if ( this->m_moveOffset.x != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1Cu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
x = this->m_moveOffset.x;
v41[1] = 32;
v41[0] = 0;
v41[2] = 0;
v41[3] = 0;
v41[4] = -1;
v42 = 0;
fmt::BasicWriter::FormatDouble(&v57, v41, x);
}
if ( this->m_moveOffset.y != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1Du);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
y = this->m_moveOffset.y;
v43[1] = 32;
v43[0] = 0;
v43[2] = 0;
v43[3] = 0;
v43[4] = -1;
v44 = 0;
fmt::BasicWriter::FormatDouble(&v57, v43, y);
}
if ( this->m_zoomValue != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x173u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
m_zoomValue = this->m_zoomValue;
v45[1] = 32;
v45[0] = 0;
v45[2] = 0;
v45[3] = 0;
v45[4] = -1;
v46 = 0;
fmt::BasicWriter::FormatDouble(&v57, v45, m_zoomValue);
}
if ( this->m_previewOpacity != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1FAu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
m_previewOpacity = this->m_previewOpacity;
v47[1] = 32;
v47[0] = 0;
v47[2] = 0;
v47[3] = 0;
v47[4] = -1;
v48 = 0;
fmt::BasicWriter::FormatDouble(&v57, v47, m_previewOpacity);
}
}
else if ( m_objectID == 2062 )
{
if ( this->m_targetGroupID )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x33u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_targetGroupID);
}
if ( this->m_edgeDirection )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0xA4u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_edgeDirection);
}
}
}
else if ( m_objectID == 1914 )
{
if ( this->m_duration != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0xAu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
v13 = this->m_duration;
v27[1] = 32;
v27[0] = 0;
v27[2] = 0;
v27[3] = 0;
v27[4] = -1;
v28 = 0;
fmt::BasicWriter::FormatDouble(&v57, v27, v13);
}
if ( this->m_easingType )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1Eu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_easingType);
}
if ( this->m_easingRate != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x55u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
v16 = this->m_easingRate;
v29[1] = 32;
v29[0] = 0;
v29[2] = 0;
v29[3] = 0;
v29[4] = -1;
v30 = 0;
fmt::BasicWriter::FormatDouble(&v57, v29, v16);
}
if ( this->m_centerGroupID )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x47u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_centerGroupID);
}
if ( this->m_moveTargetMode )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x65u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_moveTargetMode);
}
if ( this->m_exitStatic )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x6Eu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_exitStatic);
}
if ( this->m_followObject )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0xD4u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_followObject);
}
if ( this->m_followEasing != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0xD5u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
m_followEasing = this->m_followEasing;
v31[1] = 32;
v31[0] = 0;
v31[2] = 0;
v31[3] = 0;
v31[4] = -1;
v32 = 0;
fmt::BasicWriter::FormatDouble(&v57, v31, m_followEasing);
}
if ( this->m_smoothVelocity )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1C5u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_smoothVelocity);
}
if ( this->m_velocityModifier != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1C6u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
m_velocityModifier = this->m_velocityModifier;
v33[1] = 32;
v33[0] = 0;
v33[2] = 0;
v33[3] = 0;
v33[4] = -1;
v34 = 0;
fmt::BasicWriter::FormatDouble(&v57, v33, m_velocityModifier);
}
if ( this->m_exitInstant )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1D1u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_exitInstant);
}
}
else if ( m_objectID == 1916 )
{
if ( this->m_moveOffset.x != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1Cu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
v19 = this->m_moveOffset.x;
v49[1] = 32;
v49[0] = 0;
v49[2] = 0;
v49[3] = 0;
v49[4] = -1;
v50 = 0;
fmt::BasicWriter::FormatDouble(&v57, v49, v19);
}
if ( this->m_moveOffset.y != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1Du);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
v18 = this->m_moveOffset.y;
v51[1] = 32;
v51[0] = 0;
v51[2] = 0;
v51[3] = 0;
v51[4] = -1;
v52 = 0;
fmt::BasicWriter::FormatDouble(&v57, v51, v18);
}
if ( this->m_duration != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0xAu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
v17 = this->m_duration;
v53[1] = 32;
v53[0] = 0;
v53[2] = 0;
v53[3] = 0;
v53[4] = -1;
v54 = 0;
fmt::BasicWriter::FormatDouble(&v57, v53, v17);
}
if ( this->m_easingType )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x1Eu);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_easingType);
}
if ( this->m_easingRate != 0.0 )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x55u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
v21 = this->m_easingRate;
v55[1] = 32;
v55[0] = 0;
v55[2] = 0;
v55[3] = 0;
v55[4] = -1;
v56 = 0;
fmt::BasicWriter::FormatDouble(&v57, v55, v21);
}
if ( this->m_moveTargetMode )
{
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(&v57, 0x65u);
fmt::BasicWriter::operator<<(&v57, &byte_F804F8, 0);
fmt::BasicWriter::FormatInt,char>>(
&v57,
this->m_moveTargetMode);
}
}
v7 = v57;
if ( v58 < v57 + 1 )
fmt::internal::Array::grow(&v57, v57 + 1);
v59[v7] = 0;
sub_D153B8(a3, v59);
if ( v59 != v60 && v59 )
operator delete[](v59);
return a3;
}