// // GradientTriggerObject::getSaveString from 0x779a40 to 0x77a090 (1616 bytes) // // 2 xrefs: // > @ 0x90378 // > @ 0x1163390 // // 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 GradientTriggerObject::getSaveString@( GradientTriggerObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 size_t v6; // x20 double m_previewOpacity; // d0 unsigned int *v9; // x2 int v10; // w1 const char *v11; // [xsp+E8h] [xbp+E8h] BYREF _DWORD v12[5]; // [xsp+F0h] [xbp+F0h] BYREF char v13; // [xsp+104h] [xbp+104h] size_t v14; // [xsp+108h] [xbp+108h] BYREF unsigned __int64 v15; // [xsp+110h] [xbp+110h] char *v16; // [xsp+118h] [xbp+118h] _BYTE v17[504]; // [xsp+120h] [xbp+120h] BYREF v14 = 0; v15 = 500; v16 = v17; EffectGameObject::getSaveString(this, a2, (__int64)&v11); fmt::BasicWriter::operator<<(&v14, v11, *((_QWORD *)v11 - 3)); v5 = (char *)(v11 - 24); if ( v11 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v9 = (unsigned int *)(v11 - 8); do v10 = __ldaxr(v9); while ( __stlxr(v10 - 1, v9) ); } else { v10 = *((_DWORD *)v11 - 2); *((_DWORD *)v11 - 2) = v10 - 1; } if ( v10 <= 0 ) operator delete(v5); } if ( this->m_blendingMode ) { fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xAEu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_blendingMode); if ( !this->m_blendingLayer ) { LABEL_4: if ( !this->m_upBottomLeftID ) goto LABEL_5; goto LABEL_21; } } else if ( !this->m_blendingLayer ) { goto LABEL_4; } fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xCAu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_blendingLayer); if ( !this->m_upBottomLeftID ) { LABEL_5: if ( !this->m_downBottomRightID ) goto LABEL_6; goto LABEL_22; } LABEL_21: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xCBu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_upBottomLeftID); if ( !this->m_downBottomRightID ) { LABEL_6: if ( !this->m_leftTopLeftID ) goto LABEL_7; goto LABEL_23; } LABEL_22: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xCCu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_downBottomRightID); if ( !this->m_leftTopLeftID ) { LABEL_7: if ( !this->m_rightTopRightID ) goto LABEL_8; goto LABEL_24; } LABEL_23: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xCDu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_leftTopLeftID); if ( !this->m_rightTopRightID ) { LABEL_8: if ( !this->m_vertexMode ) goto LABEL_9; goto LABEL_25; } LABEL_24: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xCEu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_rightTopRightID); if ( !this->m_vertexMode ) { LABEL_9: if ( !this->m_disable ) goto LABEL_10; goto LABEL_26; } LABEL_25: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xCFu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_vertexMode); if ( !this->m_disable ) { LABEL_10: if ( !this->m_disableAll ) goto LABEL_11; goto LABEL_27; } LABEL_26: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xD0u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_disable); if ( !this->m_disableAll ) { LABEL_11: if ( !this->m_gradientID ) goto LABEL_12; LABEL_28: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xD1u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_gradientID); if ( this->m_previewOpacity == 0.0 ) goto LABEL_13; goto LABEL_29; } LABEL_27: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x1FCu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_disableAll); if ( this->m_gradientID ) goto LABEL_28; LABEL_12: if ( this->m_previewOpacity == 0.0 ) goto LABEL_13; LABEL_29: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x1C8u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); m_previewOpacity = this->m_previewOpacity; v12[1] = 32; v12[0] = 0; v12[2] = 0; v12[3] = 0; v12[4] = -1; v13 = 0; fmt::BasicWriter::FormatDouble(&v14, v12, m_previewOpacity); LABEL_13: v6 = v14; if ( v15 < v14 + 1 ) fmt::internal::Array::grow(&v14, v14 + 1); v16[v6] = 0; sub_D153B8(a3, v16); if ( v16 != v17 && v16 ) operator delete[](v16); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source