	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_config_hw_lro      ## -- Begin function qlcnic_82xx_config_hw_lro
	.p2align	4, 0x90
_qlcnic_82xx_config_hw_lro:             ## @qlcnic_82xx_config_hw_lro
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___QLCNIC_FW_ATTACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	24(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-56(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_QLCNIC_HOST_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shll	$23, %edi
	callq	_cpu_to_le64
	movq	%rax, -40(%rbp)
	movq	_QLCNIC_H2C_OPCODE_CONFIG_HW_LRO@GOTPCREL(%rip), %rax
	movl	16(%r12), %edi
	shll	$16, %edi
	orl	(%rax), %edi
	callq	_cpu_to_le64
	movq	%rax, -48(%rbp)
	movl	$0, %edi
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.3:
	movq	_QLCNIC_ENABLE_IPV4_LRO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	_QLCNIC_FW_CAP2_HW_LRO_IPV6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_QLCNIC_ENABLE_IPV6_LRO@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
LBB0_5:
	callq	_cpu_to_le64
	movq	-56(%rbp), %rcx
	movq	%rax, (%rcx)
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_qlcnic_send_cmd_descs
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movl	%ebx, %r14d
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___QLCNIC_FW_ATTACHED,4,2       ## @__QLCNIC_FW_ATTACHED
	.comm	_QLCNIC_HOST_REQUEST,4,2        ## @QLCNIC_HOST_REQUEST
	.comm	_QLCNIC_H2C_OPCODE_CONFIG_HW_LRO,4,2 ## @QLCNIC_H2C_OPCODE_CONFIG_HW_LRO
	.comm	_QLCNIC_ENABLE_IPV4_LRO,4,2     ## @QLCNIC_ENABLE_IPV4_LRO
	.comm	_QLCNIC_FW_CAP2_HW_LRO_IPV6,4,2 ## @QLCNIC_FW_CAP2_HW_LRO_IPV6
	.comm	_QLCNIC_ENABLE_IPV6_LRO,4,2     ## @QLCNIC_ENABLE_IPV6_LRO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not send configure hw lro request\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_config_hw_lro      ; -- Begin function qlcnic_82xx_config_hw_lro
	.p2align	2
_qlcnic_82xx_config_hw_lro:             ; @qlcnic_82xx_config_hw_lro
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___QLCNIC_FW_ATTACHED@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___QLCNIC_FW_ATTACHED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #24
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.1:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh3:
	adrp	x8, _QLCNIC_HOST_REQUEST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _QLCNIC_HOST_REQUEST@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	w0, w8, #23
	bl	_cpu_to_le64
	str	x0, [sp, #24]
Lloh6:
	adrp	x8, _QLCNIC_H2C_OPCODE_CONFIG_HW_LRO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QLCNIC_H2C_OPCODE_CONFIG_HW_LRO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w0, w8, w9, lsl #16
	bl	_cpu_to_le64
	str	x0, [sp, #16]
	cbz	w20, LBB0_5
; %bb.2:
Lloh9:
	adrp	x8, _QLCNIC_ENABLE_IPV4_LRO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _QLCNIC_ENABLE_IPV4_LRO@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _QLCNIC_FW_CAP2_HW_LRO_IPV6@GOTPAGE
Lloh13:
	ldr	x9, [x9, _QLCNIC_FW_CAP2_HW_LRO_IPV6@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
Lloh15:
	adrp	x8, _QLCNIC_ENABLE_IPV6_LRO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QLCNIC_ENABLE_IPV6_LRO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w0
	b	LBB0_6
LBB0_4:
	mov	w20, #0
	b	LBB0_8
LBB0_5:
	mov	w0, #0
LBB0_6:
	bl	_cpu_to_le64
	ldr	x8, [sp, #8]
	str	x0, [x8]
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_qlcnic_send_cmd_descs
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	___QLCNIC_FW_ATTACHED,4,2       ; @__QLCNIC_FW_ATTACHED
	.comm	_QLCNIC_HOST_REQUEST,4,2        ; @QLCNIC_HOST_REQUEST
	.comm	_QLCNIC_H2C_OPCODE_CONFIG_HW_LRO,4,2 ; @QLCNIC_H2C_OPCODE_CONFIG_HW_LRO
	.comm	_QLCNIC_ENABLE_IPV4_LRO,4,2     ; @QLCNIC_ENABLE_IPV4_LRO
	.comm	_QLCNIC_FW_CAP2_HW_LRO_IPV6,4,2 ; @QLCNIC_FW_CAP2_HW_LRO_IPV6
	.comm	_QLCNIC_ENABLE_IPV6_LRO,4,2     ; @QLCNIC_ENABLE_IPV6_LRO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not send configure hw lro request\n"

.subsections_via_symbols
