	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_en_set_features
_mlx4_en_set_features:                  ## @mlx4_en_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_NETIF_F_RXFCS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_DEV_FEATURE_CHANGED
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	andl	%r12d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_3
LBB0_1:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movq	_NETIF_F_RXALL@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_DEV_FEATURE_CHANGED
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	movl	(%r13), %eax
	andl	%r12d, %eax
	setne	%bl
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
	movq	8(%r15), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	movl	%ebx, %edx
	callq	_mlx4_SET_PORT_fcs_check
	testl	%eax, %eax
	jne	LBB0_16
LBB0_5:
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_DEV_FEATURE_CHANGED
	testq	%rax, %rax
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %eax
	andl	%r12d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
	movl	$1, %r13d
LBB0_7:
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_DEV_FEATURE_CHANGED
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movl	(%rbx), %eax
	andl	%r12d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
LBB0_9:
	movq	_NETIF_F_HW_VLAN_STAG_TX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_DEV_FEATURE_CHANGED
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%rbx), %eax
	andl	%r12d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
LBB0_11:
	movq	_NETIF_F_LOOPBACK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_DEV_FEATURE_CHANGED
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movl	(%rbx), %eax
	andl	%r12d, %eax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_en_info
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_mlx4_en_update_loopback_state
LBB0_13:
	testl	%r13d, %r13d
	je	LBB0_15
## %bb.14:
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_mlx4_en_reset_config
	testl	%eax, %eax
	jne	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXFCS,4,2              ## @NETIF_F_RXFCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Turn %s RX-FCS\n"

L_.str.1:                               ## @.str.1
	.asciz	"ON"

L_.str.2:                               ## @.str.2
	.asciz	"OFF"

	.comm	_NETIF_F_RXALL,4,2              ## @NETIF_F_RXALL
L_.str.3:                               ## @.str.3
	.asciz	"Turn %s RX-ALL\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
L_.str.4:                               ## @.str.4
	.asciz	"Turn %s RX vlan strip offload\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
L_.str.5:                               ## @.str.5
	.asciz	"Turn %s TX vlan strip offload\n"

	.comm	_NETIF_F_HW_VLAN_STAG_TX,4,2    ## @NETIF_F_HW_VLAN_STAG_TX
L_.str.6:                               ## @.str.6
	.asciz	"Turn %s TX S-VLAN strip offload\n"

	.comm	_NETIF_F_LOOPBACK,4,2           ## @NETIF_F_LOOPBACK
L_.str.7:                               ## @.str.7
	.asciz	"Turn %s loopback\n"

	.no_dead_strip	_mlx4_en_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_en_set_features
_mlx4_en_set_features:                  ; @mlx4_en_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
Lloh0:
	adrp	x22, _NETIF_F_RXFCS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NETIF_F_RXFCS@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_DEV_FEATURE_CHANGED
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
Lloh4:
	adrp	x24, l_.str.2@PAGE
Lloh5:
	add	x24, x24, l_.str.2@PAGEOFF
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	tst	w8, w19
	csel	x2, x24, x23, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_en_info
	mov	w25, #1
	b	LBB0_3
LBB0_2:
	mov	w25, #0
LBB0_3:
Lloh8:
	adrp	x22, _NETIF_F_RXALL@GOTPAGE
Lloh9:
	ldr	x22, [x22, _NETIF_F_RXALL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_DEV_FEATURE_CHANGED
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w8, [x22]
	tst	w8, w19
	cset	w22, ne
	csel	x2, x24, x23, eq
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_en_info
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	ldr	w1, [x21, #4]
	mov	x2, x22
	bl	_mlx4_SET_PORT_fcs_check
	cbnz	w0, LBB0_16
LBB0_5:
Lloh12:
	adrp	x22, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh13:
	ldr	x22, [x22, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_DEV_FEATURE_CHANGED
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w8, [x22]
	tst	w8, w19
	csel	x2, x24, x23, eq
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_en_info
	mov	w25, #1
LBB0_7:
Lloh16:
	adrp	x22, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh17:
	ldr	x22, [x22, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_DEV_FEATURE_CHANGED
	cbz	x0, LBB0_9
; %bb.8:
	ldr	w8, [x22]
	tst	w8, w19
	csel	x2, x24, x23, eq
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_en_info
LBB0_9:
Lloh20:
	adrp	x22, _NETIF_F_HW_VLAN_STAG_TX@GOTPAGE
Lloh21:
	ldr	x22, [x22, _NETIF_F_HW_VLAN_STAG_TX@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_DEV_FEATURE_CHANGED
	cbz	x0, LBB0_11
; %bb.10:
	ldr	w8, [x22]
	tst	w8, w19
	csel	x2, x24, x23, eq
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_en_info
LBB0_11:
Lloh24:
	adrp	x22, _NETIF_F_LOOPBACK@GOTPAGE
Lloh25:
	ldr	x22, [x22, _NETIF_F_LOOPBACK@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_DEV_FEATURE_CHANGED
	cbz	x0, LBB0_13
; %bb.12:
	ldr	w8, [x22]
	tst	w8, w19
	csel	x2, x24, x23, eq
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_en_info
	mov	x0, x20
	mov	x1, x19
	bl	_mlx4_en_update_loopback_state
LBB0_13:
	cbz	w25, LBB0_15
; %bb.14:
	ldr	w1, [x21]
	mov	x0, x20
	mov	x2, x19
	bl	_mlx4_en_reset_config
	cbnz	w0, LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	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 AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXFCS,4,2              ; @NETIF_F_RXFCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Turn %s RX-FCS\n"

l_.str.1:                               ; @.str.1
	.asciz	"ON"

l_.str.2:                               ; @.str.2
	.asciz	"OFF"

	.comm	_NETIF_F_RXALL,4,2              ; @NETIF_F_RXALL
l_.str.3:                               ; @.str.3
	.asciz	"Turn %s RX-ALL\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
l_.str.4:                               ; @.str.4
	.asciz	"Turn %s RX vlan strip offload\n"

	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
l_.str.5:                               ; @.str.5
	.asciz	"Turn %s TX vlan strip offload\n"

	.comm	_NETIF_F_HW_VLAN_STAG_TX,4,2    ; @NETIF_F_HW_VLAN_STAG_TX
l_.str.6:                               ; @.str.6
	.asciz	"Turn %s TX S-VLAN strip offload\n"

	.comm	_NETIF_F_LOOPBACK,4,2           ; @NETIF_F_LOOPBACK
l_.str.7:                               ; @.str.7
	.asciz	"Turn %s loopback\n"

	.no_dead_strip	_mlx4_en_set_features
.subsections_via_symbols
