	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function igb_rxnfc_write_etype_filter
_igb_rxnfc_write_etype_filter:          ## @igb_rxnfc_write_etype_filter
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	_MAX_ETYPE_FILTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	(%rdi), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rcx,%rbx,4)
	je	LBB0_2
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_5
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	cmpq	%rax, %rbx
	jne	LBB0_3
LBB0_7:
	movq	8(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	movq	(%rdi), %rax
	movl	$1, (%rax,%rbx,4)
	movq	%rbx, %rdi
	callq	_E1000_ETQF
	movl	%eax, %edi
	callq	_rd32
	movl	%eax, %r15d
	movq	_ETHER_TYPE_FULL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	16(%r14), %edi
	callq	_ntohs
	movq	_E1000_ETQF_FILTER_ENABLE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r15d
	movq	_E1000_ETQF_ETYPE_MASK@GOTPCREL(%rip), %rcx
	xorl	%r15d, %eax
	andl	(%rcx), %eax
	xorl	%eax, %r15d
	movq	_E1000_ETQF_QUEUE_MASK@GOTPCREL(%rip), %rax
	movl	(%r14), %edx
	movq	_E1000_ETQF_QUEUE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	(%rax), %r12d
	andl	%r12d, %edx
	notl	%r12d
	andl	%r15d, %r12d
	movq	_E1000_ETQF_QUEUE_ENABLE@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	orl	%edx, %r12d
	movq	%rbx, %rdi
	callq	_E1000_ETQF
	movl	%eax, %edi
	movl	%r12d, %esi
	callq	_wr32
	movq	%rbx, 8(%r14)
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ETYPE_FILTER,8,3           ## @MAX_ETYPE_FILTER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ethtool -N: etype filters are all used.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ETHER_TYPE_FULL_MASK,4,2       ## @ETHER_TYPE_FULL_MASK
	.comm	_E1000_ETQF_FILTER_ENABLE,4,2   ## @E1000_ETQF_FILTER_ENABLE
	.comm	_E1000_ETQF_ETYPE_MASK,4,2      ## @E1000_ETQF_ETYPE_MASK
	.comm	_E1000_ETQF_QUEUE_MASK,4,2      ## @E1000_ETQF_QUEUE_MASK
	.comm	_E1000_ETQF_QUEUE_SHIFT,4,2     ## @E1000_ETQF_QUEUE_SHIFT
	.comm	_E1000_ETQF_QUEUE_ENABLE,4,2    ## @E1000_ETQF_QUEUE_ENABLE
	.no_dead_strip	_igb_rxnfc_write_etype_filter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function igb_rxnfc_write_etype_filter
_igb_rxnfc_write_etype_filter:          ; @igb_rxnfc_write_etype_filter
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _MAX_ETYPE_FILTER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ETYPE_FILTER@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	mov	x20, #0
	ldr	x9, [x0]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x20, lsl #2]
	cbz	w10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x8, x20
	b.ne	LBB0_2
	b	LBB0_6
LBB0_4:
	mov	x20, #0
LBB0_5:
	cmp	x20, x8
	b.ne	LBB0_7
LBB0_6:
	ldr	x0, [x0, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	ldr	x8, [x0]
	mov	w9, #1
	str	w9, [x8, x20, lsl #2]
	mov	x0, x20
	bl	_E1000_ETQF
	bl	_rd32
	mov	x21, x0
	ldr	w8, [x19, #16]
Lloh8:
	adrp	x9, _ETHER_TYPE_FULL_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ETHER_TYPE_FULL_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_ntohs
Lloh11:
	adrp	x8, _E1000_ETQF_FILTER_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _E1000_ETQF_FILTER_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w21
Lloh14:
	adrp	x9, _E1000_ETQF_ETYPE_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _E1000_ETQF_ETYPE_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w8, w8, w9
	and	w9, w9, w0
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _E1000_ETQF_QUEUE_MASK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _E1000_ETQF_QUEUE_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	bic	w8, w8, w9
	ldr	w10, [x19]
Lloh20:
	adrp	x11, _E1000_ETQF_QUEUE_SHIFT@GOTPAGE
Lloh21:
	ldr	x11, [x11, _E1000_ETQF_QUEUE_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	and	w9, w10, w9
Lloh23:
	adrp	x10, _E1000_ETQF_QUEUE_ENABLE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _E1000_ETQF_QUEUE_ENABLE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w8, w10, w8
	orr	w21, w8, w9
	mov	x0, x20
	bl	_E1000_ETQF
	mov	x1, x21
	bl	_wr32
	mov	w0, #0
	str	x20, [x19, #8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ETYPE_FILTER,8,3           ; @MAX_ETYPE_FILTER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ethtool -N: etype filters are all used.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ETHER_TYPE_FULL_MASK,4,2       ; @ETHER_TYPE_FULL_MASK
	.comm	_E1000_ETQF_FILTER_ENABLE,4,2   ; @E1000_ETQF_FILTER_ENABLE
	.comm	_E1000_ETQF_ETYPE_MASK,4,2      ; @E1000_ETQF_ETYPE_MASK
	.comm	_E1000_ETQF_QUEUE_MASK,4,2      ; @E1000_ETQF_QUEUE_MASK
	.comm	_E1000_ETQF_QUEUE_SHIFT,4,2     ; @E1000_ETQF_QUEUE_SHIFT
	.comm	_E1000_ETQF_QUEUE_ENABLE,4,2    ; @E1000_ETQF_QUEUE_ENABLE
	.no_dead_strip	_igb_rxnfc_write_etype_filter
.subsections_via_symbols
