// // AdvancedFollowEditObject::getSaveString from 0x77d830 to 0x77dccc (1180 bytes) // // 2 xrefs: // > @ 0xbd600 // > @ 0x1164b90 // // 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 AdvancedFollowEditObject::getSaveString@( AdvancedFollowEditObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 size_t v6; // x20 double m_modX; // d0 double m_modXVariance; // d0 double m_modY; // d0 double m_modYVariance; // d0 unsigned int *v12; // x2 int v13; // w1 const char *v14; // [xsp+80h] [xbp+80h] BYREF _DWORD v15[5]; // [xsp+88h] [xbp+88h] BYREF char v16; // [xsp+9Ch] [xbp+9Ch] _DWORD v17[5]; // [xsp+A0h] [xbp+A0h] BYREF char v18; // [xsp+B4h] [xbp+B4h] _DWORD v19[5]; // [xsp+B8h] [xbp+B8h] BYREF char v20; // [xsp+CCh] [xbp+CCh] _DWORD v21[5]; // [xsp+D0h] [xbp+D0h] BYREF char v22; // [xsp+E4h] [xbp+E4h] size_t v23; // [xsp+E8h] [xbp+E8h] BYREF unsigned __int64 v24; // [xsp+F0h] [xbp+F0h] char *v25; // [xsp+F8h] [xbp+F8h] _BYTE v26[504]; // [xsp+100h] [xbp+100h] BYREF v23 = 0; v24 = 500; v25 = v26; AdvancedFollowTriggerObject::getSaveString(this, a2, (__int64)&v14); fmt::BasicWriter::operator<<(&v23, v14, *((_QWORD *)v14 - 3)); v5 = (char *)(v14 - 24); if ( v14 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v14 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *((_DWORD *)v14 - 2); *((_DWORD *)v14 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v5); } if ( this->m_modX == 0.0 ) { if ( this->m_modXVariance == 0.0 ) goto LABEL_4; } else { fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x236u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_modX = this->m_modX; v15[1] = 32; v15[0] = 0; v15[2] = 0; v15[3] = 0; v15[4] = -1; v16 = 0; fmt::BasicWriter::FormatDouble(&v23, v15, m_modX); if ( this->m_modXVariance == 0.0 ) { LABEL_4: if ( this->m_modY == 0.0 ) goto LABEL_5; goto LABEL_16; } } fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x237u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_modXVariance = this->m_modXVariance; v17[1] = 32; v17[0] = 0; v17[2] = 0; v17[3] = 0; v17[4] = -1; v18 = 0; fmt::BasicWriter::FormatDouble(&v23, v17, m_modXVariance); if ( this->m_modY == 0.0 ) { LABEL_5: if ( this->m_modYVariance == 0.0 ) goto LABEL_6; goto LABEL_17; } LABEL_16: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x238u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_modY = this->m_modY; v19[1] = 32; v19[0] = 0; v19[2] = 0; v19[3] = 0; v19[4] = -1; v20 = 0; fmt::BasicWriter::FormatDouble(&v23, v19, m_modY); if ( this->m_modYVariance == 0.0 ) { LABEL_6: if ( !this->m_redirectDirection ) goto LABEL_7; LABEL_18: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x23Au); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_redirectDirection); if ( !this->m_targetControlID ) goto LABEL_8; goto LABEL_19; } LABEL_17: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x239u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_modYVariance = this->m_modYVariance; v21[1] = 32; v21[0] = 0; v21[2] = 0; v21[3] = 0; v21[4] = -1; v22 = 0; fmt::BasicWriter::FormatDouble(&v23, v21, m_modYVariance); if ( this->m_redirectDirection ) goto LABEL_18; LABEL_7: if ( !this->m_targetControlID ) goto LABEL_8; LABEL_19: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x217u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_targetControlID); LABEL_8: v6 = v23; if ( v24 < v23 + 1 ) fmt::internal::Array::grow(&v23, v23 + 1); v25[v6] = 0; sub_D153B8(a3, v25); if ( v25 != v26 && v25 ) operator delete[](v25); return a3; }