	.file	"extr_tap.c_tap_do_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tap_do_read, @function
tap_do_read:
.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
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR wait[rip]
	call	DEFINE_WAIT@PLT
	mov	rdi, r14
	call	iov_iter_count@PLT
	test	eax, eax
	je	.L16
	test	rbp, rbp
	je	.L17
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r13
	call	tap_put_user@PLT
	mov	edi, eax
	mov	r12d, eax
	shr	edi, 31
	call	unlikely@PLT
	mov	rdi, rbp
	test	rax, rax
	je	.L10
	call	kfree_skb@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L17:
	.cfi_restore_state
	lea	r12, 4[r13]
	test	ebx, ebx
	je	.L18
	mov	rdi, r12
	call	ptr_ring_consume@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	call	consume_skb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, rbp
	mov	r12d, eax
	call	kfree_skb@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rbx, wait[rip]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	call	schedule@PLT
.L9:
	mov	r15d, DWORD PTR TASK_INTERRUPTIBLE[rip]
	mov	rdi, r13
	call	sk_sleep@PLT
	mov	rsi, rbx
	mov	edi, eax
	mov	edx, r15d
	call	prepare_to_wait@PLT
	mov	rdi, r12
	call	ptr_ring_consume@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L19
	mov	edi, DWORD PTR current[rip]
	call	signal_pending@PLT
	test	rax, rax
	je	.L8
	mov	rdi, r13
	mov	r12d, DWORD PTR ERESTARTSYS[rip]
	call	sk_sleep@PLT
	lea	rsi, wait[rip]
	mov	edi, eax
	neg	r12d
	call	finish_wait@PLT
	jmp	.L1
.L19:
	mov	rdi, r13
	call	sk_sleep@PLT
	lea	rsi, wait[rip]
	mov	edi, eax
	call	finish_wait@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	tap_do_read, .-tap_do_read
	.comm	wait,4,4
	.comm	current,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	ERESTARTSYS,4,4
	.comm	EAGAIN,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_tap.c_tap_do_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tap_do_read, %function
tap_do_read:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	ldr	r8, .L20
	mov	r6, r0
	ldr	r0, [r8]
	mov	r9, r2
	mov	r5, r3
	bl	DEFINE_WAIT
	mov	r0, r7
	bl	iov_iter_count
	subs	r4, r0, #0
	beq	.L16
	cmp	r5, #0
	beq	.L17
.L4:
	mov	r2, r7
	mov	r1, r5
	mov	r0, r6
	bl	tap_put_user
	mov	r4, r0
	lsr	r0, r0, #31
	bl	unlikely
	cmp	r0, #0
	mov	r0, r5
	beq	.L10
	bl	kfree_skb
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	cmp	r9, #0
	add	r4, r6, #4
	beq	.L18
	mov	r0, r4
	bl	ptr_ring_consume
	subs	r5, r0, #0
	bne	.L4
	ldr	r3, .L20+4
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	bl	consume_skb
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r0, r5
	bl	kfree_skb
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	ldr	r10, .L20+8
	ldr	r9, .L20+12
	b	.L9
.L8:
	bl	schedule
.L9:
	mov	r0, r6
	bl	sk_sleep
	mov	r1, r8
	ldr	r2, [r10]
	bl	prepare_to_wait
	mov	r0, r4
	bl	ptr_ring_consume
	subs	r5, r0, #0
	bne	.L19
	ldr	r0, [r9]
	bl	signal_pending
	cmp	r0, #0
	beq	.L8
	ldr	r3, .L20+16
	mov	r0, r6
	ldr	r4, [r3]
	bl	sk_sleep
	rsb	r4, r4, #0
	ldr	r1, .L20
	bl	finish_wait
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	mov	r0, r6
	bl	sk_sleep
	ldr	r1, .L20
	bl	finish_wait
	b	.L4
.L21:
	.align	2
.L20:
	.word	wait
	.word	EAGAIN
	.word	TASK_INTERRUPTIBLE
	.word	current
	.word	ERESTARTSYS
	.size	tap_do_read, .-tap_do_read
	.comm	wait,4,4
	.comm	current,4,4
	.comm	TASK_INTERRUPTIBLE,4,4
	.comm	ERESTARTSYS,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
