	.file	"extr_if_vtbe.c_vq_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vq_init, @function
vq_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR VIRTIO_MMIO_QUEUE_PFN[rip]
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR [rdi]
	lea	rbx, [rax+rax*2]
	mov	eax, DWORD PTR DESC_COUNT[rip]
	sal	rbx, 4
	add	rbx, QWORD PTR 16[rdi]
	mov	DWORD PTR [rbx], eax
	call	READ4@PLT
	mov	edi, eax
	call	be32toh@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR VRING_ALIGN[rip]
	mov	DWORD PTR 4[rbx], eax
	mov	ebp, eax
	call	vring_size@PLT
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	edi, DWORD PTR 8[r12]
	mov	esi, ebp
	mov	edx, eax
	sal	esi, cl
	call	paddr_map@PLT
	movsx	rdx, DWORD PTR [rbx]
	mov	esi, DWORD PTR VRING_ALIGN[rip]
	mov	QWORD PTR 40[rbx], rax
	sal	rdx, 4
	add	rax, rdx
	mov	QWORD PTR 32[rbx], rax
	lea	rdi, 48[rax+rdx]
	call	roundup2@PLT
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR VQ_ALLOC[rip]
	mov	DWORD PTR 16[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vq_init, .-vq_init
	.comm	VRING_ALIGN,4,4
	.comm	VQ_ALLOC,4,4
	.comm	VIRTIO_MMIO_QUEUE_PFN,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	DESC_COUNT,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_if_vtbe.c_vq_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vq_init, %function
vq_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L4
	ldr	r4, [r0]
	ldr	r6, [r0, #8]
	ldr	r2, [r3]
	rsb	r4, r4, r4, lsl #3
	ldr	r3, .L4+4
	lsl	r9, r4, #2
	ldr	r1, [r3]
	str	r2, [r6, r9]
	mov	r5, r0
	bl	READ4
	bl	be32toh
	ldr	r7, .L4+8
	add	r4, r6, r4, lsl #2
	mov	r8, r0
	ldr	r1, [r7]
	str	r0, [r4, #4]
	ldr	r0, [r6, r9]
	bl	vring_size
	ldr	r3, .L4+12
	mov	r2, r0
	ldr	r1, [r3]
	ldr	r0, [r5, #4]
	lsl	r1, r8, r1
	bl	paddr_map
	ldr	r2, [r6, r9]
	str	r0, [r4, #24]
	add	r3, r0, r2, lsl #4
	add	r0, r3, r2, lsl #4
	str	r3, [r4, #20]
	ldr	r1, [r7]
	add	r0, r0, #48
	bl	roundup2
	mov	r3, #0
	ldr	r2, .L4+16
	str	r0, [r4, #16]
	ldr	r2, [r2]
	mov	r0, r3
	str	r3, [r4, #8]
	str	r2, [r4, #12]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	.align	2
.L4:
	.word	DESC_COUNT
	.word	VIRTIO_MMIO_QUEUE_PFN
	.word	VRING_ALIGN
	.word	PAGE_SHIFT
	.word	VQ_ALLOC
	.size	vq_init, .-vq_init
	.comm	VRING_ALIGN,4,4
	.comm	VQ_ALLOC,4,4
	.comm	VIRTIO_MMIO_QUEUE_PFN,4,4
	.comm	PAGE_SHIFT,4,4
	.comm	DESC_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
