	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_add_fdir_ethtool
_i40e_add_fdir_ethtool:                 ## @i40e_add_fdir_ethtool
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	movq	_I40E_FLAG_FD_SB_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.5:
	movq	%rsi, %r14
	movq	___I40E_FD_SB_AUTO_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%r13), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_ENOSPC@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	___I40E_RESET_RECOVERY_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%r13), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	___I40E_RESET_INTR_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%r13), %esi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_9
## %bb.10:
	movq	___I40E_FD_FLUSH_REQUESTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	56(%r13), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
LBB0_9:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_i40e_parse_rx_flow_user_data
	testq	%rax, %rax
	jne	LBB0_1
## %bb.12:
	movq	_FLOW_MAC_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_13
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_32:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	-72(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_i40e_check_fdir_input_set
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_32
## %bb.14:
	movq	40(%r13), %rax
	addq	32(%r13), %rax
	cmpq	%rax, 8(%r14)
	jge	LBB0_1
## %bb.15:
	movq	16(%r14), %rdi
	movq	_RX_CLS_FLOW_DISC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_17
## %bb.16:
	movq	_I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_24
LBB0_17:
	callq	_ethtool_get_flow_spec_ring
	movq	%rax, %rbx
	movq	16(%r14), %rdi
	callq	_ethtool_get_flow_spec_ring_vf
	testq	%rax, %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_18
## %bb.20:
	decq	%rax
	cmpq	8(%r13), %rax
	jae	LBB0_1
## %bb.21:
	movq	48(%r13), %rcx
	shlq	$4, %rax
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rcx,%rax), %rdx
	jge	LBB0_1
## %bb.22:
	addq	%rcx, %rax
	addq	$8, %rax
	jmp	LBB0_23
LBB0_18:
	cmpq	(%r15), %rbx
	jge	LBB0_1
## %bb.19:
	leaq	8(%r15), %rax
LBB0_23:
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX@GOTPCREL(%rip), %rax
LBB0_24:
	movq	(%rax), %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_25
## %bb.26:
	movq	%rax, %r12
	movq	8(%r14), %rax
	movq	%rax, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 72(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 64(%r12)
	movq	%rbx, 8(%r12)
	movq	_I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 60(%r12)
	movl	24(%r13), %edi
	callq	_I40E_FD_SB_STAT_IDX
	movl	%eax, 56(%r12)
	movq	_FLOW_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	(%r14), %eax
	movl	%eax, 16(%r12)
	movl	40(%r14), %eax
	movl	%eax, 52(%r12)
	movups	24(%r14), %xmm0
	movups	%xmm0, 36(%r12)
	cmpq	$0, -64(%rbp)
	je	LBB0_28
## %bb.27:
	movl	$1, 20(%r12)
	movl	-68(%rbp), %edi
	callq	_cpu_to_be16
	movl	%eax, 32(%r12)
	movl	-72(%rbp), %eax
	movl	%eax, 28(%r12)
LBB0_28:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_i40e_disallow_matching_filters
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_31
## %bb.29:
	movq	8(%r14), %rdx
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_i40e_update_ethtool_fdir_entry
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_i40e_add_del_fdir
	testl	%eax, %eax
	je	LBB0_32
## %bb.30:
	movl	%eax, %r14d
	movq	%r12, %rdi
	addq	$24, %rdi
	callq	_hlist_del
	decl	16(%r13)
	movl	%r14d, %ebx
LBB0_31:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_32
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I40E_FLAG_FD_SB_ENABLED,4,2    ## @I40E_FLAG_FD_SB_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	___I40E_FD_SB_AUTO_DISABLED,4,2 ## @__I40E_FD_SB_AUTO_DISABLED
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	___I40E_RESET_RECOVERY_PENDING,4,2 ## @__I40E_RESET_RECOVERY_PENDING
	.comm	___I40E_RESET_INTR_RECEIVED,4,2 ## @__I40E_RESET_INTR_RECEIVED
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	___I40E_FD_FLUSH_REQUESTED,4,2  ## @__I40E_FD_FLUSH_REQUESTED
	.comm	_FLOW_MAC_EXT,4,2               ## @FLOW_MAC_EXT
	.comm	_RX_CLS_FLOW_DISC,8,3           ## @RX_CLS_FLOW_DISC
	.comm	_I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET,8,3 ## @I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET
	.comm	_I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX,8,3 ## @I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID,4,2 ## @I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID
	.comm	_FLOW_EXT,4,2                   ## @FLOW_EXT
	.no_dead_strip	_i40e_add_fdir_ethtool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_add_fdir_ethtool
_i40e_add_fdir_ethtool:                 ; @i40e_add_fdir_ethtool
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	x0, LBB0_11
; %bb.1:
	mov	x19, x0
	ldr	x23, [x0, #16]
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _I40E_FLAG_FD_SB_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I40E_FLAG_FD_SB_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	mov	x20, x1
Lloh3:
	adrp	x8, ___I40E_FD_SB_AUTO_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___I40E_FD_SB_AUTO_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w1, [x23, #56]
	bl	_test_bit
	cbz	x0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_12
LBB0_4:
Lloh8:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh10:
	adrp	x8, ___I40E_RESET_RECOVERY_PENDING@GOTPAGE
Lloh11:
	ldr	x8, [x8, ___I40E_RESET_RECOVERY_PENDING@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x23, #56]
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.6:
Lloh13:
	adrp	x8, ___I40E_RESET_INTR_RECEIVED@GOTPAGE
Lloh14:
	ldr	x8, [x8, ___I40E_RESET_INTR_RECEIVED@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	ldr	w1, [x23, #56]
	bl	_test_bit
	cbnz	x0, LBB0_8
; %bb.7:
Lloh16:
	adrp	x8, ___I40E_FD_FLUSH_REQUESTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___I40E_FD_FLUSH_REQUESTED@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w1, [x23, #56]
	bl	_test_bit
	cbz	x0, LBB0_9
LBB0_8:
Lloh19:
	adrp	x8, _EBUSY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
	mov	x1, sp
	mov	x0, x20
	bl	_i40e_parse_rx_flow_user_data
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x20]
Lloh21:
	adrp	x9, _FLOW_MAC_EXT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FLOW_MAC_EXT@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
LBB0_11:
Lloh24:
	adrp	x8, _EINVAL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_i40e_check_fdir_input_set
	cbnz	w0, LBB0_13
; %bb.15:
	ldr	x8, [x20, #8]
	ldp	x9, x10, [x23, #32]
	add	x9, x10, x9
	cmp	x8, x9
	b.ge	LBB0_11
; %bb.16:
	ldr	x0, [x20, #16]
Lloh26:
	adrp	x8, _RX_CLS_FLOW_DISC@GOTPAGE
Lloh27:
	ldr	x8, [x8, _RX_CLS_FLOW_DISC@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.17:
	mov	x22, #0
	mov	x24, #0
Lloh29:
	adrp	x8, _I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET@GOTPAGEOFF]
	b	LBB0_25
LBB0_18:
	bl	_ethtool_get_flow_spec_ring
	mov	x22, x0
	ldr	x0, [x20, #16]
	bl	_ethtool_get_flow_spec_ring_vf
	cbz	x0, LBB0_22
; %bb.19:
	sub	x8, x0, #1
	ldr	x9, [x23, #8]
	cmp	x8, x9
	b.hs	LBB0_11
; %bb.20:
	ldr	x9, [x23, #48]
	lsl	x10, x8, #4
	ldr	x10, [x9, x10]
	cmp	x22, x10
	b.ge	LBB0_11
; %bb.21:
	add	x8, x9, x8, lsl #4
	add	x8, x8, #8
	b	LBB0_24
LBB0_22:
	ldr	x8, [x19]
	cmp	x22, x8
	b.ge	LBB0_11
; %bb.23:
	add	x8, x19, #8
LBB0_24:
	ldr	x24, [x8]
Lloh31:
	adrp	x8, _I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX@GOTPAGEOFF]
LBB0_25:
	ldr	x25, [x8]
Lloh33:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_32
; %bb.26:
	mov	x21, x0
	ldr	x8, [x20, #8]
	stp	x24, x22, [x0, #64]
	stp	x8, x25, [x0]
Lloh36:
	adrp	x8, _I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID@GOTPAGE
Lloh37:
	ldr	x8, [x8, _I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x0, #60]
	ldr	w0, [x23, #24]
	bl	_I40E_FD_SB_STAT_IDX
	str	w0, [x21, #56]
	ldr	w8, [x20]
Lloh39:
	adrp	x9, _FLOW_EXT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _FLOW_EXT@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x21, #16]
	ldr	w8, [x20, #40]
	str	w8, [x21, #52]
	ldur	q0, [x20, #24]
	stur	q0, [x21, #36]
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_28
; %bb.27:
	mov	w8, #1
	str	w8, [x21, #20]
	ldr	w0, [sp, #4]
	bl	_cpu_to_be16
	ldr	w8, [sp]
	stp	w8, w0, [x21, #28]
LBB0_28:
	mov	x0, x19
	mov	x1, x21
	bl	_i40e_disallow_matching_filters
	mov	x22, x0
	cbnz	w0, LBB0_31
; %bb.29:
	ldr	x2, [x20, #8]
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	bl	_i40e_update_ethtool_fdir_entry
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_i40e_add_del_fdir
	cbz	w0, LBB0_13
; %bb.30:
	mov	x22, x0
	add	x0, x21, #24
	bl	_hlist_del
	ldr	w8, [x23, #16]
	sub	w8, w8, #1
	str	w8, [x23, #16]
LBB0_31:
	mov	x0, x21
	bl	_kfree
	mov	x0, x22
	b	LBB0_13
LBB0_32:
Lloh42:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh43:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I40E_FLAG_FD_SB_ENABLED,4,2    ; @I40E_FLAG_FD_SB_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	___I40E_FD_SB_AUTO_DISABLED,4,2 ; @__I40E_FD_SB_AUTO_DISABLED
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	___I40E_RESET_RECOVERY_PENDING,4,2 ; @__I40E_RESET_RECOVERY_PENDING
	.comm	___I40E_RESET_INTR_RECEIVED,4,2 ; @__I40E_RESET_INTR_RECEIVED
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	___I40E_FD_FLUSH_REQUESTED,4,2  ; @__I40E_FD_FLUSH_REQUESTED
	.comm	_FLOW_MAC_EXT,4,2               ; @FLOW_MAC_EXT
	.comm	_RX_CLS_FLOW_DISC,8,3           ; @RX_CLS_FLOW_DISC
	.comm	_I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET,8,3 ; @I40E_FILTER_PROGRAM_DESC_DEST_DROP_PACKET
	.comm	_I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX,8,3 ; @I40E_FILTER_PROGRAM_DESC_DEST_DIRECT_PACKET_QINDEX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID,4,2 ; @I40E_FILTER_PROGRAM_DESC_FD_STATUS_FD_ID
	.comm	_FLOW_EXT,4,2                   ; @FLOW_EXT
	.no_dead_strip	_i40e_add_fdir_ethtool
.subsections_via_symbols
