// automatically generated by stateify.

//go:build arm64 && arm64 && arm64
// +build arm64,arm64,arm64

package arch

import (
	"context"

	"gvisor.dev/gvisor/pkg/state"
)

func (c *Context64) StateTypeName() string {
	return "pkg/sentry/arch.Context64"
}

func (c *Context64) StateFields() []string {
	return []string{
		"State",
		"sigFPState",
	}
}

func (c *Context64) beforeSave() {}

// +checklocksignore
func (c *Context64) StateSave(stateSinkObject state.Sink) {
	c.beforeSave()
	stateSinkObject.Save(0, &c.State)
	stateSinkObject.Save(1, &c.sigFPState)
}

func (c *Context64) afterLoad(context.Context) {}

// +checklocksignore
func (c *Context64) StateLoad(ctx context.Context, stateSourceObject state.Source) {
	stateSourceObject.Load(0, &c.State)
	stateSourceObject.Load(1, &c.sigFPState)
}

func init() {
	state.Register((*Context64)(nil))
}
