	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fix_features            ## -- Begin function qlcnic_fix_features
	.p2align	4, 0x90
_qlcnic_fix_features:                   ## @qlcnic_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.2:
	movq	_QLCNIC_APP_CHANGED_FLAGS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_qlcnic_process_flags
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_4:
	movl	(%r15), %eax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	xorl	%r14d, %eax
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	andl	%eax, %edx
	xorl	%edx, %r14d
LBB0_5:
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	andl	%r14d, %ecx
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%eax, %eax
	negl	%ecx
	sbbl	%eax, %eax
	orl	%edx, %eax
	andl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_APP_CHANGED_FLAGS,4,2   ## @QLCNIC_APP_CHANGED_FLAGS
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_TSO,4,2                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ## @NETIF_F_TSO6
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_fix_features            ; -- Begin function qlcnic_fix_features
	.p2align	2
_qlcnic_fix_features:                   ; @qlcnic_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	x19, x1
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	bl	_qlcnic_82xx_check
Lloh0:
	adrp	x22, _NETIF_F_RXCSUM@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NETIF_F_RXCSUM@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x21]
Lloh2:
	adrp	x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.2:
Lloh5:
	adrp	x9, _QLCNIC_APP_CHANGED_FLAGS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLCNIC_APP_CHANGED_FLAGS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	mov	x1, x19
	bl	_qlcnic_process_flags
	mov	x19, x0
	b	LBB0_5
LBB0_4:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _NETIF_F_TSO@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NETIF_F_TSO@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _NETIF_F_TSO6@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NETIF_F_TSO6@GOTPAGEOFF]
	ldr	w10, [x20]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bic	w9, w19, w8
	and	w8, w10, w8
	orr	w19, w8, w9
LBB0_5:
	ldr	w8, [x22]
Lloh20:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w8, w19
	mov	w8, #-1
	csinv	w8, w8, w9, ne
	and	w0, w8, w19
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_QLCNIC_APP_CHANGED_FLAGS,4,2   ; @QLCNIC_APP_CHANGED_FLAGS
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_NETIF_F_IP_CSUM,4,2            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,4,2          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_TSO,4,2                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,4,2               ; @NETIF_F_TSO6
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
.subsections_via_symbols
