	.file	"extr_pci_virtio_rnd.c_pci_vtrnd_notify.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pci_vtrnd_notify, @function
pci_vtrnd_notify:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR [rdi], 0
	lea	r13, 16[rsp]
	jns	.L2
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L4:
	xor	r8d, r8d
	mov	ecx, 1
	lea	rsi, 12[rsp]
	mov	rdx, r13
	mov	rdi, rbp
	call	vq_getchain@PLT
	mov	edx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR 20[rsp]
	mov	rdi, QWORD PTR [rbx]
	call	read@PLT
	movsx	rdi, eax
	mov	r12, rdi
	call	DPRINTF@PLT
	xor	edi, edi
	test	r12d, r12d
	setg	dil
	call	assert@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	edx, r12d
	mov	rdi, rbp
	call	vq_relchain@PLT
.L2:
	mov	rdi, rbp
	call	vq_has_descs@PLT
	test	rax, rax
	jne	.L4
	mov	esi, 1
	mov	rdi, rbp
	call	vq_endchains@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L10:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	vq_endchains@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pci_vtrnd_notify, .-pci_vtrnd_notify
	.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_pci_virtio_rnd.c_pci_vtrnd_notify.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci_vtrnd_notify, %function
pci_vtrnd_notify:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	sub	sp, sp, #28
	cmp	r3, #0
	ldr	r3, .L11
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	blt	.L7
	mov	r6, r0
	mov	r7, #0
	b	.L2
.L4:
	mov	r3, #1
	add	r2, sp, #12
	add	r1, sp, #8
	mov	r0, r5
	str	r7, [sp]
	bl	vq_getchain
	ldr	r2, [sp, #12]
	ldr	r1, [sp, #16]
	ldr	r0, [r6]
	bl	read
	mov	r4, r0
	bl	DPRINTF
	cmp	r4, #0
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [sp, #8]
	bl	vq_relchain
.L2:
	mov	r0, r5
	bl	vq_has_descs
	cmp	r0, #0
	bne	.L4
	mov	r0, r5
	mov	r1, #1
	bl	vq_endchains
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	mov	r0, r1
	mov	r1, #0
	bl	vq_endchains
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.size	pci_vtrnd_notify, .-pci_vtrnd_notify
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
