	.file	"extr_x86.c_kvm_vcpu_ioctl_x86_setup_mce.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kvm_vcpu_ioctl_x86_setup_mce, @function
kvm_vcpu_ioctl_x86_setup_mce:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR EINVAL[rip]
	mov	ecx, esi
	neg	eax
	and	ecx, 255
	je	.L14
	cmp	DWORD PTR KVM_MAX_MCE_BANKS[rip], ecx
	jbe	.L14
	mov	edx, DWORD PTR kvm_mce_cap_supported[rip]
	or	edx, 16711935
	not	edx
	test	edx, esi
	jne	.L14
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	DWORD PTR [rdi], esi
	test	DWORD PTR MCG_CTL_P[rip], esi
	jne	.L18
.L3:
	mov	rdx, QWORD PTR 8[rdi]
	sub	ecx, 1
	sal	rcx, 4
	lea	rax, 16[rdx]
	add	rcx, rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	add	rax, 16
.L4:
	mov	DWORD PTR [rdx], -1
	mov	rdx, rax
	cmp	rax, rcx
	jne	.L19
.L2:
	endbr64
	mov	rax, QWORD PTR kvm_x86_ops[rip]
	call	[QWORD PTR [rax]]
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 16
	mov	DWORD PTR 4[rdi], -1
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	kvm_vcpu_ioctl_x86_setup_mce, .-kvm_vcpu_ioctl_x86_setup_mce
	.comm	kvm_x86_ops,8,8
	.comm	kvm_mce_cap_supported,4,4
	.comm	MCG_CTL_P,4,4
	.comm	KVM_MAX_MCE_BANKS,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_setup_mce.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_vcpu_ioctl_x86_setup_mce, %function
kvm_vcpu_ioctl_x86_setup_mce:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, lr}
	ldr	r3, [r3]
	ands	lr, r1, #255
	mov	ip, r0
	rsb	r0, r3, #0
	popeq	{r4, pc}
	ldr	r3, .L14+4
	ldr	r3, [r3]
	cmp	r3, lr
	popls	{r4, pc}
	ldr	r3, .L14+8
	ldr	r3, [r3]
	orr	r3, r3, #16711680
	orr	r3, r3, #255
	bics	r3, r1, r3
	popne	{r4, pc}
	ldr	r3, .L14+12
	str	r1, [ip]
	ldr	r3, [r3]
	ldr	r2, [ip, #8]
	tst	r1, r3
	mvnne	r3, #0
	mvn	r1, #0
	strne	r3, [ip, #4]
	mov	r3, #0
.L4:
	str	r1, [r2, r3, lsl #4]
	add	r3, r3, #1
	cmp	lr, r3
	bne	.L4
.L2:
	ldr	r3, .L14+16
	mov	r0, ip
	ldr	r3, [r3]
	ldr	r3, [r3]
	blx	r3
	mov	r0, #0
	pop	{r4, pc}
.L15:
	.align	2
.L14:
	.word	EINVAL
	.word	KVM_MAX_MCE_BANKS
	.word	kvm_mce_cap_supported
	.word	MCG_CTL_P
	.word	kvm_x86_ops
	.size	kvm_vcpu_ioctl_x86_setup_mce, .-kvm_vcpu_ioctl_x86_setup_mce
	.comm	kvm_x86_ops,4,4
	.comm	kvm_mce_cap_supported,4,4
	.comm	MCG_CTL_P,4,4
	.comm	KVM_MAX_MCE_BANKS,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
