	.file	"extr_dpaa2-eth.c_setup_xdp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	setup_xdp, @function
setup_xdp:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	netdev_priv@PLT
	mov	rbx, rax
	test	rbp, rbp
	je	.L17
	mov	esi, DWORD PTR [r12]
	mov	rdi, rax
	call	xdp_mtu_valid@PLT
	mov	r14d, DWORD PTR EINVAL[rip]
	neg	r14d
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	bpf_prog_add@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	test	rbp, rbp
	setne	r14b
.L2:
	mov	rdi, r12
	call	netif_running@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	r13d, eax
	test	edx, edx
	setne	r15b
	test	eax, eax
	jne	.L35
.L5:
	cmp	r15b, r14b
	je	.L10
	movzx	r15d, r14b
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbx
	mov	edx, r15d
	call	set_rx_mfl@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L9
	mov	esi, r15d
	mov	rdi, rbx
	call	update_rx_buffer_headroom@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L9
.L10:
	lea	rdi, 16[rbx]
	mov	rsi, rbp
	call	xchg@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L8
	call	bpf_prog_put@PLT
.L8:
	mov	eax, DWORD PTR [rbx]
	xor	r14d, r14d
	test	eax, eax
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rax, QWORD PTR 8[rbx]
	mov	rsi, rbp
	mov	rdi, QWORD PTR [rax+r14*8]
	call	xchg@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L11
	call	bpf_prog_put@PLT
.L11:
	add	r14, 1
	cmp	DWORD PTR [rbx], r14d
	jg	.L12
.L14:
	xor	r14d, r14d
	test	r13d, r13d
	jne	.L36
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L9:
	.cfi_restore_state
	test	rbp, rbp
	je	.L15
	mov	esi, DWORD PTR [rbx]
	mov	rdi, rbp
	call	bpf_prog_sub@PLT
.L15:
	test	r13d, r13d
	je	.L1
	mov	rdi, r12
	call	dpaa2_eth_open@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	xor	r14d, r14d
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rdi, r12
	call	dpaa2_eth_stop@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L36:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	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
	jmp	dpaa2_eth_open@PLT
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	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
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	setup_xdp, .-setup_xdp
	.comm	EINVAL,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_dpaa2-eth.c_setup_xdp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_xdp, %function
setup_xdp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r1
	mov	r7, r0
	bl	netdev_priv
	cmp	r6, #0
	mov	r5, r0
	beq	.L17
	ldr	r1, [r7]
	bl	xdp_mtu_valid
	cmp	r0, #0
	beq	.L34
	mov	r0, r6
	ldr	r1, [r5]
	bl	bpf_prog_add
	mov	r6, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L16
	subs	r9, r6, #0
	movne	r9, #1
.L2:
	mov	r0, r7
	bl	netif_running
	ldr	r4, [r5, #8]
	subs	r4, r4, #0
	movne	r4, #1
	subs	r8, r0, #0
	bne	.L35
.L5:
	cmp	r4, r9
	beq	.L10
	mov	r2, r9
	mov	r0, r5
	ldr	r1, [r7]
	bl	set_rx_mfl
	subs	r4, r0, #0
	bne	.L9
	mov	r1, r9
	mov	r0, r5
	bl	update_rx_buffer_headroom
	subs	r4, r0, #0
	bne	.L9
.L10:
	mov	r1, r6
	add	r0, r5, #8
	bl	xchg
	cmp	r0, #0
	beq	.L8
	bl	bpf_prog_put
.L8:
	ldr	r3, [r5]
	cmp	r3, #0
	movgt	r4, #0
	ble	.L14
.L12:
	ldr	r3, [r5, #4]
	mov	r1, r6
	ldr	r0, [r3, r4, lsl #2]
	bl	xchg
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L11
	bl	bpf_prog_put
.L11:
	ldr	r3, [r5]
	cmp	r3, r4
	bgt	.L12
.L14:
	cmp	r8, #0
	moveq	r4, r8
	bne	.L36
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	cmp	r6, #0
	beq	.L15
	mov	r0, r6
	ldr	r1, [r5]
	bl	bpf_prog_sub
.L15:
	cmp	r8, #0
	beq	.L1
	mov	r0, r7
	bl	dpaa2_eth_open
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	mov	r9, r6
	b	.L2
.L35:
	mov	r0, r7
	bl	dpaa2_eth_stop
	b	.L5
.L34:
	ldr	r3, .L37
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	PTR_ERR
.L36:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	dpaa2_eth_open
.L38:
	.align	2
.L37:
	.word	EINVAL
	.size	setup_xdp, .-setup_xdp
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
