// // ForceBlockGameObject::getSaveString from 0x787ce4 to 0x78815c (1144 bytes) // // 2 xrefs: // > @ 0x79590 // > @ 0x1173bb0 // // 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 ForceBlockGameObject::getSaveString@( ForceBlockGameObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 size_t v6; // x20 double m_force; // d0 double m_minForce; // d0 double m_maxForce; // d0 unsigned int *v11; // x2 int v12; // w1 const char *v13; // [xsp+88h] [xbp+88h] BYREF _DWORD v14[5]; // [xsp+90h] [xbp+90h] BYREF char v15; // [xsp+A4h] [xbp+A4h] _DWORD v16[5]; // [xsp+A8h] [xbp+A8h] BYREF char v17; // [xsp+BCh] [xbp+BCh] _DWORD v18[5]; // [xsp+C0h] [xbp+C0h] BYREF char v19; // [xsp+D4h] [xbp+D4h] size_t v20; // [xsp+D8h] [xbp+D8h] BYREF unsigned __int64 v21; // [xsp+E0h] [xbp+E0h] char *v22; // [xsp+E8h] [xbp+E8h] _BYTE v23[504]; // [xsp+F0h] [xbp+F0h] BYREF v20 = 0; v21 = 500; v22 = v23; EffectGameObject::getSaveString(this, a2, (__int64)&v13); fmt::BasicWriter::operator<<(&v20, v13, *((_QWORD *)v13 - 3)); v5 = (char *)(v13 - 24); if ( v13 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v13 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v13 - 2); *((_DWORD *)v13 - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v5); } if ( this->m_force == 0.0 ) { if ( this->m_minForce == 0.0 ) goto LABEL_4; } else { fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x95u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_force = this->m_force; v14[1] = 32; v14[0] = 0; v14[2] = 0; v14[3] = 0; v14[4] = -1; v15 = 0; fmt::BasicWriter::FormatDouble(&v20, v14, m_force); if ( this->m_minForce == 0.0 ) { LABEL_4: if ( this->m_maxForce == 0.0 ) goto LABEL_5; goto LABEL_16; } } fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x20Eu); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_minForce = this->m_minForce; v16[1] = 32; v16[0] = 0; v16[2] = 0; v16[3] = 0; v16[4] = -1; v17 = 0; fmt::BasicWriter::FormatDouble(&v20, v16, m_minForce); if ( this->m_maxForce == 0.0 ) { LABEL_5: if ( !this->m_relativeForce ) goto LABEL_6; goto LABEL_17; } LABEL_16: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x20Fu); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); m_maxForce = this->m_maxForce; v18[1] = 32; v18[0] = 0; v18[2] = 0; v18[3] = 0; v18[4] = -1; v19 = 0; fmt::BasicWriter::FormatDouble(&v20, v18, m_maxForce); if ( !this->m_relativeForce ) { LABEL_6: if ( !this->m_forceRange ) goto LABEL_7; LABEL_18: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x211u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, this->m_forceRange); if ( !this->m_forceID ) goto LABEL_8; goto LABEL_19; } LABEL_17: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x210u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v20, this->m_relativeForce); if ( this->m_forceRange ) goto LABEL_18; LABEL_7: if ( !this->m_forceID ) goto LABEL_8; LABEL_19: fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, 0x212u); fmt::BasicWriter::operator<<(&v20, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v20, this->m_forceID); LABEL_8: v6 = v20; if ( v21 < v20 + 1 ) fmt::internal::Array::grow(&v20, v20 + 1); v22[v6] = 0; sub_D153B8(a3, v22); if ( v22 != v23 && v22 ) operator delete[](v22); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source