// // GameOptionsTrigger::getSaveString from 0x77dccc to 0x77e460 (1940 bytes) // // 2 xrefs: // > @ 0xb0ad8 // > @ 0x1165390 // // 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 GameOptionsTrigger::getSaveString@( GameOptionsTrigger *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 size_t v6; // x20 double m_respawnTime; // d0 unsigned int *v9; // x2 int v10; // w1 const char *v11; // [xsp+118h] [xbp+118h] BYREF _DWORD v12[5]; // [xsp+120h] [xbp+120h] BYREF char v13; // [xsp+134h] [xbp+134h] size_t v14; // [xsp+138h] [xbp+138h] BYREF unsigned __int64 v15; // [xsp+140h] [xbp+140h] char *v16; // [xsp+148h] [xbp+148h] _BYTE v17[504]; // [xsp+150h] [xbp+150h] 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_streakAdditive ) { fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x9Fu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_streakAdditive); if ( this->m_unlinkDualGravity == Disabled ) { LABEL_4: if ( this->m_hideGround == Disabled ) goto LABEL_5; goto LABEL_24; } } else if ( this->m_unlinkDualGravity == Disabled ) { goto LABEL_4; } fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xA0u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_unlinkDualGravity); if ( this->m_hideGround == Disabled ) { LABEL_5: if ( this->m_hideP1 == Disabled ) goto LABEL_6; goto LABEL_25; } LABEL_24: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xA1u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_hideGround); if ( this->m_hideP1 == Disabled ) { LABEL_6: if ( this->m_hideP2 == Disabled ) goto LABEL_7; goto LABEL_26; } LABEL_25: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xA2u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_hideP1); if ( this->m_hideP2 == Disabled ) { LABEL_7: if ( this->m_disableP1Controls == Disabled ) goto LABEL_8; goto LABEL_27; } LABEL_26: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xA3u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_hideP2); if ( this->m_disableP1Controls == Disabled ) { LABEL_8: if ( this->m_disableP2Controls == Disabled ) goto LABEL_9; goto LABEL_28; } LABEL_27: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xA5u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_disableP1Controls); if ( this->m_disableP2Controls == Disabled ) { LABEL_9: if ( this->m_hideMG == Disabled ) goto LABEL_10; goto LABEL_29; } LABEL_28: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xC7u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_disableP2Controls); if ( this->m_hideMG == Disabled ) { LABEL_10: if ( this->m_hideAttempts == Disabled ) goto LABEL_11; goto LABEL_30; } LABEL_29: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0xC3u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_hideMG); if ( this->m_hideAttempts == Disabled ) { LABEL_11: if ( this->m_editRespawnTime == Disabled ) goto LABEL_12; goto LABEL_31; } LABEL_30: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x214u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_hideAttempts); if ( this->m_editRespawnTime == Disabled ) { LABEL_12: if ( this->m_respawnTime == 0.0 ) goto LABEL_13; goto LABEL_32; } LABEL_31: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x23Du); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v14, this->m_editRespawnTime); if ( this->m_respawnTime == 0.0 ) { LABEL_13: if ( this->m_audioOnDeath == Disabled ) goto LABEL_14; goto LABEL_33; } LABEL_32: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x23Eu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); m_respawnTime = this->m_respawnTime; v12[1] = 32; v12[0] = 0; v12[2] = 0; v12[3] = 0; v12[4] = -1; v13 = 0; fmt::BasicWriter::FormatDouble(&v14, v12, m_respawnTime); if ( this->m_audioOnDeath == Disabled ) { LABEL_14: if ( this->m_noDeathSFX == Disabled ) goto LABEL_15; LABEL_34: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x240u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_noDeathSFX); if ( this->m_boostSlide == Disabled ) goto LABEL_16; goto LABEL_35; } LABEL_33: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x23Fu); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_audioOnDeath); if ( this->m_noDeathSFX ) goto LABEL_34; LABEL_15: if ( this->m_boostSlide == Disabled ) goto LABEL_16; LABEL_35: fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, 0x251u); fmt::BasicWriter::operator<<(&v14, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v14, this->m_boostSlide); LABEL_16: 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