	.file	"extr_virtio_ring.c_virtqueue_enable_cb_prepare_packed.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	virtqueue_enable_cb_prepare_packed, @function
virtqueue_enable_cb_prepare_packed:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	to_vvq@PLT
	mov	rbx, rax
	mov	rdi, rax
	call	START_USE@PLT
	cmp	QWORD PTR 24[rbx], 0
	jne	.L11
	mov	eax, DWORD PTR VRING_PACKED_EVENT_FLAG_DISABLE[rip]
	cmp	DWORD PTR 12[rbx], eax
	je	.L5
.L4:
	mov	rdi, rbx
	call	END_USE@PLT
	mov	eax, DWORD PTR 8[rbx]
	mov	ecx, DWORD PTR VRING_PACKED_EVENT_F_WRAP_CTR[rip]
	sal	eax, cl
	or	eax, DWORD PTR [rbx]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	ecx, DWORD PTR VRING_PACKED_EVENT_F_WRAP_CTR[rip]
	mov	edi, DWORD PTR 8[rbx]
	mov	rbp, QWORD PTR 16[rbx]
	sal	edi, cl
	or	edi, DWORD PTR [rbx]
	call	cpu_to_le16@PLT
	mov	edi, DWORD PTR 32[rbx]
	mov	QWORD PTR 8[rbp], rax
	call	virtio_wmb@PLT
	mov	eax, DWORD PTR VRING_PACKED_EVENT_FLAG_DISABLE[rip]
	cmp	DWORD PTR 12[rbx], eax
	jne	.L4
	cmp	QWORD PTR 24[rbx], 0
	je	.L5
	mov	edi, DWORD PTR VRING_PACKED_EVENT_FLAG_DESC[rip]
.L6:
	mov	DWORD PTR 12[rbx], edi
	mov	rbp, QWORD PTR 16[rbx]
	call	cpu_to_le16@PLT
	mov	QWORD PTR 0[rbp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, DWORD PTR VRING_PACKED_EVENT_FLAG_ENABLE[rip]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	virtqueue_enable_cb_prepare_packed, .-virtqueue_enable_cb_prepare_packed
	.comm	VRING_PACKED_EVENT_F_WRAP_CTR,4,4
	.comm	VRING_PACKED_EVENT_FLAG_ENABLE,4,4
	.comm	VRING_PACKED_EVENT_FLAG_DISABLE,4,4
	.comm	VRING_PACKED_EVENT_FLAG_DESC,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_virtio_ring.c_virtqueue_enable_cb_prepare_packed.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	virtqueue_enable_cb_prepare_packed, %function
virtqueue_enable_cb_prepare_packed:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	to_vvq
	mov	r4, r0
	bl	START_USE
	ldr	r3, [r4, #16]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L16
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	ldr	r5, .L16+4
	cmp	r2, r3
	beq	.L5
.L4:
	mov	r0, r4
	bl	END_USE
	ldm	r4, {r0, r2}
	ldr	r3, [r5]
	orr	r0, r0, r2, lsl r3
	pop	{r4, r5, r6, pc}
.L15:
	ldr	r5, .L16+4
	ldr	r3, [r4]
	ldr	r2, [r5]
	ldr	r0, [r4, #4]
	ldr	r6, [r4, #12]
	orr	r0, r3, r0, lsl r2
	bl	cpu_to_le16
	mov	r3, r0
	ldr	r0, [r4, #20]
	str	r3, [r6, #4]
	bl	virtio_wmb
	ldr	r3, .L16
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [r4, #16]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L16+8
	ldr	r0, [r3]
.L6:
	str	r0, [r4, #8]
	ldr	r6, [r4, #12]
	bl	cpu_to_le16
	str	r0, [r6]
	b	.L4
.L5:
	ldr	r3, .L16+12
	ldr	r0, [r3]
	b	.L6
.L17:
	.align	2
.L16:
	.word	VRING_PACKED_EVENT_FLAG_DISABLE
	.word	VRING_PACKED_EVENT_F_WRAP_CTR
	.word	VRING_PACKED_EVENT_FLAG_DESC
	.word	VRING_PACKED_EVENT_FLAG_ENABLE
	.size	virtqueue_enable_cb_prepare_packed, .-virtqueue_enable_cb_prepare_packed
	.comm	VRING_PACKED_EVENT_F_WRAP_CTR,4,4
	.comm	VRING_PACKED_EVENT_FLAG_ENABLE,4,4
	.comm	VRING_PACKED_EVENT_FLAG_DISABLE,4,4
	.comm	VRING_PACKED_EVENT_FLAG_DESC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
