	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kvm_vcpu_ioctl_x86_get_xsave
_kvm_vcpu_ioctl_x86_get_xsave:          ## @kvm_vcpu_ioctl_x86_get_xsave
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	%rdi, %rax
	movq	_cpu_has_xsave@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	(%rsi), %rdi
	movq	(%rax), %rsi
	je	LBB0_1
## %bb.2:
	addq	$4, %rsi
	movq	_xstate_size@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_1:
	movl	$4, %edx
	callq	_memcpy
	movq	_XSTATE_FPSSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movq	_XSAVE_HDR_OFFSET@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	andq	$-4, %rdx
	movl	%eax, (%rcx,%rdx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_has_xsave,8,3              ## @cpu_has_xsave
	.comm	_xstate_size,4,2                ## @xstate_size
	.comm	_XSTATE_FPSSE,4,2               ## @XSTATE_FPSSE
	.comm	_XSAVE_HDR_OFFSET,4,2           ## @XSAVE_HDR_OFFSET
	.no_dead_strip	_kvm_vcpu_ioctl_x86_get_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_get_xsave
_kvm_vcpu_ioctl_x86_get_xsave:          ; @kvm_vcpu_ioctl_x86_get_xsave
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x8, x0
Lloh0:
	adrp	x9, _cpu_has_xsave@GOTPAGE
Lloh1:
	ldr	x9, [x9, _cpu_has_xsave@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x1]
	ldr	x1, [x8]
	cbz	x9, LBB0_2
; %bb.1:
	add	x1, x1, #4
Lloh3:
	adrp	x8, _xstate_size@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xstate_size@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_memcpy
LBB0_2:
	mov	w2, #4
	bl	_memcpy
Lloh6:
	adrp	x8, _XSTATE_FPSSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSTATE_FPSSE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	x9, [x19]
Lloh9:
	adrp	x10, _XSAVE_HDR_OFFSET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _XSAVE_HDR_OFFSET@GOTPAGEOFF]
Lloh11:
	ldrsw	x10, [x10]
	and	x10, x10, #0xfffffffffffffffc
	str	w8, [x9, x10]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_has_xsave,8,3              ; @cpu_has_xsave
	.comm	_xstate_size,4,2                ; @xstate_size
	.comm	_XSTATE_FPSSE,4,2               ; @XSTATE_FPSSE
	.comm	_XSAVE_HDR_OFFSET,4,2           ; @XSAVE_HDR_OFFSET
	.no_dead_strip	_kvm_vcpu_ioctl_x86_get_xsave
.subsections_via_symbols
