	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_fix_features             ## -- Begin function bnx2x_fix_features
	.p2align	4, 0x90
_bnx2x_fix_features:                    ## @bnx2x_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_pci_num_vf
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%r14), %ecx
	movl	%ecx, %edx
	xorl	%r12d, %edx
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r12d, %eax
	jne	LBB0_5
## %bb.3:
	cmpl	$0, (%r15)
	jne	LBB0_5
## %bb.4:
	movl	%edx, %esi
	andl	%eax, %esi
	xorl	%esi, %r12d
LBB0_5:
	movq	_NETIF_F_LOOPBACK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%edx, %esi
	je	LBB0_7
## %bb.6:
	xorl	%r12d, %ecx
	andl	%esi, %ecx
	xorl	%ecx, %r12d
	jmp	LBB0_7
LBB0_1:
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	andl	%r12d, %eax
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	notl	%ecx
	xorl	%ebx, %ebx
	negl	%eax
	sbbl	%ebx, %ebx
	orl	%ecx, %ebx
	andl	%r12d, %ebx
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_10
## %bb.8:
	movl	4(%r14), %edi
	callq	_bnx2x_mtu_allows_gro
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movq	_NETIF_F_GRO_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	jmp	LBB0_11
LBB0_10:
	movq	_NETIF_F_GRO_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %eax
	notl	%eax
	andl	%eax, %ebx
LBB0_11:
	andl	%ebx, %ecx
	movl	(%r15), %edx
	notl	%edx
	xorl	%eax, %eax
	cmpl	$1, %ecx
	sbbl	%eax, %eax
	orl	%edx, %eax
	andl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_LOOPBACK,4,2           ## @NETIF_F_LOOPBACK
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_NETIF_F_GRO,4,2                ## @NETIF_F_GRO
	.comm	_NETIF_F_GRO_HW,4,2             ## @NETIF_F_GRO_HW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_fix_features             ; -- Begin function bnx2x_fix_features
	.p2align	2
_bnx2x_fix_features:                    ; @bnx2x_fix_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	x20, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_pci_num_vf
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w9, [x19]
	eor	w10, w9, w20
Lloh0:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_3
; %bb.2:
	ldr	w11, [x21]
	bic	w12, w20, w8
	and	w13, w8, w9
	orr	w12, w12, w13
	cmp	w11, #0
	csel	w20, w20, w12, ne
LBB0_3:
Lloh3:
	adrp	x11, _NETIF_F_LOOPBACK@GOTPAGE
Lloh4:
	ldr	x11, [x11, _NETIF_F_LOOPBACK@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	bic	w10, w20, w11
	and	w9, w11, w9
	orr	w9, w10, w9
	csel	w20, w20, w9, eq
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _NETIF_F_RXCSUM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
LBB0_5:
Lloh9:
	adrp	x21, _NETIF_F_LRO@GOTPAGE
Lloh10:
	ldr	x21, [x21, _NETIF_F_LRO@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w8, w20
	mov	w8, #-1
	csinv	w8, w8, w9, ne
	and	w20, w8, w20
Lloh11:
	adrp	x8, _NETIF_F_GRO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETIF_F_GRO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w20, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x19, #4]
	bl	_bnx2x_mtu_allows_gro
	cbz	w0, LBB0_8
; %bb.7:
Lloh14:
	adrp	x8, _NETIF_F_GRO_HW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NETIF_F_GRO_HW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	b	LBB0_9
LBB0_8:
Lloh17:
	adrp	x8, _NETIF_F_GRO_HW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NETIF_F_GRO_HW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	bic	w20, w20, w8
LBB0_9:
	ldr	w9, [x21]
	tst	w8, w20
	mov	w8, #-1
	csinv	w8, w8, w9, eq
	and	w0, w8, w20
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_LOOPBACK,4,2           ; @NETIF_F_LOOPBACK
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_NETIF_F_GRO,4,2                ; @NETIF_F_GRO
	.comm	_NETIF_F_GRO_HW,4,2             ; @NETIF_F_GRO_HW
.subsections_via_symbols
