	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_vcpu_ioctl_x86_set_xsave
_kvm_vcpu_ioctl_x86_set_xsave:          ## @kvm_vcpu_ioctl_x86_set_xsave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rsi
	movq	_cpu_has_xsave@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rdi
	addq	$4, %rdi
	movq	_xstate_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_5:
	callq	_memcpy
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_XSAVE_HDR_OFFSET@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	andq	$-4, %rax
	movq	_XSTATE_FPSSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	testl	%ecx, (%rsi,%rax)
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	(%rdi), %rdi
	movl	$4, %edx
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_XSAVE_HDR_OFFSET,4,2           ## @XSAVE_HDR_OFFSET
	.comm	_cpu_has_xsave,8,3              ## @cpu_has_xsave
	.comm	_xstate_size,4,2                ## @xstate_size
	.comm	_XSTATE_FPSSE,4,2               ## @XSTATE_FPSSE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_kvm_vcpu_ioctl_x86_set_xsave
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kvm_vcpu_ioctl_x86_set_xsave
_kvm_vcpu_ioctl_x86_set_xsave:          ; @kvm_vcpu_ioctl_x86_set_xsave
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x1, [x1]
Lloh0:
	adrp	x8, _cpu_has_xsave@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_has_xsave@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	add	x0, x8, #4
Lloh3:
	adrp	x8, _xstate_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xstate_size@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
LBB0_2:
	bl	_memcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, _XSAVE_HDR_OFFSET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSAVE_HDR_OFFSET@GOTPAGEOFF]
Lloh8:
	ldrsw	x8, [x8]
	and	x8, x8, #0xfffffffffffffffc
	ldr	w8, [x1, x8]
Lloh9:
	adrp	x9, _XSTATE_FPSSE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XSTATE_FPSSE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bics	wzr, w8, w9
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x0, [x0]
	mov	w2, #4
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_XSAVE_HDR_OFFSET,4,2           ; @XSAVE_HDR_OFFSET
	.comm	_cpu_has_xsave,8,3              ; @cpu_has_xsave
	.comm	_xstate_size,4,2                ; @xstate_size
	.comm	_XSTATE_FPSSE,4,2               ; @XSTATE_FPSSE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_kvm_vcpu_ioctl_x86_set_xsave
.subsections_via_symbols
