	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_set_features
_bnx2_set_features:                     ## @bnx2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_NETIF_F_HW_VLAN_CTAG_TX@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_NETIF_F_ALL_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rbx), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	_NETIF_F_ALL_TSO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
LBB0_3:
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	sete	%al
	movq	_BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14)
	setne	%cl
	xorl	%r12d, %r12d
	xorb	%al, %cl
	jne	LBB0_6
## %bb.4:
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnx2_netif_stop
	movl	%r15d, 8(%rbx)
	movq	%rbx, %rdi
	callq	_bnx2_set_rx_mode
	movq	_BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %r12d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_bnx2_fw_sync
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_bnx2_netif_start
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ## @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_ALL_TSO,4,2            ## @NETIF_F_ALL_TSO
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG,4,2 ## @BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG
	.comm	_BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE,4,2 ## @BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE
	.no_dead_strip	_bnx2_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_set_features
_bnx2_set_features:                     ; @bnx2_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
Lloh0:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_TX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _NETIF_F_ALL_TSO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETIF_F_ALL_TSO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldp	w10, w9, [x20]
	and	w8, w8, w9
	orr	w8, w10, w8
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _NETIF_F_ALL_TSO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETIF_F_ALL_TSO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
LBB0_3:
	str	w8, [x20]
Lloh9:
	adrp	x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w8, eq
	ldr	w9, [x19]
Lloh12:
	adrp	x10, _BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, ne
	eor	w8, w8, w9
	tbnz	w8, #0, LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2_netif_stop
	str	w21, [x20, #8]
	mov	x0, x20
	bl	_bnx2_set_rx_mode
Lloh15:
	adrp	x8, _BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	w20, #1
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_bnx2_fw_sync
	mov	x0, x19
	mov	w1, #0
	bl	_bnx2_netif_start
	b	LBB0_7
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_TX,4,2    ; @NETIF_F_HW_VLAN_CTAG_TX
	.comm	_NETIF_F_ALL_TSO,4,2            ; @NETIF_F_ALL_TSO
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG,4,2 ; @BNX2_EMAC_RX_MODE_KEEP_VLAN_TAG
	.comm	_BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE,4,2 ; @BNX2_DRV_MSG_CODE_KEEP_VLAN_UPDATE
	.no_dead_strip	_bnx2_set_features
.subsections_via_symbols
