	.file	"extr_selftest.c_ef4_end_loopback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TX queue %d saw only %d out of an expected %d TX completion events in %s loopback test\n"
	.align 8
.LC1:
	.string	"TX queue %d saw only %d out of an expected %d received packets in %s loopback test\n"
	.text
	.p2align 4
	.type	ef4_end_loopback, @function
ef4_end_loopback:
.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, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	QWORD PTR [rsp], rdi
	mov	rbp, QWORD PTR 8[r14]
	mov	edi, DWORD PTR [r14]
	call	netif_tx_lock_bh@PLT
	mov	r8d, DWORD PTR 0[rbp]
	test	r8d, r8d
	jle	.L7
	xor	ebx, ebx
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 16[rbp]
	mov	r15, QWORD PTR [rax+rbx*8]
	test	r15, r15
	je	.L3
	mov	rdi, r15
	call	skb_shared@PLT
	cmp	eax, 1
	adc	r12d, 0
.L3:
	mov	rdi, r15
	add	rbx, 1
	call	dev_kfree_skb@PLT
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L4
.L2:
	mov	edi, DWORD PTR [r14]
	call	netif_tx_unlock_bh@PLT
	lea	rdi, 8[rbp]
	call	atomic_read@PLT
	lea	rdi, 4[rbp]
	mov	ebx, eax
	call	atomic_read@PLT
	mov	r10d, eax
	cmp	DWORD PTR 0[rbp], r12d
	jne	.L15
	mov	edx, r12d
	xor	r8d, r8d
.L5:
	cmp	ebx, edx
	je	.L6
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], r10d
	call	LOOPBACK_MODE@PLT
	mov	esi, DWORD PTR drv[rip]
	mov	r9d, ebx
	mov	rdi, r14
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 0[rbp]
	lea	rcx, .LC1[rip]
	push	rax
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR [r14]
	mov	r8, QWORD PTR [rax]
	call	netif_dbg@PLT
	mov	r8d, DWORD PTR ETIMEDOUT[rip]
	pop	rax
	.cfi_def_cfa_offset 88
	mov	edx, DWORD PTR 0[rbp]
	pop	rcx
	.cfi_def_cfa_offset 80
	mov	r10d, DWORD PTR 12[rsp]
	neg	r8d
.L6:
	mov	rax, QWORD PTR [rsp]
	mov	rcx, QWORD PTR 0[r13]
	mov	rax, QWORD PTR [rax]
	sal	rax, 2
	add	rcx, rax
	add	rax, QWORD PTR 8[r13]
	add	DWORD PTR [rcx], edx
	add	DWORD PTR [rax], r12d
	mov	eax, r8d
	add	DWORD PTR 16[r13], ebx
	add	DWORD PTR 20[r13], r10d
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L15:
	.cfi_restore_state
	mov	rdi, r14
	mov	DWORD PTR 12[rsp], eax
	call	LOOPBACK_MODE@PLT
	mov	esi, DWORD PTR drv[rip]
	mov	rdi, r14
	mov	r9d, r12d
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 0[rbp]
	lea	rcx, .LC0[rip]
	push	rax
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 16[rsp]
	mov	edx, DWORD PTR [r14]
	mov	r8, QWORD PTR [rax]
	call	netif_err@PLT
	mov	r8d, DWORD PTR ETIMEDOUT[rip]
	pop	rsi
	.cfi_def_cfa_offset 88
	mov	edx, DWORD PTR 0[rbp]
	pop	rdi
	.cfi_def_cfa_offset 80
	neg	r8d
	mov	r10d, DWORD PTR 12[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r12d, r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ef4_end_loopback, .-ef4_end_loopback
	.comm	drv,4,4
	.comm	ETIMEDOUT,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_selftest.c_ef4_end_loopback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX queue %d saw only %d out of an expected %d TX co"
	.ascii	"mpletion events in %s loopback test\012\000"
	.align	2
.LC1:
	.ascii	"TX queue %d saw only %d out of an expected %d recei"
	.ascii	"ved packets in %s loopback test\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ef4_end_loopback, %function
ef4_end_loopback:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r9, [r0, #4]
	mov	r10, r0
	ldm	r9, {r0, r6}
	sub	sp, sp, #36
	mov	r7, r1
	bl	netif_tx_lock_bh
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L7
	mov	r4, #0
	mov	r8, r4
.L4:
	ldr	r3, [r6, #12]
	ldr	r5, [r3, r4, lsl #2]
	add	r4, r4, #1
	cmp	r5, #0
	beq	.L3
	mov	r0, r5
	bl	skb_shared
	cmp	r0, #0
	addeq	r8, r8, #1
.L3:
	mov	r0, r5
	bl	dev_kfree_skb
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L4
.L2:
	ldr	r0, [r9]
	bl	netif_tx_unlock_bh
	add	r0, r6, #8
	bl	atomic_read
	mov	r5, r0
	add	r0, r6, #4
	bl	atomic_read
	ldr	r4, [r6]
	mov	fp, r0
	cmp	r4, r8
	moveq	r3, r8
	moveq	r0, #0
	beq	.L5
	ldr	r3, .L15
	ldr	r2, [r9]
	ldr	r1, [r3]
	ldr	r3, [r10]
	mov	r0, r9
	str	r1, [sp, #28]
	str	r2, [sp, #24]
	str	r3, [sp, #20]
	bl	LOOPBACK_MODE
	ldr	r3, [sp, #20]
	ldr	r2, [sp, #24]
	str	r3, [sp]
	str	r0, [sp, #12]
	ldr	r3, .L15+4
	mov	r0, r9
	ldr	r1, [sp, #28]
	str	r4, [sp, #8]
	str	r8, [sp, #4]
	bl	netif_err
	ldr	r2, .L15+8
	ldr	r3, [r6]
	ldr	r0, [r2]
	rsb	r0, r0, #0
.L5:
	cmp	r5, r3
	ldr	r4, [r10]
	beq	.L6
	ldr	r2, .L15
	mov	r0, r9
	ldr	r1, [r2]
	ldr	r2, [r9]
	str	r3, [sp, #28]
	str	r1, [sp, #24]
	str	r2, [sp, #20]
	bl	LOOPBACK_MODE
	ldr	r3, [sp, #28]
	stm	sp, {r4, r5}
	str	r0, [sp, #12]
	str	r3, [sp, #8]
	mov	r0, r9
	ldr	r3, .L15+12
	ldr	r1, [sp, #24]
	ldr	r2, [sp, #20]
	bl	netif_dbg
	ldr	r3, .L15+8
	ldr	r4, [r10]
	ldr	r0, [r3]
	ldr	r3, [r6]
	rsb	r0, r0, #0
.L6:
	ldr	ip, [r7]
	ldr	r1, [r7, #4]
	ldr	r2, [ip, r4, lsl #2]
	add	r3, r2, r3
	str	r3, [ip, r4, lsl #2]
	ldr	r3, [r1, r4, lsl #2]
	add	r8, r3, r8
	str	r8, [r1, r4, lsl #2]
	ldr	r2, [r7, #8]
	ldr	r3, [r7, #12]
	add	r5, r2, r5
	add	fp, r3, fp
	str	r5, [r7, #8]
	str	fp, [r7, #12]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	mov	r8, #0
	b	.L2
.L16:
	.align	2
.L15:
	.word	drv
	.word	.LC0
	.word	ETIMEDOUT
	.word	.LC1
	.size	ef4_end_loopback, .-ef4_end_loopback
	.comm	drv,4,4
	.comm	ETIMEDOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
