	.file	"extr_scsi.c_vhost_scsi_init_inflight.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vhost_scsi_init_inflight, @function
vhost_scsi_init_inflight:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR VHOST_SCSI_MAX_VQ[rip]
	test	eax, eax
	jle	.L10
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r14, QWORD PTR 0[rbp]
	lea	rax, 0[r13+r13*2]
	lea	rbx, 0[0+rax*8]
	add	r14, rbx
	add	r14, 16
	mov	rdi, r14
	call	mutex_lock@PLT
	mov	rax, QWORD PTR 0[rbp]
	add	rax, rbx
	mov	edx, DWORD PTR [rax]
	test	r12, r12
	je	.L3
	mov	rsi, QWORD PTR 8[rax]
	movsx	rcx, edx
	lea	rcx, [rsi+rcx*8]
	mov	QWORD PTR [r12+r13*8], rcx
.L3:
	xor	edx, 1
	add	r13, 1
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 8[rax]
	movsx	rdx, edx
	lea	r15, [rax+rdx*8]
	lea	rdi, 4[r15]
	call	kref_init@PLT
	mov	rdi, r15
	call	init_completion@PLT
	mov	rdi, r14
	call	mutex_unlock@PLT
	cmp	DWORD PTR VHOST_SCSI_MAX_VQ[rip], r13d
	jg	.L4
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	vhost_scsi_init_inflight, .-vhost_scsi_init_inflight
	.comm	VHOST_SCSI_MAX_VQ,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_scsi.c_vhost_scsi_init_inflight.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vhost_scsi_init_inflight, %function
vhost_scsi_init_inflight:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L11
	ldr	r3, [r8]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r9, #0
	mov	r10, r0
	mov	r7, r1
	mov	r6, r9
.L4:
	ldr	r4, [r10]
	add	r4, r4, r9
	add	r4, r4, #8
	mov	r0, r4
	bl	mutex_lock
	ldr	r3, [r10]
	cmp	r7, #0
	add	r2, r3, r9
	ldrne	r1, [r2, #4]
	ldr	r3, [r3, r9]
	add	r9, r9, #12
	addne	r1, r1, r3, lsl #3
	strne	r1, [r7, r6, lsl #2]
	ldr	r5, [r2, #4]
	eor	r3, r3, #1
	add	r5, r5, r3, lsl #3
	str	r3, [r2]
	add	r0, r5, #4
	bl	kref_init
	mov	r0, r5
	bl	init_completion
	mov	r0, r4
	bl	mutex_unlock
	ldr	r3, [r8]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	VHOST_SCSI_MAX_VQ
	.size	vhost_scsi_init_inflight, .-vhost_scsi_init_inflight
	.comm	VHOST_SCSI_MAX_VQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
