	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5e_fix_features
_mlx5e_fix_features:                    ## @mlx5e_fix_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, %r13d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_mutex_lock
	leaq	8(%r15), %r12
	movl	4(%r15), %edi
	movq	_VLAN_N_VID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_empty
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%r13d, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r13d, %ebx
	cmpl	$0, (%r12)
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_4:
	movq	_MLX5E_PFLAG_RX_STRIDING_RQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5E_GET_PFLAG
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_7:
	movq	_MLX5E_PFLAG_RX_CQE_COMPRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_MLX5E_GET_PFLAG
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_NETIF_F_RXHASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	%ecx, %ebx
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_netdev_warn
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VLAN_N_VID,4,2                 ## @VLAN_N_VID
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dropping C-tag vlan stripping offload due to S-tag vlan\n"

	.comm	_MLX5E_PFLAG_RX_STRIDING_RQ,4,2 ## @MLX5E_PFLAG_RX_STRIDING_RQ
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
L_.str.1:                               ## @.str.1
	.asciz	"Disabling LRO, not supported in legacy RQ\n"

	.comm	_MLX5E_PFLAG_RX_CQE_COMPRESS,4,2 ## @MLX5E_PFLAG_RX_CQE_COMPRESS
	.comm	_NETIF_F_RXHASH,4,2             ## @NETIF_F_RXHASH
L_.str.2:                               ## @.str.2
	.asciz	"Disabling rxhash, not supported when CQE compress is active\n"

	.no_dead_strip	_mlx5e_fix_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5e_fix_features
_mlx5e_fix_features:                    ; @mlx5e_fix_features
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
	bl	_netdev_priv
	mov	x20, x0
	bl	_mutex_lock
	add	x22, x20, #8
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _VLAN_N_VID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VLAN_N_VID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_empty
	cbnz	w0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	bic	w19, w19, w8
	ldr	w8, [x22]
	cbnz	w8, LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netdev_warn
LBB0_3:
Lloh8:
	adrp	x8, _MLX5E_PFLAG_RX_STRIDING_RQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MLX5E_PFLAG_RX_STRIDING_RQ@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MLX5E_GET_PFLAG
	cbnz	x0, LBB0_6
; %bb.4:
Lloh11:
	adrp	x23, _NETIF_F_LRO@GOTPAGE
Lloh12:
	ldr	x23, [x23, _NETIF_F_LRO@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w19
	b.eq	LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_netdev_warn
	ldr	w8, [x23]
	bic	w19, w19, w8
LBB0_6:
Lloh15:
	adrp	x8, _MLX5E_PFLAG_RX_CQE_COMPRESS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLX5E_PFLAG_RX_CQE_COMPRESS@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_MLX5E_GET_PFLAG
	cbz	x0, LBB0_9
; %bb.7:
Lloh18:
	adrp	x8, _NETIF_F_RXHASH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NETIF_F_RXHASH@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	bic	w19, w19, w8
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_netdev_warn
LBB0_9:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_VLAN_N_VID,4,2                 ; @VLAN_N_VID
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dropping C-tag vlan stripping offload due to S-tag vlan\n"

	.comm	_MLX5E_PFLAG_RX_STRIDING_RQ,4,2 ; @MLX5E_PFLAG_RX_STRIDING_RQ
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
l_.str.1:                               ; @.str.1
	.asciz	"Disabling LRO, not supported in legacy RQ\n"

	.comm	_MLX5E_PFLAG_RX_CQE_COMPRESS,4,2 ; @MLX5E_PFLAG_RX_CQE_COMPRESS
	.comm	_NETIF_F_RXHASH,4,2             ; @NETIF_F_RXHASH
l_.str.2:                               ; @.str.2
	.asciz	"Disabling rxhash, not supported when CQE compress is active\n"

	.no_dead_strip	_mlx5e_fix_features
.subsections_via_symbols
