	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_set_features            ## -- Begin function qlcnic_set_features
	.p2align	4, 0x90
_qlcnic_set_features:                   ## @qlcnic_set_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, %ebx
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movl	(%r12), %eax
	movl	%eax, %edx
	xorl	%ebx, %edx
	movq	_NETIF_F_LRO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ecx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_QLCNIC_LRO_ENABLED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
LBB0_2:
	xorl	%r15d, %r15d
	testl	%ecx, %edx
	je	LBB0_8
## %bb.3:
	xorl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_qlcnic_config_hw_lro
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_8
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_5
LBB0_8:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_qlcnic_82xx_check
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%r14, %rdi
	callq	_qlcnic_send_lro_cleanup
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_LRO,4,2                ## @NETIF_F_LRO
	.comm	_QLCNIC_LRO_ENABLED,4,2         ## @QLCNIC_LRO_ENABLED
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_set_features            ; -- Begin function qlcnic_set_features
	.p2align	2
_qlcnic_set_features:                   ; @qlcnic_set_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	x21, x1
	mov	x20, x0
	bl	_netdev_priv
	ldr	w8, [x20]
	eor	w10, w8, w21
Lloh0:
	adrp	x9, _NETIF_F_LRO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_LRO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x11, _QLCNIC_LRO_ENABLED@GOTPAGE
Lloh4:
	ldr	x11, [x11, _QLCNIC_LRO_ENABLED@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w9, w21
	csel	w21, wzr, w11, eq
	tst	w10, w9
	b.eq	LBB0_4
; %bb.1:
	mov	x19, x0
	eor	w8, w9, w8
	str	w8, [x20]
	mov	x1, x21
	bl	_qlcnic_config_hw_lro
	cbz	x0, LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_3:
	cbz	w21, LBB0_6
LBB0_4:
	mov	w0, #0
LBB0_5:
	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_6:
	mov	x0, x19
	bl	_qlcnic_82xx_check
	cbz	x0, LBB0_5
; %bb.7:
	mov	x0, x19
	bl	_qlcnic_send_lro_cleanup
	cbnz	x0, LBB0_2
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_LRO,4,2                ; @NETIF_F_LRO
	.comm	_QLCNIC_LRO_ENABLED,4,2         ; @QLCNIC_LRO_ENABLED
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
