	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e1000_set_features
_e1000_set_features:                    ## @e1000_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%rbx), %eax
	xorl	%r15d, %eax
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_2
## %bb.1:
	movq	_FLAG_TSO_FORCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 4(%r14)
LBB0_2:
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_NETIF_F_RXHASH@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_NETIF_F_RXFCS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %edx
	movq	_NETIF_F_RXALL@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	testl	%eax, %edx
	je	LBB0_3
## %bb.4:
	testl	%eax, %ecx
	je	LBB0_10
## %bb.5:
	testl	%r15d, %ecx
	je	LBB0_7
## %bb.6:
	movq	_FLAG2_CRC_STRIPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r14)
	jmp	LBB0_10
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_7:
	movl	(%r14), %eax
	movq	_FLAG2_DFLT_CRC_STRIPPING@GOTPCREL(%rip), %rdx
	movq	_FLAG2_CRC_STRIPPING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, (%rdx)
	je	LBB0_9
## %bb.8:
	orl	%eax, %ecx
	movl	%ecx, (%r14)
	jmp	LBB0_10
LBB0_9:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
LBB0_10:
	movl	%r15d, (%rbx)
	movq	%rbx, %rdi
	callq	_netif_running
	movq	%r14, %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	callq	_e1000e_reinit_locked
	jmp	LBB0_13
LBB0_12:
	callq	_e1000e_reset
LBB0_13:
	movl	$1, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_FLAG_TSO_FORCE,4,2             ## @FLAG_TSO_FORCE
	.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_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_RXHASH,4,2             ## @NETIF_F_RXHASH
	.comm	_NETIF_F_RXFCS,4,2              ## @NETIF_F_RXFCS
	.comm	_NETIF_F_RXALL,4,2              ## @NETIF_F_RXALL
	.comm	_FLAG2_CRC_STRIPPING,4,2        ## @FLAG2_CRC_STRIPPING
	.comm	_FLAG2_DFLT_CRC_STRIPPING,4,2   ## @FLAG2_DFLT_CRC_STRIPPING
	.no_dead_strip	_e1000_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e1000_set_features
_e1000_set_features:                    ; @e1000_set_features
	.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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x19, x0
	ldr	w8, [x20]
	eor	w8, w8, w21
Lloh0:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _NETIF_F_TSO6@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NETIF_F_TSO6@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _FLAG_TSO_FORCE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLAG_TSO_FORCE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19, #4]
	orr	w9, w10, w9
	str	w9, [x19, #4]
LBB0_2:
Lloh9:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh15:
	adrp	x10, _NETIF_F_RXCSUM@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _NETIF_F_RXHASH@GOTPAGE
Lloh19:
	ldr	x11, [x11, _NETIF_F_RXHASH@GOTPAGEOFF]
	orr	w9, w9, w10
Lloh20:
	ldr	w10, [x11]
	orr	w10, w9, w10
Lloh21:
	adrp	x9, _NETIF_F_RXFCS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NETIF_F_RXFCS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w10, w10, w9
Lloh24:
	adrp	x11, _NETIF_F_RXALL@GOTPAGE
Lloh25:
	ldr	x11, [x11, _NETIF_F_RXALL@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	orr	w10, w10, w11
	tst	w10, w8
	b.eq	LBB0_6
; %bb.3:
	tst	w9, w8
	b.eq	LBB0_11
; %bb.4:
	tst	w9, w21
	b.eq	LBB0_7
; %bb.5:
Lloh27:
	adrp	x8, _FLAG2_CRC_STRIPPING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FLAG2_CRC_STRIPPING@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	b	LBB0_10
LBB0_6:
	mov	w0, #0
	b	LBB0_15
LBB0_7:
Lloh30:
	adrp	x9, _FLAG2_DFLT_CRC_STRIPPING@GOTPAGE
Lloh31:
	ldr	x9, [x9, _FLAG2_DFLT_CRC_STRIPPING@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh32:
	ldr	w10, [x9]
Lloh33:
	adrp	x9, _FLAG2_CRC_STRIPPING@GOTPAGE
Lloh34:
	ldr	x9, [x9, _FLAG2_CRC_STRIPPING@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
	orr	w8, w9, w8
	b	LBB0_10
LBB0_9:
	bic	w8, w8, w9
LBB0_10:
	str	w8, [x19]
LBB0_11:
	str	w21, [x20]
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_e1000e_reinit_locked
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_e1000e_reset
LBB0_14:
	mov	w0, #1
LBB0_15:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_FLAG_TSO_FORCE,4,2             ; @FLAG_TSO_FORCE
	.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_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_RXHASH,4,2             ; @NETIF_F_RXHASH
	.comm	_NETIF_F_RXFCS,4,2              ; @NETIF_F_RXFCS
	.comm	_NETIF_F_RXALL,4,2              ; @NETIF_F_RXALL
	.comm	_FLAG2_CRC_STRIPPING,4,2        ; @FLAG2_CRC_STRIPPING
	.comm	_FLAG2_DFLT_CRC_STRIPPING,4,2   ; @FLAG2_DFLT_CRC_STRIPPING
	.no_dead_strip	_e1000_set_features
.subsections_via_symbols
