	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_process_rcv_ring_diag ## -- Begin function qlcnic_82xx_process_rcv_ring_diag
	.p2align	4, 0x90
_qlcnic_82xx_process_rcv_ring_diag:     ## @qlcnic_82xx_process_rcv_ring_diag
	.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	%rdi, %r14
	movq	24(%rdi), %r12
	movq	(%rdi), %r15
	movq	16(%rdi), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %edi
	callq	_le64_to_cpu
	movl	%eax, %r13d
	movq	_STATUS_OWNER_HOST@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
## %bb.1:
	movl	%r13d, %edi
	callq	_qlcnic_get_sts_desc_cnt
	movl	%eax, %ebx
	movl	%r13d, %edi
	callq	_qlcnic_get_sts_opcode
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_qlcnic_handle_fw_message
	testl	%ebx, %ebx
	jg	LBB0_5
	jmp	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r13d, %edi
	callq	_qlcnic_get_sts_type
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_qlcnic_process_rcv_diag
	testl	%ebx, %ebx
	jle	LBB0_7
LBB0_5:
	incl	%ebx
	movq	_STATUS_OWNER_PHANTOM@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %r13
	movl	(%r12), %edi
	callq	_cpu_to_le64
	movq	(%r13,%r15,8), %rcx
	movl	%eax, (%rcx)
	movl	12(%r14), %esi
	movq	%r15, %rdi
	callq	_get_next_index
	movq	%rax, %r15
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_6
LBB0_7:
	movq	%r15, (%r14)
	movl	8(%r14), %esi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_OWNER_HOST,4,2          ## @STATUS_OWNER_HOST
	.comm	_STATUS_OWNER_PHANTOM,4,2       ## @STATUS_OWNER_PHANTOM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_82xx_process_rcv_ring_diag ; -- Begin function qlcnic_82xx_process_rcv_ring_diag
	.p2align	2
_qlcnic_82xx_process_rcv_ring_diag:     ; @qlcnic_82xx_process_rcv_ring_diag
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x20, [x0]
	ldp	x8, x21, [x0, #16]
	ldr	x8, [x8, x20, lsl #3]
	ldr	w0, [x8]
	bl	_le64_to_cpu
Lloh0:
	adrp	x8, _STATUS_OWNER_HOST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STATUS_OWNER_HOST@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x23, x0
	bl	_qlcnic_get_sts_desc_cnt
	mov	x22, x0
	mov	x0, x23
	bl	_qlcnic_get_sts_opcode
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_qlcnic_handle_fw_message
	cmp	w22, #1
	b.ge	LBB0_5
	b	LBB0_7
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	mov	x0, x23
	bl	_qlcnic_get_sts_type
	mov	x1, x0
	mov	x0, x21
	mov	x2, x23
	bl	_qlcnic_process_rcv_diag
	cmp	w22, #1
	b.lt	LBB0_7
LBB0_5:
	add	w21, w22, #1
Lloh3:
	adrp	x22, _STATUS_OWNER_PHANTOM@GOTPAGE
Lloh4:
	ldr	x22, [x22, _STATUS_OWNER_PHANTOM@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #16]
	ldr	w0, [x22]
	bl	_cpu_to_le64
	ldr	x8, [x23, x20, lsl #3]
	str	w0, [x8]
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_get_next_index
	mov	x20, x0
	sub	w21, w21, #1
	cmp	w21, #1
	b.hi	LBB0_6
LBB0_7:
	str	x20, [x19]
	ldr	w1, [x19, #8]
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_OWNER_HOST,4,2          ; @STATUS_OWNER_HOST
	.comm	_STATUS_OWNER_PHANTOM,4,2       ; @STATUS_OWNER_PHANTOM
.subsections_via_symbols
