	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_netdev_features
_qlcnic_set_netdev_features:            ## @qlcnic_set_netdev_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
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	16(%rdi), %r13
	callq	_qlcnic_83xx_check
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rax
	movq	_NETIF_F_IP_CSUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rbx
	orq	(%rax), %rbx
	movq	_NETIF_F_IPV6_CSUM@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	_NETIF_F_GRO@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%r15, %rdi
	callq	_QLCNIC_IS_TSO_CAPABLE
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdi
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %r8
	movq	(%r8), %r12
	orq	(%rdi), %r12
	testq	%rax, %rax
	cmoveq	%rax, %r12
	orq	%rbx, %r12
	movq	%r13, %r9
	movl	(%r13), %ecx
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%edx, %eax
	andl	%ecx, %eax
	cmovnel	%edx, %eax
	movslq	%eax, %r13
	orq	%r12, %r13
	movl	(%r14), %eax
	movq	_BIT_0@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_9
## %bb.2:
	movl	$1, (%r15)
	movq	_QLCNIC_LRO_WAS_ENABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, 4(%r15)
	je	LBB0_5
## %bb.3:
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	_QLCNIC_LRO_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qlcnic_config_hw_lro
	testq	%rax, %rax
	jne	LBB0_16
## %bb.4:
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	movl	(%r9), %ecx
	orl	(%rbx), %ecx
	movl	(%r14), %eax
	movq	_NETIF_F_TSO6@GOTPCREL(%rip), %r8
	movq	_NETIF_F_TSO@GOTPCREL(%rip), %rdi
LBB0_5:
	movl	%r13d, %edx
	orl	%ecx, %edx
	movl	%edx, (%r9)
	movq	_BIT_1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.6:
	movq	(%rdi), %rcx
	movl	%ecx, %esi
	notl	%esi
	andl	%esi, %edx
	movl	%edx, (%r9)
	notq	%rcx
	andq	%rcx, %r13
LBB0_7:
	movq	_BIT_2@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_15
## %bb.8:
	movq	(%r8), %rax
	movl	%eax, %ecx
	notl	%ecx
	andl	%ecx, %edx
	movl	%edx, (%r9)
	notq	%rax
	andq	%rax, %r13
	jmp	LBB0_15
LBB0_9:
	testl	%ecx, %edx
	je	LBB0_14
## %bb.10:
	movq	%r9, %rbx
	movq	_QLCNIC_LRO_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qlcnic_config_hw_lro
	testq	%rax, %rax
	jne	LBB0_16
## %bb.11:
	movq	%r15, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	callq	_qlcnic_send_lro_cleanup
LBB0_13:
	movq	8(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	_QLCNIC_LRO_WAS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	%rbx, %r9
	movl	(%rbx), %ecx
LBB0_14:
	notl	%r13d
	andl	%ecx, %r13d
	movl	%r13d, (%r9)
	movl	$0, (%r15)
	xorl	%r13d, %r13d
LBB0_15:
	andq	%r12, %r13
	movq	%r13, 8(%r9)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_SG,8,3                 ## @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,8,3            ## @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,8,3          ## @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_GRO,8,3                ## @NETIF_F_GRO
	.comm	_NETIF_F_TSO,8,3                ## @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,8,3               ## @NETIF_F_TSO6
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_BIT_0,4,2                      ## @BIT_0
	.comm	_QLCNIC_LRO_WAS_ENABLED,4,2     ## @QLCNIC_LRO_WAS_ENABLED
	.comm	_QLCNIC_LRO_ENABLED,4,2         ## @QLCNIC_LRO_ENABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling LRO as Rx checksum is on\n"

	.comm	_BIT_1,4,2                      ## @BIT_1
	.comm	_BIT_2,4,2                      ## @BIT_2
	.comm	_QLCNIC_LRO_DISABLED,4,2        ## @QLCNIC_LRO_DISABLED
L_.str.1:                               ## @.str.1
	.asciz	"Disabling LRO as rx_csum is off\n"

	.no_dead_strip	_qlcnic_set_netdev_features
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_netdev_features
_qlcnic_set_netdev_features:            ; @qlcnic_set_netdev_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
	mov	x19, x0
	ldr	x21, [x0, #16]
	bl	_qlcnic_83xx_check
	cbnz	x0, LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_F_SG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NETIF_F_IP_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_IP_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	orr	x8, x9, x8
Lloh6:
	adrp	x9, _NETIF_F_IPV6_CSUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NETIF_F_IPV6_CSUM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	orr	x8, x8, x9
Lloh9:
	adrp	x9, _NETIF_F_GRO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NETIF_F_GRO@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	orr	x22, x8, x9
	mov	x0, x19
	bl	_QLCNIC_IS_TSO_CAPABLE
Lloh12:
	adrp	x25, _NETIF_F_TSO@GOTPAGE
Lloh13:
	ldr	x25, [x25, _NETIF_F_TSO@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh14:
	adrp	x24, _NETIF_F_TSO6@GOTPAGE
Lloh15:
	ldr	x24, [x24, _NETIF_F_TSO6@GOTPAGEOFF]
	ldr	x9, [x24]
	orr	x8, x9, x8
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	orr	x22, x22, x8
	ldr	w9, [x21]
Lloh16:
	adrp	x26, _NETIF_F_LRO@GOTPAGE
Lloh17:
	ldr	x26, [x26, _NETIF_F_LRO@GOTPAGEOFF]
	ldr	w8, [x26]
	ands	w10, w8, w9
	csel	w8, wzr, w8, eq
	sxtw	x8, w8
	orr	x23, x22, x8
	ldr	w8, [x20]
Lloh18:
	adrp	x11, _BIT_0@GOTPAGE
Lloh19:
	ldr	x11, [x11, _BIT_0@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_9
; %bb.2:
	mov	w10, #1
	str	w10, [x19]
	ldr	w10, [x19, #4]
Lloh21:
	adrp	x11, _QLCNIC_LRO_WAS_ENABLED@GOTPAGE
Lloh22:
	ldr	x11, [x11, _QLCNIC_LRO_WAS_ENABLED@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_5
; %bb.3:
Lloh24:
	adrp	x8, _QLCNIC_LRO_ENABLED@GOTPAGE
Lloh25:
	ldr	x8, [x8, _QLCNIC_LRO_ENABLED@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_config_hw_lro
	cbnz	x0, LBB0_16
; %bb.4:
	ldr	x0, [x19, #8]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w8, [x26]
	ldr	w9, [x21]
	orr	w9, w9, w8
	ldr	w8, [x20]
LBB0_5:
	orr	w9, w9, w23
	str	w9, [x21]
Lloh29:
	adrp	x10, _BIT_1@GOTPAGE
Lloh30:
	ldr	x10, [x10, _BIT_1@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_7
; %bb.6:
	ldr	x10, [x25]
	bic	w9, w9, w10
	str	w9, [x21]
	bic	x23, x23, x10
LBB0_7:
Lloh32:
	adrp	x10, _BIT_2@GOTPAGE
Lloh33:
	ldr	x10, [x10, _BIT_2@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w8
	b.ne	LBB0_15
; %bb.8:
	ldr	x8, [x24]
	bic	w9, w9, w8
	str	w9, [x21]
	bic	x23, x23, x8
	b	LBB0_15
LBB0_9:
	cbz	w10, LBB0_14
; %bb.10:
Lloh35:
	adrp	x8, _QLCNIC_LRO_DISABLED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _QLCNIC_LRO_DISABLED@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_config_hw_lro
	cbnz	x0, LBB0_16
; %bb.11:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_qlcnic_send_lro_cleanup
LBB0_13:
	ldr	x0, [x19, #8]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh40:
	adrp	x8, _QLCNIC_LRO_WAS_ENABLED@GOTPAGE
Lloh41:
	ldr	x8, [x8, _QLCNIC_LRO_WAS_ENABLED@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	orr	w8, w9, w8
	str	w8, [x19, #4]
	ldr	w9, [x21]
LBB0_14:
	bic	w8, w9, w23
	str	w8, [x21]
	str	wzr, [x19]
	mov	x23, #0
LBB0_15:
	and	x8, x23, x22
	str	x8, [x21, #8]
LBB0_16:
	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
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_SG,8,3                 ; @NETIF_F_SG
	.comm	_NETIF_F_IP_CSUM,8,3            ; @NETIF_F_IP_CSUM
	.comm	_NETIF_F_IPV6_CSUM,8,3          ; @NETIF_F_IPV6_CSUM
	.comm	_NETIF_F_GRO,8,3                ; @NETIF_F_GRO
	.comm	_NETIF_F_TSO,8,3                ; @NETIF_F_TSO
	.comm	_NETIF_F_TSO6,8,3               ; @NETIF_F_TSO6
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_BIT_0,4,2                      ; @BIT_0
	.comm	_QLCNIC_LRO_WAS_ENABLED,4,2     ; @QLCNIC_LRO_WAS_ENABLED
	.comm	_QLCNIC_LRO_ENABLED,4,2         ; @QLCNIC_LRO_ENABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling LRO as Rx checksum is on\n"

	.comm	_BIT_1,4,2                      ; @BIT_1
	.comm	_BIT_2,4,2                      ; @BIT_2
	.comm	_QLCNIC_LRO_DISABLED,4,2        ; @QLCNIC_LRO_DISABLED
l_.str.1:                               ; @.str.1
	.asciz	"Disabling LRO as rx_csum is off\n"

	.no_dead_strip	_qlcnic_set_netdev_features
.subsections_via_symbols
