	.file	"extr_guest.c_kvm_arm_set_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kvm_arm_set_reg
	.type	kvm_arm_set_reg, @function
kvm_arm_set_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	ecx, 32
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR KVM_REG_SIZE_MASK[rip]
	mov	edi, DWORD PTR [rsi]
	mov	edx, DWORD PTR KVM_REG_ARM64[rip]
	not	eax
	and	eax, edi
	sar	edx, cl
	sar	eax, cl
	cmp	eax, edx
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR KVM_REG_ARM_COPROC_MASK[rip]
	and	eax, edi
	cmp	eax, 129
	je	.L4
	cmp	eax, 130
	je	.L5
	cmp	eax, 128
	je	.L13
	mov	QWORD PTR 8[rsp], rsi
	call	is_timer_reg@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbp
	test	rax, rax
	jne	.L14
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	kvm_arm_sys_reg_set_reg@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	kvm_arm_set_fw_reg@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	set_sve_reg@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	set_core_reg@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	add	rsp, 16
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	set_timer_reg@PLT
	.cfi_endproc
.LFE0:
	.size	kvm_arm_set_reg, .-kvm_arm_set_reg
	.comm	KVM_REG_SIZE_MASK,4,4
	.comm	KVM_REG_ARM_COPROC_MASK,4,4
	.comm	KVM_REG_ARM64,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_guest.c_kvm_arm_set_reg.c"
	.text
	.align	2
	.global	kvm_arm_set_reg
	.syntax unified
	.arm
	.fpu softvfp
	.type	kvm_arm_set_reg, %function
kvm_arm_set_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #32
	ldr	r2, .L15
	ldr	r3, .L15+4
	push	{r4, r5, r6, lr}
	ldr	r2, [r2]
	ldr	lr, [r1]
	ldr	r3, [r3]
	bic	r2, lr, r2
	asr	r3, r3, ip
	cmp	r3, r2, asr ip
	beq	.L2
	ldr	r3, .L15+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	and	r3, r3, lr
	cmp	r3, #129
	beq	.L4
	cmp	r3, #130
	beq	.L5
	cmp	r3, #128
	beq	.L13
	mov	r5, r0
	mov	r0, lr
	mov	r4, r1
	bl	is_timer_reg
	cmp	r0, #0
	mov	r1, r4
	mov	r0, r5
	bne	.L14
	pop	{r4, r5, r6, lr}
	b	kvm_arm_sys_reg_set_reg
.L13:
	pop	{r4, r5, r6, lr}
	b	kvm_arm_set_fw_reg
.L5:
	pop	{r4, r5, r6, lr}
	b	set_sve_reg
.L4:
	pop	{r4, r5, r6, lr}
	b	set_core_reg
.L14:
	pop	{r4, r5, r6, lr}
	b	set_timer_reg
.L16:
	.align	2
.L15:
	.word	KVM_REG_SIZE_MASK
	.word	KVM_REG_ARM64
	.word	EINVAL
	.word	KVM_REG_ARM_COPROC_MASK
	.size	kvm_arm_set_reg, .-kvm_arm_set_reg
	.comm	KVM_REG_SIZE_MASK,4,4
	.comm	KVM_REG_ARM_COPROC_MASK,4,4
	.comm	KVM_REG_ARM64,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
