	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___kvm_set_xcr                  ## -- Begin function __kvm_set_xcr
	.p2align	4, 0x90
___kvm_set_xcr:                         ## @__kvm_set_xcr
	.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	_XCR_XFEATURE_ENABLED_MASK@GOTPCREL(%rip), %rax
	movl	$1, %ebx
	cmpq	%rsi, (%rax)
	jne	LBB0_7
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r15
	movq	_kvm_x86_ops@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_XSTATE_FP@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.3:
	movq	_XSTATE_YMM@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_XSTATE_SSE@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
LBB0_5:
	movq	_host_xcr0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	testl	%r14d, %eax
	jne	LBB0_7
## %bb.6:
	movq	%r15, %rdi
	callq	_kvm_put_guest_xcr0
	movl	%r14d, (%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_XCR_XFEATURE_ENABLED_MASK,8,3  ## @XCR_XFEATURE_ENABLED_MASK
	.comm	_kvm_x86_ops,8,3                ## @kvm_x86_ops
	.comm	_XSTATE_FP,4,2                  ## @XSTATE_FP
	.comm	_XSTATE_YMM,4,2                 ## @XSTATE_YMM
	.comm	_XSTATE_SSE,4,2                 ## @XSTATE_SSE
	.comm	_host_xcr0,4,2                  ## @host_xcr0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___kvm_set_xcr                  ; -- Begin function __kvm_set_xcr
	.p2align	2
___kvm_set_xcr:                         ; @__kvm_set_xcr
	.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
Lloh0:
	adrp	x8, _XCR_XFEATURE_ENABLED_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XCR_XFEATURE_ENABLED_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh3:
	adrp	x8, _kvm_x86_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kvm_x86_ops@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	blr	x8
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh6:
	adrp	x8, _XSTATE_FP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSTATE_FP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.5:
Lloh9:
	adrp	x8, _XSTATE_YMM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XSTATE_YMM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _XSTATE_SSE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _XSTATE_SSE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
LBB0_7:
Lloh15:
	adrp	x8, _host_xcr0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _host_xcr0@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	bics	wzr, w19, w8
	b.ne	LBB0_2
; %bb.8:
	mov	x0, x20
	bl	_kvm_put_guest_xcr0
	mov	w0, #0
	str	w19, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_XCR_XFEATURE_ENABLED_MASK,8,3  ; @XCR_XFEATURE_ENABLED_MASK
	.comm	_kvm_x86_ops,8,3                ; @kvm_x86_ops
	.comm	_XSTATE_FP,4,2                  ; @XSTATE_FP
	.comm	_XSTATE_YMM,4,2                 ; @XSTATE_YMM
	.comm	_XSTATE_SSE,4,2                 ; @XSTATE_SSE
	.comm	_host_xcr0,4,2                  ; @host_xcr0
.subsections_via_symbols
