	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_rx_csum
_qlcnic_set_rx_csum:                    ## @qlcnic_set_rx_csum
	.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, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	movq	_QLCNIC_ESWITCH_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_4
## %bb.1:
	movq	%r15, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.5:
	movl	$1, 4(%r15)
	movq	_QLCNIC_LRO_WAS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	testl	%eax, (%r15)
	je	LBB0_13
## %bb.6:
	movq	_QLCNIC_LRO_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qlcnic_config_hw_lro
	testq	%rax, %rax
	jne	LBB0_7
## %bb.8:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movq	8(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_13
LBB0_9:
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	je	LBB0_12
## %bb.10:
	movq	_QLCNIC_LRO_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_qlcnic_config_hw_lro
	testq	%rax, %rax
	je	LBB0_11
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_qlcnic_send_lro_cleanup
	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, (%r15)
LBB0_12:
	movl	$0, 4(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ## @QLCNIC_ESWITCH_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_QLCNIC_LRO_WAS_ENABLED,4,2     ## @QLCNIC_LRO_WAS_ENABLED
	.comm	_QLCNIC_LRO_ENABLED,4,2         ## @QLCNIC_LRO_ENABLED
	.comm	_EIO,4,2                        ## @EIO
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling LRO as Rx checksum is on\n"

	.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_rx_csum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_rx_csum
_qlcnic_set_rx_csum:                    ; @qlcnic_set_rx_csum
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QLCNIC_ESWITCH_ENABLED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
	b	LBB0_10
LBB0_3:
	cbz	w21, LBB0_7
; %bb.4:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _QLCNIC_LRO_WAS_ENABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QLCNIC_LRO_WAS_ENABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.5:
Lloh8:
	adrp	x8, _QLCNIC_LRO_ENABLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QLCNIC_LRO_ENABLED@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_config_hw_lro
	cbnz	x0, LBB0_9
; %bb.6:
Lloh11:
	adrp	x8, _NETIF_F_LRO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NETIF_F_LRO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	b	LBB0_11
LBB0_7:
	ldr	w8, [x20]
Lloh16:
	adrp	x21, _NETIF_F_LRO@GOTPAGE
Lloh17:
	ldr	x21, [x21, _NETIF_F_LRO@GOTPAGEOFF]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.8:
Lloh18:
	adrp	x8, _QLCNIC_LRO_DISABLED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _QLCNIC_LRO_DISABLED@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_qlcnic_config_hw_lro
	cbz	x0, LBB0_13
LBB0_9:
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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
LBB0_12:
	mov	w0, #0
	b	LBB0_11
LBB0_13:
	ldr	w8, [x21]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	bl	_qlcnic_send_lro_cleanup
	ldr	x0, [x19, #8]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh25:
	adrp	x8, _QLCNIC_LRO_WAS_ENABLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _QLCNIC_LRO_WAS_ENABLED@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_14:
	mov	w0, #0
	str	wzr, [x19, #4]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_QLCNIC_ESWITCH_ENABLED,4,2     ; @QLCNIC_ESWITCH_ENABLED
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_QLCNIC_LRO_WAS_ENABLED,4,2     ; @QLCNIC_LRO_WAS_ENABLED
	.comm	_QLCNIC_LRO_ENABLED,4,2         ; @QLCNIC_LRO_ENABLED
	.comm	_EIO,4,2                        ; @EIO
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling LRO as Rx checksum is on\n"

	.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_rx_csum
.subsections_via_symbols
