	.file	"extr_nicvf_main.c_nicvf_xdp_setup.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Jumbo frames not yet supported with XDP, current MTU %d.\n"
	.align 8
.LC1:
	.string	"Failed to attach BPF prog, RXQs + TXQs > Max %d\n"
	.text
	.p2align 4
	.type	nicvf_xdp_setup, @function
nicvf_xdp_setup:
.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, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 24[rdi]
	mov	rdi, r13
	call	netif_running@PLT
	mov	r12d, eax
	test	rbp, rbp
	je	.L2
	mov	rdx, QWORD PTR 0[r13]
	cmp	rdx, QWORD PTR MAX_XDP_MTU[rip]
	jg	.L25
.L2:
	mov	rdx, QWORD PTR 16[rbx]
	mov	rax, QWORD PTR 8[rbx]
	add	rax, QWORD PTR [rbx]
	cmp	rax, rdx
	jg	.L26
	test	r12d, r12d
	jne	.L27
.L5:
	lea	rdi, 32[rbx]
	mov	rsi, rbp
	call	xchg@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L6
	call	bpf_prog_put@PLT
.L6:
	mov	rdi, QWORD PTR 32[rbx]
	test	rdi, rdi
	je	.L8
	mov	rax, QWORD PTR [rbx]
	lea	rsi, -1[rax]
	call	bpf_prog_add@PLT
	mov	QWORD PTR 32[rbx], rax
	mov	rdi, rax
	call	IS_ERR@PLT
	mov	esi, 1
	mov	r13d, eax
	test	eax, eax
	jne	.L28
.L7:
	mov	rdi, rbx
	call	nicvf_set_xdp_queues@PLT
	test	r12d, r12d
	jne	.L29
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L8:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbx
	xor	r13d, r13d
	call	nicvf_set_xdp_queues@PLT
	test	r12d, r12d
	je	.L1
.L29:
	mov	rdi, QWORD PTR 24[rbx]
	call	nicvf_open@PLT
	mov	rdi, QWORD PTR 24[rbx]
	call	netif_trans_update@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L27:
	.cfi_restore_state
	mov	rdi, QWORD PTR 24[rbx]
	call	nicvf_stop@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, r13
	lea	rsi, .LC1[rip]
	call	netdev_warn@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r13d
	pop	r12
	.cfi_def_cfa_offset 16
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	call	netdev_warn@PLT
	mov	r13d, DWORD PTR EOPNOTSUPP[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r13d
	pop	r12
	.cfi_def_cfa_offset 16
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	rdi, QWORD PTR 32[rbx]
	call	PTR_ERR@PLT
	mov	QWORD PTR 32[rbx], 0
	xor	esi, esi
	mov	r13d, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	nicvf_xdp_setup, .-nicvf_xdp_setup
	.comm	MAX_XDP_MTU,8,8
	.comm	EOPNOTSUPP,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_nicvf_main.c_nicvf_xdp_setup.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Jumbo frames not yet supported with XDP, current MT"
	.ascii	"U %d.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to attach BPF prog, RXQs + TXQs > Max %d\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nicvf_xdp_setup, %function
nicvf_xdp_setup:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0, #12]
	mov	r5, r1
	mov	r4, r0
	mov	r0, r7
	bl	netif_running
	cmp	r5, #0
	mov	r6, r0
	beq	.L2
	ldr	r3, .L29
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L24
.L2:
	ldmib	r4, {r1, r2}
	ldr	r3, [r4]
	add	r3, r3, r1
	cmp	r3, r2
	bgt	.L25
	cmp	r6, #0
	bne	.L26
.L5:
	mov	r1, r5
	add	r0, r4, #16
	bl	xchg
	cmp	r0, #0
	beq	.L6
	bl	bpf_prog_put
.L6:
	ldr	r0, [r4, #16]
	cmp	r0, #0
	moveq	r5, r0
	moveq	r1, r5
	beq	.L7
	ldr	r1, [r4]
	sub	r1, r1, #1
	bl	bpf_prog_add
	str	r0, [r4, #16]
	bl	IS_ERR
	subs	r5, r0, #0
	moveq	r1, #1
	bne	.L27
.L7:
	mov	r0, r4
	bl	nicvf_set_xdp_queues
	cmp	r6, #0
	bne	.L28
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	ldr	r0, [r4, #12]
	bl	nicvf_stop
	b	.L5
.L28:
	ldr	r0, [r4, #12]
	bl	nicvf_open
	ldr	r0, [r4, #12]
	bl	netif_trans_update
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	ldr	r0, [r4, #16]
	bl	PTR_ERR
	mov	r1, #0
	mov	r5, r0
	str	r1, [r4, #16]
	mov	r0, r4
	bl	nicvf_set_xdp_queues
	cmp	r6, #0
	beq	.L1
	b	.L28
.L25:
	mov	r0, r7
	ldr	r1, .L29+4
	bl	netdev_warn
	ldr	r3, .L29+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L24:
	mov	r0, r7
	ldr	r1, .L29+12
	bl	netdev_warn
	ldr	r3, .L29+16
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	.align	2
.L29:
	.word	MAX_XDP_MTU
	.word	.LC1
	.word	ENOMEM
	.word	.LC0
	.word	EOPNOTSUPP
	.size	nicvf_xdp_setup, .-nicvf_xdp_setup
	.comm	MAX_XDP_MTU,4,4
	.comm	EOPNOTSUPP,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
