// // KeyframeGameObject::getSaveString from 0x780bfc to 0x7815ac (2480 bytes) // // 2 xrefs: // > @ 0xa08a8 // > @ 0x116cbb0 // // 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 KeyframeGameObject::getSaveString@( KeyframeGameObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 size_t v6; // x20 double m_easingRate; // d0 double m_duration; // d0 double m_spawnDelay; // d0 double m_lineOpacity; // d0 unsigned int *v12; // x2 int v13; // w1 const char *v14; // [xsp+140h] [xbp+140h] BYREF _DWORD v15[5]; // [xsp+148h] [xbp+148h] BYREF char v16; // [xsp+15Ch] [xbp+15Ch] _DWORD v17[5]; // [xsp+160h] [xbp+160h] BYREF char v18; // [xsp+174h] [xbp+174h] _DWORD v19[5]; // [xsp+178h] [xbp+178h] BYREF char v20; // [xsp+18Ch] [xbp+18Ch] _DWORD v21[5]; // [xsp+190h] [xbp+190h] BYREF char v22; // [xsp+1A4h] [xbp+1A4h] size_t v23; // [xsp+1A8h] [xbp+1A8h] BYREF unsigned __int64 v24; // [xsp+1B0h] [xbp+1B0h] char *v25; // [xsp+1B8h] [xbp+1B8h] _BYTE v26[504]; // [xsp+1C0h] [xbp+1C0h] BYREF v23 = 0; v24 = 500; v25 = v26; EffectGameObject::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_targetGroupID ) { fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x33u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_targetGroupID); if ( !this->m_keyframeGroup ) { LABEL_4: if ( !this->m_keyframeIndex ) goto LABEL_5; goto LABEL_28; } } else if ( !this->m_keyframeGroup ) { goto LABEL_4; } fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x175u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_keyframeGroup); if ( !this->m_keyframeIndex ) { LABEL_5: if ( !this->m_referenceOnly ) goto LABEL_6; goto LABEL_29; } LABEL_28: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x176u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_keyframeIndex); if ( !this->m_referenceOnly ) { LABEL_6: if ( !this->m_easingType ) goto LABEL_7; goto LABEL_30; } LABEL_29: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x177u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_referenceOnly); if ( !this->m_easingType ) { LABEL_7: if ( this->m_easingRate == 0.0 ) goto LABEL_8; goto LABEL_31; } LABEL_30: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x1Eu); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_easingType); if ( this->m_easingRate == 0.0 ) { LABEL_8: if ( this->m_duration == 0.0 ) goto LABEL_9; goto LABEL_32; } LABEL_31: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x55u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_easingRate = this->m_easingRate; v15[1] = 32; v15[0] = 0; v15[2] = 0; v15[3] = 0; v15[4] = -1; v16 = 0; fmt::BasicWriter::FormatDouble(&v23, v15, m_easingRate); if ( this->m_duration == 0.0 ) { LABEL_9: if ( !this->m_centerGroupID ) goto LABEL_10; goto LABEL_33; } LABEL_32: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0xAu); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_duration = this->m_duration; v17[1] = 32; v17[0] = 0; v17[2] = 0; v17[3] = 0; v17[4] = -1; v18 = 0; fmt::BasicWriter::FormatDouble(&v23, v17, m_duration); if ( !this->m_centerGroupID ) { LABEL_10: if ( !this->m_proximity ) goto LABEL_11; goto LABEL_34; } LABEL_33: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x47u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_centerGroupID); if ( !this->m_proximity ) { LABEL_11: if ( this->m_spawnDelay == 0.0 ) goto LABEL_12; goto LABEL_35; } LABEL_34: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x179u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_proximity); if ( this->m_spawnDelay == 0.0 ) { LABEL_12: if ( !this->m_curve ) goto LABEL_13; goto LABEL_36; } LABEL_35: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x22Du); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_spawnDelay = this->m_spawnDelay; v19[1] = 32; v19[0] = 0; v19[2] = 0; v19[3] = 0; v19[4] = -1; v20 = 0; fmt::BasicWriter::FormatDouble(&v23, v19, m_spawnDelay); if ( !this->m_curve ) { LABEL_13: if ( !this->m_timeMode ) goto LABEL_14; goto LABEL_37; } LABEL_36: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x17Au); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_curve); if ( !this->m_timeMode ) { LABEL_14: if ( !this->m_closeLoop ) goto LABEL_15; goto LABEL_38; } LABEL_37: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x17Bu); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_timeMode); if ( !this->m_closeLoop ) { LABEL_15: if ( !this->m_previewArt ) goto LABEL_16; goto LABEL_39; } LABEL_38: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x178u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_closeLoop); if ( !this->m_previewArt ) { LABEL_16: if ( !this->m_autoLayer ) goto LABEL_17; goto LABEL_40; } LABEL_39: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x17Cu); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_previewArt); if ( !this->m_autoLayer ) { LABEL_17: if ( !this->m_direction ) goto LABEL_18; goto LABEL_41; } LABEL_40: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x1CBu); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_autoLayer); if ( !this->m_direction ) { LABEL_18: if ( !this->m_revolutions ) goto LABEL_19; LABEL_42: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x219u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v23, this->m_revolutions); if ( this->m_lineOpacity == 0.0 ) goto LABEL_20; goto LABEL_43; } LABEL_41: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x218u); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, this->m_direction); if ( this->m_revolutions ) goto LABEL_42; LABEL_19: if ( this->m_lineOpacity == 0.0 ) goto LABEL_20; LABEL_43: fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v23, 0x20Cu); fmt::BasicWriter::operator<<(&v23, &byte_F804F8, 0); m_lineOpacity = this->m_lineOpacity; v21[1] = 32; v21[0] = 0; v21[2] = 0; v21[3] = 0; v21[4] = -1; v22 = 0; fmt::BasicWriter::FormatDouble(&v23, v21, m_lineOpacity); LABEL_20: 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; }
GD Web Decomp Icon

GD Web Decomp

Raw Source