	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_xdp_setup
_i40e_xdp_setup:                        ## @i40e_xdp_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rdi), %rcx
	addl	(%rcx), %eax
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	cmpl	(%rdi), %eax
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_20
LBB0_2:
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	40(%rdi), %r12
	callq	_i40e_enabled_xdp_vsi
	xorl	%r14d, %r14d
	testq	%r15, %r15
	jne	LBB0_4
## %bb.3:
	testl	%eax, %eax
	je	LBB0_20
LBB0_4:
	xorl	%ebx, %ebx
	testq	%r15, %r15
	setne	%bl
	movq	%r13, %rdi
	callq	_i40e_enabled_xdp_vsi
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	cmpl	%ebx, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_i40e_prep_for_reset
	leaq	24(%r13), %rdi
	movq	%r15, %rsi
	callq	_xchg
	movq	%r12, %rdi
	movq	%rax, %r12
	movl	$1, %esi
	movl	$1, %edx
	callq	_i40e_reset_and_rebuild
	cmpl	$0, 4(%r13)
	jg	LBB0_8
	jmp	LBB0_10
LBB0_5:
	leaq	24(%r13), %rdi
	movq	%r15, %rsi
	callq	_xchg
	movq	%rax, %r12
	cmpl	$0, 4(%r13)
	jle	LBB0_10
LBB0_8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%rbx,8), %rax
	movl	(%rax), %edi
	movl	24(%r13), %esi
	callq	_WRITE_ONCE
	incq	%rbx
	movslq	4(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	testq	%r12, %r12
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	callq	_bpf_prog_put
LBB0_12:
	testq	%r15, %r15
	je	LBB0_20
## %bb.13:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_20
## %bb.14:
	movl	4(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.15:
	xorl	%ebx, %ebx
	movq	_XDP_WAKEUP_RX@GOTPCREL(%rip), %r14
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_19
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	8(%r13), %rdi
	movl	(%r14), %edx
	movl	%ebx, %esi
	callq	_i40e_xsk_wakeup
	movl	4(%r13), %eax
	jmp	LBB0_18
LBB0_19:
	xorl	%r14d, %r14d
LBB0_20:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ## @VLAN_HLEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_XDP_WAKEUP_RX,4,2              ## @XDP_WAKEUP_RX
	.no_dead_strip	_i40e_xdp_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_xdp_setup
_i40e_xdp_setup:                        ; @i40e_xdp_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x8, [x0, #8]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _ETH_FCS_LEN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	add	w8, w9, w8
	add	w8, w8, w10
Lloh6:
	adrp	x9, _VLAN_HLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VLAN_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x0]
	add	w8, w8, w9
	cmp	w8, w10
	b.le	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_2:
	mov	x20, x1
	mov	x19, x0
	ldr	x23, [x0, #40]
	bl	_i40e_enabled_xdp_vsi
	cbnz	x20, LBB0_4
; %bb.3:
	cbz	w0, LBB0_20
LBB0_4:
	cmp	x20, #0
	cset	w24, ne
	mov	x0, x19
	bl	_i40e_enabled_xdp_vsi
	mov	x21, x0
	cmp	w0, w24
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x23
	mov	w1, #1
	bl	_i40e_prep_for_reset
	add	x0, x19, #24
	mov	x1, x20
	bl	_xchg
	mov	x22, x0
	mov	x0, x23
	mov	w1, #1
	mov	w2, #1
	bl	_i40e_reset_and_rebuild
	b	LBB0_7
LBB0_6:
	add	x0, x19, #24
	mov	x1, x20
	bl	_xchg
	mov	x22, x0
LBB0_7:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x23, lsl #3]
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_WRITE_ONCE
	add	x23, x23, #1
	ldrsw	x8, [x19, #4]
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_10:
	cbz	x22, LBB0_12
; %bb.11:
	mov	x0, x22
	bl	_bpf_prog_put
LBB0_12:
	mov	w0, #0
	cbz	x20, LBB0_20
; %bb.13:
	cmp	w21, w24
	b.eq	LBB0_20
; %bb.14:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.15:
	mov	x20, #0
Lloh12:
	adrp	x21, _XDP_WAKEUP_RX@GOTPAGE
Lloh13:
	ldr	x21, [x21, _XDP_WAKEUP_RX@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_17 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #16]
	ldr	x9, [x9, x20, lsl #3]
	ldr	x9, [x9]
	cbz	x9, LBB0_16
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	ldr	x0, [x19, #8]
	ldr	w2, [x21]
	mov	x1, x20
	bl	_i40e_xsk_wakeup
	ldr	w8, [x19, #4]
	b	LBB0_16
LBB0_19:
	mov	w0, #0
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_VLAN_HLEN,4,2                  ; @VLAN_HLEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_XDP_WAKEUP_RX,4,2              ; @XDP_WAKEUP_RX
	.no_dead_strip	_i40e_xdp_setup
.subsections_via_symbols
