	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aq_ndev_set_features
_aq_ndev_set_features:                  ## @aq_ndev_set_features
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	movl	(%rax), %eax
	andl	%esi, %eax
	setne	-42(%rbp)                       ## 1-byte Folded Spill
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%esi, %eax
	setne	-41(%rbp)                       ## 1-byte Folded Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_aq_nic_get_cfg
	movq	%rax, %r12
	movq	_NETIF_F_NTUPLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%ebx, %eax
	je	LBB0_1
LBB0_3:
	movq	_NETIF_F_HW_VLAN_CTAG_FILTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ebx, %eax
	je	LBB0_4
LBB0_6:
	movl	%ebx, (%r12)
	movq	16(%r12), %rcx
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movb	$1, %dl
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	andl	%ebx, %eax
	cmpl	%eax, 4(%r12)
	je	LBB0_9
## %bb.8:
	movl	%eax, 4(%r12)
	xorl	%edx, %edx
LBB0_9:
	movq	16(%r13), %rax
	xorl	(%rax), %ebx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_11
## %bb.10:
	movq	8(%r13), %rax
	movl	(%r13), %edi
	movq	%r12, %rsi
	movl	%edx, %ebx
	callq	*(%rax)
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	movl	%ebx, %edx
	testq	%rax, %rax
	jne	LBB0_18
LBB0_11:
	movb	-42(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r14b
	xorl	%eax, %eax
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, %al
	cmpl	%r14d, 8(%r12)
	jne	LBB0_14
## %bb.12:
	cmpl	%eax, 12(%r12)
	jne	LBB0_15
## %bb.13:
	testb	%dl, %dl
	je	LBB0_16
	jmp	LBB0_18
LBB0_1:
	movq	16(%r13), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%r13, %rdi
	callq	_aq_clear_rxnfc_all_rules
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_3
LBB0_4:
	movq	16(%r13), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	%r13, %rdi
	callq	_aq_filters_vlan_offload_off
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_6
LBB0_14:
	movl	%r14d, 8(%r12)
	cmpl	%eax, 12(%r12)
	je	LBB0_16
LBB0_15:
	addq	$12, %r12
	movl	%eax, (%r12)
LBB0_16:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	callq	_aq_ndev_close
	movq	%rbx, %rdi
	callq	_aq_ndev_open
LBB0_18:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_NTUPLE,4,2             ## @NETIF_F_NTUPLE
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ## @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.no_dead_strip	_aq_ndev_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aq_ndev_set_features
_aq_ndev_set_features:                  ; @aq_ndev_set_features
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w25, ne
Lloh3:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w1
	cset	w24, ne
	bl	_netdev_priv
	mov	x23, x0
	bl	_aq_nic_get_cfg
	mov	x20, x0
Lloh6:
	adrp	x8, _NETIF_F_NTUPLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETIF_F_NTUPLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_6
LBB0_1:
	mov	w21, #0
LBB0_2:
Lloh9:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_FILTER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w22
	b.eq	LBB0_8
LBB0_3:
	str	w22, [x20]
	ldr	x8, [x20, #16]
	ldr	w9, [x8]
Lloh12:
	adrp	x8, _NETIF_F_LRO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NETIF_F_LRO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_5
; %bb.4:
	and	w8, w8, w22
	ldr	w9, [x20, #4]
	cmp	w9, w8
	b.ne	LBB0_10
LBB0_5:
	mov	w26, #1
	b	LBB0_11
LBB0_6:
	ldr	x9, [x23, #16]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.7:
	mov	x0, x23
	bl	_aq_clear_rxnfc_all_rules
	mov	x21, x0
	bl	_unlikely
	cbnz	x0, LBB0_20
	b	LBB0_2
LBB0_8:
	ldr	x9, [x23, #16]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.9:
	mov	x0, x23
	bl	_aq_filters_vlan_offload_off
	mov	x21, x0
	bl	_unlikely
	cbnz	x0, LBB0_20
	b	LBB0_3
LBB0_10:
	mov	w26, #0
	str	w8, [x20, #4]
LBB0_11:
	ldr	x8, [x23, #16]
	ldr	w8, [x8]
	eor	w8, w8, w22
Lloh15:
	adrp	x9, _NETIF_F_RXCSUM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w8, w9
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x23, #8]
	ldr	x8, [x8]
	ldr	w0, [x23]
	mov	x1, x20
	blr	x8
	mov	x21, x0
	bl	_unlikely
	cbnz	x0, LBB0_20
LBB0_13:
	ldr	w8, [x20, #8]
	cmp	w8, w25
	b.ne	LBB0_16
; %bb.14:
	ldr	w8, [x20, #12]!
	cmp	w8, w24
	b.ne	LBB0_17
; %bb.15:
	tbz	w26, #0, LBB0_18
	b	LBB0_20
LBB0_16:
	ldr	w8, [x20, #12]!
	stur	w25, [x20, #-4]
	cmp	w8, w24
	b.eq	LBB0_18
LBB0_17:
	str	w24, [x20]
LBB0_18:
	mov	x0, x19
	bl	_netif_running
	cbz	x0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_aq_ndev_close
	mov	x0, x19
	bl	_aq_ndev_open
LBB0_20:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_NTUPLE,4,2             ; @NETIF_F_NTUPLE
	.comm	_NETIF_F_HW_VLAN_CTAG_FILTER,4,2 ; @NETIF_F_HW_VLAN_CTAG_FILTER
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.no_dead_strip	_aq_ndev_set_features
.subsections_via_symbols
