	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnxt_set_features
_bnxt_set_features:                     ## @bnxt_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
	callq	_netdev_priv
	movl	(%rax), %r15d
	movq	_BNXT_FLAG_ALL_CONFIG_FEATS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%r15d, %esi
	movq	_NETIF_F_GRO_HW@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_BNXT_FLAG_GRO@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	je	LBB0_5
## %bb.3:
	movq	_BNXT_FLAG_LRO@GOTPCREL(%rip), %rcx
LBB0_4:
	orl	(%rcx), %esi
LBB0_5:
	movq	_BNXT_FLAG_NO_AGG_RINGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%r15d, %edx
	movq	_BNXT_FLAG_TPA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movl	%r14d, %r12d
	notl	%r12d
	xorl	%ecx, %ecx
	cmpl	$1, %edx
	sbbl	%ecx, %ecx
	orl	%r12d, %ecx
	andl	%esi, %ecx
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	andl	%ebx, %r13d
	je	LBB0_7
## %bb.6:
	movq	_BNXT_FLAG_STRIP_VLAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
LBB0_7:
	orl	%ecx, %r13d
	movq	_NETIF_F_NTUPLE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	je	LBB0_9
## %bb.8:
	movq	_BNXT_FLAG_RFS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
LBB0_9:
	orl	%ebx, %r13d
	movl	%r13d, %ebx
	xorl	%r15d, %ebx
	movb	$1, %dl
	testl	%r14d, %ebx
	je	LBB0_14
## %bb.10:
	testl	%r15d, %r14d
	je	LBB0_13
## %bb.11:
	movl	%r13d, %ecx
	andl	%r14d, %ecx
	je	LBB0_13
## %bb.12:
	movq	_BNXT_FLAG_CHIP_P5@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_14
LBB0_13:
	xorl	%edx, %edx
LBB0_14:
	xorl	%ecx, %ecx
	cmpl	%r15d, %r13d
	je	LBB0_26
## %bb.15:
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	_BNXT_STATE_OPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	%rax, %rsi
	addq	$4, %rsi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	testl	%r12d, %ebx
	sete	%al
	testb	%al, -52(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_22
## %bb.17:
	testl	%r14d, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_25
## %bb.18:
	movl	%r13d, (%rdi)
	xorl	%esi, %esi
	movq	_BNXT_FLAG_TPA@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	setne	%sil
	movq	%rdi, %rbx
	callq	_bnxt_set_tpa
	testl	%eax, %eax
	movl	$0, %ecx
	je	LBB0_26
## %bb.19:
	movl	%r15d, (%rbx)
	movl	%eax, %ecx
	jmp	LBB0_26
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, (%rdi)
	testl	%r14d, %ebx
	je	LBB0_25
## %bb.21:
	callq	_bnxt_set_ring_params
LBB0_25:
	xorl	%ecx, %ecx
LBB0_26:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_bnxt_close_nic
	movq	%r15, %rdi
	movl	%r13d, (%r15)
	testl	%r14d, %ebx
	je	LBB0_24
## %bb.23:
	callq	_bnxt_set_ring_params
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_24:
	xorl	%esi, %esi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnxt_open_nic                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BNXT_FLAG_ALL_CONFIG_FEATS,4,2 ## @BNXT_FLAG_ALL_CONFIG_FEATS
	.comm	_NETIF_F_GRO_HW,4,2             ## @NETIF_F_GRO_HW
	.comm	_BNXT_FLAG_GRO,4,2              ## @BNXT_FLAG_GRO
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_BNXT_FLAG_LRO,4,2              ## @BNXT_FLAG_LRO
	.comm	_BNXT_FLAG_NO_AGG_RINGS,4,2     ## @BNXT_FLAG_NO_AGG_RINGS
	.comm	_BNXT_FLAG_TPA,4,2              ## @BNXT_FLAG_TPA
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_BNXT_FLAG_STRIP_VLAN,4,2       ## @BNXT_FLAG_STRIP_VLAN
	.comm	_NETIF_F_NTUPLE,4,2             ## @NETIF_F_NTUPLE
	.comm	_BNXT_FLAG_RFS,4,2              ## @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ## @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_STATE_OPEN,4,2            ## @BNXT_STATE_OPEN
	.no_dead_strip	_bnxt_set_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnxt_set_features
_bnxt_set_features:                     ; @bnxt_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	x20, x1
	bl	_netdev_priv
	mov	x19, x0
	ldr	w21, [x0]
Lloh0:
	adrp	x8, _BNXT_FLAG_ALL_CONFIG_FEATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BNXT_FLAG_ALL_CONFIG_FEATS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w21, w8
Lloh3:
	adrp	x9, _NETIF_F_GRO_HW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_GRO_HW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _BNXT_FLAG_GRO@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BNXT_FLAG_GRO@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_5
; %bb.3:
Lloh11:
	adrp	x9, _BNXT_FLAG_LRO@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BNXT_FLAG_LRO@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_5:
Lloh13:
	adrp	x9, _BNXT_FLAG_NO_AGG_RINGS@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BNXT_FLAG_NO_AGG_RINGS@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x22, _BNXT_FLAG_TPA@GOTPAGE
Lloh17:
	ldr	x22, [x22, _BNXT_FLAG_TPA@GOTPAGEOFF]
	ldr	w23, [x22]
	tst	w9, w21
	mov	w9, #-1
	csinv	w9, w9, w23, eq
	and	w8, w9, w8
Lloh18:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _BNXT_FLAG_STRIP_VLAN@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BNXT_FLAG_STRIP_VLAN@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _NETIF_F_NTUPLE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NETIF_F_NTUPLE@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
Lloh27:
	adrp	x10, _BNXT_FLAG_RFS@GOTPAGE
Lloh28:
	ldr	x10, [x10, _BNXT_FLAG_RFS@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	tst	w9, w20
	csel	w9, wzr, w10, eq
	orr	w20, w8, w9
	eor	w25, w20, w21
	ands	w24, w25, w23
	b.eq	LBB0_9
; %bb.6:
	and	w8, w23, w21
	and	w9, w20, w23
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.eq	LBB0_8
; %bb.7:
Lloh30:
	adrp	x8, _BNXT_FLAG_CHIP_P5@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BNXT_FLAG_CHIP_P5@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_9
LBB0_8:
	mov	w26, #0
	cmp	w20, w21
	b.eq	LBB0_17
	b	LBB0_10
LBB0_9:
	mov	w26, #1
	cmp	w20, w21
	b.eq	LBB0_17
LBB0_10:
Lloh33:
	adrp	x8, _BNXT_STATE_OPEN@GOTPAGE
Lloh34:
	ldr	x8, [x8, _BNXT_STATE_OPEN@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbz	w0, LBB0_15
; %bb.11:
	mvn	w8, w23
	and	w8, w25, w8
	cmp	w8, #0
	cset	w8, eq
	and	w8, w8, w26
	tbz	w8, #0, LBB0_19
; %bb.12:
	cbz	w24, LBB0_17
; %bb.13:
	str	w20, [x19]
	ldr	w8, [x22]
	tst	w8, w20
	cset	w1, ne
	mov	x0, x19
	bl	_bnxt_set_tpa
	cbz	w0, LBB0_18
; %bb.14:
	str	w21, [x19]
	b	LBB0_18
LBB0_15:
	str	w20, [x19]
	cbz	w24, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_bnxt_set_ring_params
LBB0_17:
	mov	w0, #0
LBB0_18:
	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
LBB0_19:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_bnxt_close_nic
	str	w20, [x19]
	cbz	w24, LBB0_21
; %bb.20:
	mov	x0, x19
	bl	_bnxt_set_ring_params
LBB0_21:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	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
	b	_bnxt_open_nic
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_BNXT_FLAG_ALL_CONFIG_FEATS,4,2 ; @BNXT_FLAG_ALL_CONFIG_FEATS
	.comm	_NETIF_F_GRO_HW,4,2             ; @NETIF_F_GRO_HW
	.comm	_BNXT_FLAG_GRO,4,2              ; @BNXT_FLAG_GRO
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_BNXT_FLAG_LRO,4,2              ; @BNXT_FLAG_LRO
	.comm	_BNXT_FLAG_NO_AGG_RINGS,4,2     ; @BNXT_FLAG_NO_AGG_RINGS
	.comm	_BNXT_FLAG_TPA,4,2              ; @BNXT_FLAG_TPA
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_BNXT_FLAG_STRIP_VLAN,4,2       ; @BNXT_FLAG_STRIP_VLAN
	.comm	_NETIF_F_NTUPLE,4,2             ; @NETIF_F_NTUPLE
	.comm	_BNXT_FLAG_RFS,4,2              ; @BNXT_FLAG_RFS
	.comm	_BNXT_FLAG_CHIP_P5,4,2          ; @BNXT_FLAG_CHIP_P5
	.comm	_BNXT_STATE_OPEN,4,2            ; @BNXT_STATE_OPEN
	.no_dead_strip	_bnxt_set_features
.subsections_via_symbols
