	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp2SaveState                  ## -- Begin function Vdp2SaveState
	.p2align	4, 0x90
_Vdp2SaveState:                         ## @Vdp2SaveState
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	$0, -32(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$1, %edx
	callq	_StateWriteHeader
	movl	%eax, %r14d
	movq	_Vdp2Regs@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%rbx, %r8
	callq	_ywrite
	movq	_Vdp2Ram@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$524288, %edx                   ## imm = 0x80000
	movl	$1, %ecx
	movq	%rbx, %r8
	callq	_ywrite
	movq	_Vdp2ColorRam@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	movl	$1, %ecx
	movq	%rbx, %r8
	callq	_ywrite
	movq	_Vdp2Internal@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	movl	$1, %ecx
	movq	%rbx, %r8
	callq	_ywrite
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_StateFinishHeader
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VDP2"

	.comm	_Vdp2Regs,8,3                   ## @Vdp2Regs
	.comm	_Vdp2Ram,8,3                    ## @Vdp2Ram
	.comm	_Vdp2ColorRam,8,3               ## @Vdp2ColorRam
	.comm	_Vdp2Internal,4,2               ## @Vdp2Internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Vdp2SaveState                  ; -- Begin function Vdp2SaveState
	.p2align	2
_Vdp2SaveState:                         ; @Vdp2SaveState
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #1
	bl	_StateWriteHeader
	mov	x20, x0
Lloh2:
	adrp	x8, _Vdp2Regs@GOTPAGE
Lloh3:
	ldr	x8, [x8, _Vdp2Regs@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	add	x0, sp, #8
	mov	w2, #4
	mov	w3, #1
	mov	x4, x19
	bl	_ywrite
Lloh5:
	adrp	x8, _Vdp2Ram@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Vdp2Ram@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	add	x0, sp, #8
	mov	w2, #524288
	mov	w3, #1
	mov	x4, x19
	bl	_ywrite
Lloh8:
	adrp	x8, _Vdp2ColorRam@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Vdp2ColorRam@GOTPAGEOFF]
Lloh10:
	ldr	x1, [x8]
	add	x0, sp, #8
	mov	w2, #4096
	mov	w3, #1
	mov	x4, x19
	bl	_ywrite
Lloh11:
	adrp	x1, _Vdp2Internal@GOTPAGE
Lloh12:
	ldr	x1, [x1, _Vdp2Internal@GOTPAGEOFF]
	add	x0, sp, #8
	mov	w2, #4
	mov	w3, #1
	mov	x4, x19
	bl	_ywrite
	mov	x0, x19
	mov	x1, x20
	bl	_StateFinishHeader
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VDP2"

	.comm	_Vdp2Regs,8,3                   ; @Vdp2Regs
	.comm	_Vdp2Ram,8,3                    ; @Vdp2Ram
	.comm	_Vdp2ColorRam,8,3               ; @Vdp2ColorRam
	.comm	_Vdp2Internal,4,2               ; @Vdp2Internal
.subsections_via_symbols
