	.file	"extr_mlxbf-tmfifo.c_mlxbf_tmfifo_virtio_find_vqs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"vring_new_virtqueue failed\n"
	.text
	.p2align 4
	.type	mlxbf_tmfifo_virtio_find_vqs, @function
mlxbf_tmfifo_virtio_find_vqs:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], esi
	mov	QWORD PTR [rsp], rdx
	call	mlxbf_vdev_to_tmfifo@PLT
	mov	rdi, QWORD PTR [rax]
	mov	r15, rax
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR 8[rsp]
	cmp	eax, esi
	jb	.L2
	lea	eax, -1[rsi]
	xor	ebx, ebx
	mov	QWORD PTR 8[rsp], rax
	test	esi, esi
	jne	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, QWORD PTR [r15]
	lea	rax, [rbx+rbx*2]
	lea	r14, [rdx+rax*8]
	mov	esi, DWORD PTR 12[r14]
	mov	edi, DWORD PTR 16[r14]
	call	vring_size@PLT
	mov	edi, DWORD PTR 8[r14]
	xor	esi, esi
	mov	edx, eax
	call	memset@PLT
	mov	eax, DWORD PTR mlxbf_tmfifo_virtio_notify[rip]
	xor	r9d, r9d
	mov	edi, ebx
	mov	edx, DWORD PTR 12[r14]
	mov	esi, DWORD PTR 16[r14]
	push	QWORD PTR 0[rbp+rbx*8]
	.cfi_def_cfa_offset 88
	xor	r8d, r8d
	push	QWORD PTR 0[r13+rbx*8]
	.cfi_def_cfa_offset 96
	mov	rcx, r12
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 8[r14]
	push	rax
	.cfi_def_cfa_offset 112
	call	vring_new_virtqueue@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	test	rax, rax
	je	.L14
	mov	rcx, QWORD PTR [rsp]
	mov	QWORD PTR [rcx+rbx*8], rax
	mov	QWORD PTR [r14], rax
	mov	QWORD PTR [rax], r14
	lea	rax, 1[rbx]
	cmp	QWORD PTR 8[rsp], rbx
	je	.L9
	mov	rbx, rax
.L8:
	cmp	QWORD PTR 0[rbp+rbx*8], 0
	jne	.L5
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
.L6:
	mov	rdi, r12
	call	mlxbf_tmfifo_virtio_del_vqs@PLT
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L2:
	.cfi_restore_state
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	xor	r13d, r13d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	lea	rsi, .LC0[rip]
	mov	rdi, r12
	call	dev_err@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	mlxbf_tmfifo_virtio_find_vqs, .-mlxbf_tmfifo_virtio_find_vqs
	.comm	mlxbf_tmfifo_virtio_notify,4,4
	.comm	ENOMEM,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_mlxbf-tmfifo.c_mlxbf_tmfifo_virtio_find_vqs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vring_new_virtqueue failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlxbf_tmfifo_virtio_find_vqs, %function
mlxbf_tmfifo_virtio_find_vqs:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #44
	mov	r5, r1
	mov	r4, r2
	mov	r8, r3
	str	r1, [sp, #36]
	mov	r10, r0
	bl	mlxbf_vdev_to_tmfifo
	str	r0, [sp, #32]
	ldr	r0, [r0]
	bl	ARRAY_SIZE
	cmp	r0, r5
	bcc	.L2
	cmp	r5, #0
	beq	.L9
	mov	r5, #0
	sub	r3, r4, #4
	str	r3, [sp, #28]
	ldr	r3, [sp, #80]
	mov	r9, r5
	ldr	fp, .L14
	sub	r8, r8, #4
	sub	r6, r3, #4
	b	.L8
.L5:
	ldr	r3, [sp, #32]
	ldr	r7, [r3]
	add	r4, r7, r5, lsl #4
	ldr	r1, [r4, #8]
	ldr	r0, [r4, #12]
	bl	vring_size
	mov	r1, #0
	mov	r2, r0
	ldr	r0, [r4, #4]
	bl	memset
	ldr	r0, [r8, #4]!
	ldr	ip, [r6]
	ldr	r3, [fp]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #12]
	str	r0, [sp, #16]
	str	ip, [sp, #20]
	str	r3, [sp, #12]
	ldr	r3, [r4, #4]
	mov	r0, r5
	str	r3, [sp, #8]
	str	r9, [sp, #4]
	mov	r3, r10
	str	r9, [sp]
	bl	vring_new_virtqueue
	cmp	r0, #0
	beq	.L13
	ldr	r3, [sp, #28]
	str	r0, [r3, #4]!
	str	r3, [sp, #28]
	ldr	r3, [sp, #36]
	str	r0, [r7, r5, lsl #4]
	add	r5, r5, #1
	cmp	r5, r3
	str	r4, [r0]
	beq	.L9
.L8:
	ldr	r3, [r6, #4]!
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L14+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L6:
	mov	r0, r10
	bl	mlxbf_tmfifo_virtio_del_vqs
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L14+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mov	r4, #0
	mov	r0, r4
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r0, r10
	ldr	r1, .L14+8
	bl	dev_err
	ldr	r3, .L14+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L6
.L15:
	.align	2
.L14:
	.word	mlxbf_tmfifo_virtio_notify
	.word	EINVAL
	.word	.LC0
	.word	ENOMEM
	.size	mlxbf_tmfifo_virtio_find_vqs, .-mlxbf_tmfifo_virtio_find_vqs
	.comm	mlxbf_tmfifo_virtio_notify,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
