// // TeleportPortalObject::getSaveString from 0x77f3c0 to 0x77fd5c (2460 bytes) // // 2 xrefs: // > @ 0x59640 // > @ 0x116aba0 // // 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 TeleportPortalObject::getSaveString@( TeleportPortalObject *this@, GJBaseGameLayer *a2@, __int64 a3@) { char *v5; // x0 float v6; // s8 size_t v7; // x20 double m_staticForce; // d0 double m_redirectForceMod; // d0 double m_redirectForceMin; // d0 double m_redirectForceMax; // d0 unsigned int *v13; // x2 int v14; // w1 const char *v15; // [xsp+138h] [xbp+138h] BYREF _DWORD v16[5]; // [xsp+140h] [xbp+140h] BYREF char v17; // [xsp+154h] [xbp+154h] _DWORD v18[5]; // [xsp+158h] [xbp+158h] BYREF char v19; // [xsp+16Ch] [xbp+16Ch] _DWORD v20[5]; // [xsp+170h] [xbp+170h] BYREF char v21; // [xsp+184h] [xbp+184h] __int64 v22; // [xsp+188h] [xbp+188h] BYREF int v23; // [xsp+190h] [xbp+190h] int v24; // [xsp+194h] [xbp+194h] int v25; // [xsp+198h] [xbp+198h] char v26; // [xsp+19Ch] [xbp+19Ch] __int64 v27; // [xsp+1A0h] [xbp+1A0h] BYREF int v28; // [xsp+1A8h] [xbp+1A8h] int v29; // [xsp+1ACh] [xbp+1ACh] int v30; // [xsp+1B0h] [xbp+1B0h] char v31; // [xsp+1B4h] [xbp+1B4h] size_t v32; // [xsp+1B8h] [xbp+1B8h] BYREF unsigned __int64 v33; // [xsp+1C0h] [xbp+1C0h] char *v34; // [xsp+1C8h] [xbp+1C8h] _BYTE v35[504]; // [xsp+1D0h] [xbp+1D0h] BYREF v32 = 0; v33 = 500; v34 = v35; EffectGameObject::getSaveString(this, a2, (__int64)&v15); fmt::BasicWriter::operator<<(&v32, v15, *((_QWORD *)v15 - 3)); v5 = (char *)(v15 - 24); if ( v15 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v15 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *((_DWORD *)v15 - 2); *((_DWORD *)v15 - 2) = v14 - 1; } if ( v14 <= 0 ) operator delete(v5); } if ( this->m_orangePortal ) { fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x36u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); ((void (__fastcall *)(__int64 *__return_ptr, TeleportPortalObject *))this->m_orangePortal->getStartPos)( &v22, this->m_orangePortal); v6 = *((float *)&v22 + 1); ((void (__fastcall *)(__int64 *__return_ptr, TeleportPortalObject *))this->getStartPos)(&v27, this); v16[1] = 32; v16[0] = 0; v16[2] = 0; v16[3] = 0; v16[4] = -1; v17 = 0; fmt::BasicWriter::FormatDouble(&v32, v16, (float)(v6 - *((float *)&v27 + 1))); } if ( this->m_teleportEase ) { fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x37u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v32, this->m_teleportEase); if ( !this->m_targetGroupID ) { LABEL_6: if ( !this->m_staticForceEnabled ) goto LABEL_7; goto LABEL_28; } } else if ( !this->m_targetGroupID ) { goto LABEL_6; } fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x33u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v32, this->m_targetGroupID); if ( !this->m_staticForceEnabled ) { LABEL_7: if ( this->m_staticForce == 0.0 ) goto LABEL_8; goto LABEL_29; } LABEL_28: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x159u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v32, this->m_staticForceEnabled); if ( this->m_staticForce == 0.0 ) { LABEL_8: if ( !this->m_redirectForceEnabled ) goto LABEL_9; goto LABEL_30; } LABEL_29: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x15Au); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); m_staticForce = this->m_staticForce; v18[1] = 32; v18[0] = 0; v18[2] = 0; v18[3] = 0; v18[4] = -1; v19 = 0; fmt::BasicWriter::FormatDouble(&v32, v18, m_staticForce); if ( !this->m_redirectForceEnabled ) { LABEL_9: if ( this->m_redirectForceMod == 0.0 ) goto LABEL_10; goto LABEL_31; } LABEL_30: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x15Bu); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v32, this->m_redirectForceEnabled); if ( this->m_redirectForceMod == 0.0 ) { LABEL_10: if ( this->m_redirectForceMin == 0.0 ) goto LABEL_11; goto LABEL_32; } LABEL_31: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x15Eu); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); m_redirectForceMod = this->m_redirectForceMod; v20[1] = 32; v20[0] = 0; v20[2] = 0; v20[3] = 0; v20[4] = -1; v21 = 0; fmt::BasicWriter::FormatDouble(&v32, v20, m_redirectForceMod); if ( this->m_redirectForceMin == 0.0 ) { LABEL_11: if ( this->m_redirectForceMax == 0.0 ) goto LABEL_12; goto LABEL_33; } LABEL_32: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x15Cu); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); m_redirectForceMin = this->m_redirectForceMin; v22 = 0x2000000000LL; v23 = 0; v24 = 0; v25 = -1; v26 = 0; fmt::BasicWriter::FormatDouble(&v32, &v22, m_redirectForceMin); if ( this->m_redirectForceMax == 0.0 ) { LABEL_12: if ( !this->m_saveOffset ) goto LABEL_13; goto LABEL_34; } LABEL_33: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x15Du); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); m_redirectForceMax = this->m_redirectForceMax; v27 = 0x2000000000LL; v28 = 0; v29 = 0; v30 = -1; v31 = 0; fmt::BasicWriter::FormatDouble(&v32, &v27, m_redirectForceMax); if ( !this->m_saveOffset ) { LABEL_13: if ( !this->m_ignoreX ) goto LABEL_14; goto LABEL_35; } LABEL_34: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x15Fu); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, this->m_saveOffset); if ( !this->m_ignoreX ) { LABEL_14: if ( !this->m_ignoreY ) goto LABEL_15; goto LABEL_36; } LABEL_35: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x160u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, this->m_ignoreX); if ( !this->m_ignoreY ) { LABEL_15: if ( !this->m_gravityMode ) goto LABEL_16; goto LABEL_37; } LABEL_36: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x161u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, this->m_ignoreY); if ( !this->m_gravityMode ) { LABEL_16: if ( !this->m_staticForceAdditive ) goto LABEL_17; goto LABEL_38; } LABEL_37: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x162u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, this->m_gravityMode); if ( !this->m_staticForceAdditive ) { LABEL_17: if ( !this->m_instantCamera ) goto LABEL_18; goto LABEL_39; } LABEL_38: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x1BBu); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v32, this->m_staticForceAdditive); if ( !this->m_instantCamera ) { LABEL_18: if ( !this->m_snapGround ) goto LABEL_19; LABEL_40: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x1FEu); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, this->m_snapGround); if ( !this->m_redirectDash ) goto LABEL_20; goto LABEL_41; } LABEL_39: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x1D0u); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>( &v32, this->m_instantCamera); if ( this->m_snapGround ) goto LABEL_40; LABEL_19: if ( !this->m_redirectDash ) goto LABEL_20; LABEL_41: fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, 0x24Fu); fmt::BasicWriter::operator<<(&v32, &byte_F804F8, 0); fmt::BasicWriter::FormatInt,char>>(&v32, this->m_redirectDash); LABEL_20: v7 = v32; if ( v33 < v32 + 1 ) fmt::internal::Array::grow(&v32, v32 + 1); v34[v7] = 0; sub_D153B8(a3, v34); if ( v34 != v35 && v34 ) operator delete[](v34); return a3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source