	.file	"extr_x86.c_kvm_vcpu_ioctl_x86_set_xcrs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvm_vcpu_ioctl_x86_set_xcrs, @function
kvm_vcpu_ioctl_x86_set_xcrs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR cpu_has_xsave[rip]
	test	eax, eax
	je	.L4
	mov	edx, DWORD PTR [rsi]
	cmp	edx, DWORD PTR KVM_MAX_XCRS[rip]
	jg	.L4
	cmp	QWORD PTR 16[rsi], 0
	jne	.L4
	test	edx, edx
	jle	.L13
	mov	r8, QWORD PTR 8[rsi]
	mov	rcx, QWORD PTR XCR_XFEATURE_ENABLED_MASK[rip]
	xor	eax, eax
	mov	rsi, QWORD PTR [r8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	add	eax, 1
	cmp	edx, eax
	je	.L13
.L9:
	cmp	rsi, rcx
	jne	.L6
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edx, DWORD PTR 8[r8]
	call	__kvm_set_xcr@PLT
	test	eax, eax
	je	.L17
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
	ret
.L17:
	.cfi_def_cfa_offset 16
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	kvm_vcpu_ioctl_x86_set_xcrs, .-kvm_vcpu_ioctl_x86_set_xcrs
	.comm	cpu_has_xsave,4,4
	.comm	XCR_XFEATURE_ENABLED_MASK,8,8
	.comm	KVM_MAX_XCRS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_x86.c_kvm_vcpu_ioctl_x86_set_xcrs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_vcpu_ioctl_x86_set_xcrs, %function
kvm_vcpu_ioctl_x86_set_xcrs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, lr}
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L13+4
	ldr	r2, [r1]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L7
	ldr	r4, [r1, #8]
	cmp	r4, #0
	bne	.L7
	cmp	r2, #0
	ble	.L1
	ldr	lr, [r1, #4]
	ldr	ip, .L13+8
	mov	r3, r4
	ldr	r1, [lr]
	ldr	ip, [ip]
	b	.L9
.L6:
	cmp	r2, r3
	beq	.L1
.L9:
	cmp	r1, ip
	add	r3, r3, #1
	bne	.L6
	ldr	r2, [lr, #4]
	bl	__kvm_set_xcr
	cmp	r0, #0
	beq	.L1
.L7:
	ldr	r3, .L13+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	mov	r0, r4
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	cpu_has_xsave
	.word	KVM_MAX_XCRS
	.word	XCR_XFEATURE_ENABLED_MASK
	.word	EINVAL
	.size	kvm_vcpu_ioctl_x86_set_xcrs, .-kvm_vcpu_ioctl_x86_set_xcrs
	.comm	cpu_has_xsave,4,4
	.comm	XCR_XFEATURE_ENABLED_MASK,4,4
	.comm	KVM_MAX_XCRS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
