// // SpawnParticleGameObject::getSaveString from 0x788d58 to 0x7894a4 (1868 bytes) // // 2 xrefs: // > @ 0x45450 // > @ 0x11763b0 // // 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 SpawnParticleGameObject::getSaveString@( SpawnParticleGameObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 size_t v6; // x20 double x; // d0 double y; // d0 double v10; // d0 double v11; // d0 double m_rotation; // d0 double m_rotationVariance; // d0 double m_scale; // d0 double m_scaleVariance; // d0 unsigned int *v16; // x2 int v17; // w1 const char *v18; // [xsp+B0h] [xbp+B0h] BYREF _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] _DWORD v23[5]; // [xsp+E8h] [xbp+E8h] BYREF char v24; // [xsp+FCh] [xbp+FCh] _DWORD v25[5]; // [xsp+100h] [xbp+100h] BYREF char v26; // [xsp+114h] [xbp+114h] _DWORD v27[5]; // [xsp+118h] [xbp+118h] BYREF char v28; // [xsp+12Ch] [xbp+12Ch] _DWORD v29[5]; // [xsp+130h] [xbp+130h] BYREF char v30; // [xsp+144h] [xbp+144h] _DWORD v31[5]; // [xsp+148h] [xbp+148h] BYREF char v32; // [xsp+15Ch] [xbp+15Ch] _DWORD v33[5]; // [xsp+160h] [xbp+160h] BYREF char v34; // [xsp+174h] [xbp+174h] size_t v35; // [xsp+178h] [xbp+178h] BYREF unsigned __int64 v36; // [xsp+180h] [xbp+180h] char *v37; // [xsp+188h] [xbp+188h] _BYTE v38[504]; // [xsp+190h] [xbp+190h] BYREF v35 = 0; v36 = 500; v37 = v38; EffectGameObject::getSaveString(this, a2, (__int64)&v18); fmt::BasicWriter::operator<<(&v35, v18, *((_QWORD *)v18 - 3)); v5 = (char *)(v18 - 24); if ( v18 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v18 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *((_DWORD *)v18 - 2); *((_DWORD *)v18 - 2) = v17 - 1; } if ( v17 <= 0 ) operator delete(v5); } if ( this->m_targetGroupID ) { fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x33u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v35, this->m_targetGroupID); if ( !this->m_centerGroupID ) { LABEL_4: if ( this->m_offset.x == 0.0 ) goto LABEL_5; goto LABEL_21; } } else if ( !this->m_centerGroupID ) { goto LABEL_4; } fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x47u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v35, this->m_centerGroupID); if ( this->m_offset.x == 0.0 ) { LABEL_5: if ( this->m_offset.y == 0.0 ) goto LABEL_6; goto LABEL_22; } LABEL_21: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x223u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); x = this->m_offset.x; v19[1] = 32; v19[0] = 0; v19[2] = 0; v19[3] = 0; v19[4] = -1; v20 = 0; fmt::BasicWriter::FormatDouble(&v35, v19, x); if ( this->m_offset.y == 0.0 ) { LABEL_6: if ( this->m_offsetVariance.x == 0.0 ) goto LABEL_7; goto LABEL_23; } LABEL_22: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x224u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); y = this->m_offset.y; v21[1] = 32; v21[0] = 0; v21[2] = 0; v21[3] = 0; v21[4] = -1; v22 = 0; fmt::BasicWriter::FormatDouble(&v35, v21, y); if ( this->m_offsetVariance.x == 0.0 ) { LABEL_7: if ( this->m_offsetVariance.y == 0.0 ) goto LABEL_8; goto LABEL_24; } LABEL_23: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x225u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); v10 = this->m_offsetVariance.x; v23[1] = 32; v23[0] = 0; v23[2] = 0; v23[3] = 0; v23[4] = -1; v24 = 0; fmt::BasicWriter::FormatDouble(&v35, v23, v10); if ( this->m_offsetVariance.y == 0.0 ) { LABEL_8: if ( !this->m_matchRotation ) goto LABEL_9; goto LABEL_25; } LABEL_24: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x226u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); v11 = this->m_offsetVariance.y; v25[1] = 32; v25[0] = 0; v25[2] = 0; v25[3] = 0; v25[4] = -1; v26 = 0; fmt::BasicWriter::FormatDouble(&v35, v25, v11); if ( !this->m_matchRotation ) { LABEL_9: if ( this->m_rotation == 0.0 ) goto LABEL_10; goto LABEL_26; } LABEL_25: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x227u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v35, this->m_matchRotation); if ( this->m_rotation == 0.0 ) { LABEL_10: if ( this->m_rotationVariance == 0.0 ) goto LABEL_11; goto LABEL_27; } LABEL_26: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x228u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); m_rotation = this->m_rotation; v27[1] = 32; v27[0] = 0; v27[2] = 0; v27[3] = 0; v27[4] = -1; v28 = 0; fmt::BasicWriter::FormatDouble(&v35, v27, m_rotation); if ( this->m_rotationVariance == 0.0 ) { LABEL_11: if ( this->m_scale == 0.0 ) goto LABEL_12; LABEL_28: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x22Au); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); m_scale = this->m_scale; v31[1] = 32; v31[0] = 0; v31[2] = 0; v31[3] = 0; v31[4] = -1; v32 = 0; fmt::BasicWriter::FormatDouble(&v35, v31, m_scale); if ( this->m_scaleVariance == 0.0 ) goto LABEL_13; goto LABEL_29; } LABEL_27: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x229u); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); m_rotationVariance = this->m_rotationVariance; v29[1] = 32; v29[0] = 0; v29[2] = 0; v29[3] = 0; v29[4] = -1; v30 = 0; fmt::BasicWriter::FormatDouble(&v35, v29, m_rotationVariance); if ( this->m_scale != 0.0 ) goto LABEL_28; LABEL_12: if ( this->m_scaleVariance == 0.0 ) goto LABEL_13; LABEL_29: fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v35, 0x22Bu); fmt::BasicWriter::operator<<(&v35, &byte_F804F8, 0); m_scaleVariance = this->m_scaleVariance; v33[1] = 32; v33[0] = 0; v33[2] = 0; v33[3] = 0; v33[4] = -1; v34 = 0; fmt::BasicWriter::FormatDouble(&v35, v33, m_scaleVariance); LABEL_13: v6 = v35; if ( v36 < v35 + 1 ) fmt::internal::Array::grow(&v35, v35 + 1); v37[v6] = 0; sub_D153B8(a3, v37); if ( v37 != v38 && v37 ) operator delete[](v37); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source