	.file	"extr_selftest.c_efx_begin_loopback.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"TX queue %d could not transmit packet %d of %d in %s loopback test\n"
	.text
	.p2align 4
	.type	efx_begin_loopback, @function
efx_begin_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
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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
	xor	ebx, ebx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r13, QWORD PTR 8[rdi]
	mov	r12, QWORD PTR 8[r13]
	mov	esi, DWORD PTR [r12]
	lea	rax, 4[r12]
	mov	QWORD PTR 8[rsp], rax
	test	esi, esi
	jg	.L2
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[r12]
	mov	rdi, rbp
	mov	QWORD PTR [rax+rbx*8], rbp
	call	skb_get@PLT
	mov	esi, 4
	mov	rdi, rbp
	call	skb_put@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edx, 4
	mov	rdi, rax
	mov	r15, rax
	call	memcpy@PLT
	lea	edi, 0[0+rbx*4]
	or	edi, DWORD PTR INADDR_LOOPBACK[rip]
	call	htonl@PLT
	mov	DWORD PTR [r15], eax
	xor	eax, eax
	call	smp_wmb@PLT
	mov	edi, DWORD PTR 0[r13]
	call	netif_tx_lock_bh@PLT
	mov	rsi, rbp
	mov	rdi, r14
	call	efx_enqueue_skb@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	r15d, eax
	call	netif_tx_unlock_bh@PLT
	cmp	DWORD PTR NETDEV_TX_OK[rip], r15d
	lea	r9d, 1[rbx]
	jne	.L13
	add	rbx, 1
	cmp	DWORD PTR [r12], ebx
	jle	.L6
.L2:
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 4
	call	alloc_skb@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR ENOMEM[rip]
	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
	neg	eax
	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
.L6:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L13:
	.cfi_restore_state
	mov	rdi, r13
	mov	DWORD PTR 8[rsp], r9d
	call	LOOPBACK_MODE@PLT
	mov	esi, DWORD PTR drv[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR [r12]
	push	rax
	.cfi_def_cfa_offset 96
	mov	r9d, DWORD PTR 24[rsp]
	mov	edx, DWORD PTR 0[r13]
	mov	r8d, DWORD PTR [r14]
	call	netif_err@PLT
	mov	rdi, rbp
	call	kfree_skb@PLT
	mov	eax, DWORD PTR EPIPE[rip]
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	add	rsp, 24
	.cfi_def_cfa_offset 56
	neg	eax
	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
	.cfi_endproc
.LFE0:
	.size	efx_begin_loopback, .-efx_begin_loopback
	.comm	drv,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	INADDR_LOOPBACK,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPIPE,4,4
	.comm	ENOMEM,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_efx_begin_loopback.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TX queue %d could not transmit packet %d of %d in %"
	.ascii	"s loopback test\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_begin_loopback, %function
efx_begin_loopback:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r0, #4]
	sub	sp, sp, #28
	ldr	r6, [r7, #4]
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L6
	mov	r5, #0
	ldr	fp, .L12
	ldr	r10, .L12+4
	str	r0, [sp, #20]
	b	.L2
.L4:
	ldr	r3, [r6, #8]
	str	r4, [r3, r5, lsl #2]
	bl	skb_get
	mov	r1, #4
	mov	r0, r4
	bl	skb_put
	mov	r2, #4
	add	r1, r6, r2
	mov	r9, r0
	bl	memcpy
	ldr	r0, [fp]
	add	r5, r5, #1
	orr	r0, r8, r0
	bl	htonl
	str	r0, [r9]
	bl	smp_wmb
	ldr	r0, [r7]
	bl	netif_tx_lock_bh
	mov	r1, r4
	ldr	r0, [sp, #20]
	bl	efx_enqueue_skb
	mov	r8, r0
	ldr	r0, [r7]
	bl	netif_tx_unlock_bh
	ldr	r3, [r10]
	cmp	r3, r8
	bne	.L11
	ldr	r3, [r6]
	cmp	r3, r5
	ble	.L6
.L2:
	ldr	r3, .L12+8
	mov	r0, #4
	ldr	r1, [r3]
	bl	alloc_skb
	subs	r4, r0, #0
	lsl	r8, r5, #2
	bne	.L4
	ldr	r3, .L12+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r9, [sp, #20]
	ldr	r3, .L12+16
	mov	r0, r7
	ldr	r8, [r9]
	ldr	r10, [r6]
	ldr	r9, [r3]
	ldr	r6, [r7]
	bl	LOOPBACK_MODE
	mov	r1, r9
	mov	r2, r6
	ldr	r3, .L12+20
	str	r0, [sp, #12]
	str	r10, [sp, #8]
	mov	r0, r7
	str	r8, [sp]
	str	r5, [sp, #4]
	bl	netif_err
	mov	r0, r4
	bl	kfree_skb
	ldr	r3, .L12+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	INADDR_LOOPBACK
	.word	NETDEV_TX_OK
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	drv
	.word	.LC0
	.word	EPIPE
	.size	efx_begin_loopback, .-efx_begin_loopback
	.comm	drv,4,4
	.comm	NETDEV_TX_OK,4,4
	.comm	INADDR_LOOPBACK,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPIPE,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
