	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qlcnic_set_flags
_qlcnic_set_flags:                      ## @qlcnic_set_flags
	.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
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_ETH_FLAG_LRO@GOTPCREL(%rip), %rdx
	movl	(%r13), %eax
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ebx, (%rdx)
	je	LBB0_6
## %bb.1:
	xorl	%r15d, %r15d
	testl	%eax, %ecx
	jne	LBB0_16
## %bb.2:
	movq	16(%r14), %rdx
	movq	_QLCNIC_FW_CAPABILITY_HW_LRO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	je	LBB0_14
## %bb.3:
	cmpl	$0, 8(%r14)
	je	LBB0_13
## %bb.4:
	movq	_QLCNIC_LRO_ENABLED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r12d
	orl	%eax, %ecx
	movl	%ecx, (%r13)
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_qlcnic_config_hw_lro
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	testl	%r12d, %r12d
	jne	LBB0_16
	jmp	LBB0_8
LBB0_6:
	testl	%eax, %ecx
	je	LBB0_11
## %bb.7:
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r13)
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_qlcnic_config_hw_lro
	testq	%rax, %rax
	jne	LBB0_10
LBB0_8:
	movq	%r14, %rdi
	callq	_qlcnic_82xx_check
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	movq	%r14, %rdi
	callq	_qlcnic_send_lro_cleanup
	testq	%rax, %rax
	je	LBB0_16
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_11:
	xorl	%r15d, %r15d
	jmp	LBB0_16
LBB0_13:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_14:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_15:
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_FLAG_LRO,4,2               ## @ETH_FLAG_LRO
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_QLCNIC_FW_CAPABILITY_HW_LRO,4,2 ## @QLCNIC_FW_CAPABILITY_HW_LRO
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx csum is off, cannot toggle lro\n"

	.comm	_QLCNIC_LRO_ENABLED,4,2         ## @QLCNIC_LRO_ENABLED
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_qlcnic_set_flags
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qlcnic_set_flags
_qlcnic_set_flags:                      ; @qlcnic_set_flags
	.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
Lloh0:
	adrp	x8, _ETH_FLAG_LRO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_FLAG_LRO@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w10, w9, w8
	tst	w11, w21
	b.eq	LBB0_6
; %bb.1:
	cbnz	w10, LBB0_11
; %bb.2:
	ldr	x10, [x19, #16]
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _QLCNIC_FW_CAPABILITY_HW_LRO@GOTPAGE
Lloh7:
	ldr	x11, [x11, _QLCNIC_FW_CAPABILITY_HW_LRO@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	tst	w11, w10
	b.eq	LBB0_13
; %bb.3:
	ldr	w10, [x19, #8]
	cbz	w10, LBB0_12
; %bb.4:
Lloh9:
	adrp	x10, _QLCNIC_LRO_ENABLED@GOTPAGE
Lloh10:
	ldr	x10, [x10, _QLCNIC_LRO_ENABLED@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x10]
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_qlcnic_config_hw_lro
	cbnz	x0, LBB0_10
; %bb.5:
	cbnz	w21, LBB0_11
	b	LBB0_8
LBB0_6:
	cbz	w10, LBB0_11
; %bb.7:
	bic	w8, w8, w9
	str	w8, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_qlcnic_config_hw_lro
	cbnz	x0, LBB0_10
LBB0_8:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_15
; %bb.9:
	mov	x0, x19
	bl	_qlcnic_send_lro_cleanup
	cbz	x0, LBB0_15
LBB0_10:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	w0, #0
	b	LBB0_15
LBB0_12:
	ldr	x0, [x19]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_13:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_FLAG_LRO,4,2               ; @ETH_FLAG_LRO
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_QLCNIC_FW_CAPABILITY_HW_LRO,4,2 ; @QLCNIC_FW_CAPABILITY_HW_LRO
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx csum is off, cannot toggle lro\n"

	.comm	_QLCNIC_LRO_ENABLED,4,2         ; @QLCNIC_LRO_ENABLED
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_qlcnic_set_flags
.subsections_via_symbols
