	.file	"extr_test.c_vhost_test_set_features.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vhost_test_set_features, @function
vhost_test_set_features:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mutex_lock@PLT
	mov	eax, DWORD PTR VHOST_F_LOG_ALL[rip]
	bt	ebx, eax
	jnc	.L2
	mov	rdi, rbp
	call	vhost_log_access_ok@PLT
	test	eax, eax
	je	.L9
.L2:
	mov	rdx, QWORD PTR VHOST_TEST_VQ[rip]
	mov	rax, QWORD PTR 8[rbp]
	lea	r13, [rax+rdx*8]
	lea	r12, 4[r13]
	mov	rdi, r12
	call	mutex_lock@PLT
	mov	DWORD PTR 0[r13], ebx
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR EFAULT[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vhost_test_set_features, .-vhost_test_set_features
	.comm	VHOST_TEST_VQ,8,8
	.comm	VHOST_F_LOG_ALL,4,4
	.comm	EFAULT,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_test.c_vhost_test_set_features.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vhost_test_set_features, %function
vhost_test_set_features:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r4, r0
	bl	mutex_lock
	ldr	r3, .L10
	ldr	r3, [r3]
	asr	r3, r5, r3
	tst	r3, #1
	beq	.L2
	mov	r0, r4
	bl	vhost_log_access_ok
	cmp	r0, #0
	beq	.L9
.L2:
	ldr	r3, .L10+4
	ldr	r7, [r4, #4]
	ldr	r8, [r3]
	add	r6, r7, r8, lsl #3
	add	r6, r6, #4
	mov	r0, r6
	bl	mutex_lock
	mov	r0, r6
	str	r5, [r7, r8, lsl #3]
	bl	mutex_unlock
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, .L10+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	VHOST_F_LOG_ALL
	.word	VHOST_TEST_VQ
	.word	EFAULT
	.size	vhost_test_set_features, .-vhost_test_set_features
	.comm	VHOST_TEST_VQ,4,4
	.comm	VHOST_F_LOG_ALL,4,4
	.comm	EFAULT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
