	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qlcnic_83xx_process_rcv_ring_diag ## -- Begin function qlcnic_83xx_process_rcv_ring_diag
	.p2align	4, 0x90
_qlcnic_83xx_process_rcv_ring_diag:     ## @qlcnic_83xx_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	24(%rdi), %r15
	movq	(%rdi), %r14
	movq	16(%rdi), %rbx
	movq	(%rbx,%r14,8), %rax
	movl	(%rax), %edi
	callq	_le64_to_cpu
	movl	%eax, %r12d
	movl	%eax, -56(%rbp)
	movq	(%rbx,%r14,8), %rax
	movl	4(%rax), %edi
	callq	_le64_to_cpu
	movl	%eax, -52(%rbp)
	movl	%eax, %edi
	callq	_qlcnic_83xx_opcode
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_QLCNIC_FETCH_RING_ID
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_qlcnic_83xx_process_rcv_diag
	movq	16(%r13), %rbx
	movq	_STATUS_OWNER_PHANTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le64
	movq	(%rbx,%r14,8), %rcx
	movl	%eax, (%rcx)
	movl	12(%r13), %esi
	movq	%r14, %rdi
	callq	_get_next_index
	movq	%rax, (%r13)
	movl	8(%r13), %esi
	movq	%rax, %rdi
	callq	_writel
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.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_83xx_process_rcv_ring_diag ; -- Begin function qlcnic_83xx_process_rcv_ring_diag
	.p2align	2
_qlcnic_83xx_process_rcv_ring_diag:     ; @qlcnic_83xx_process_rcv_ring_diag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x20, [x0]
	ldp	x23, x21, [x0, #16]
	lsl	x24, x20, #3
	ldr	x8, [x23, x24]
	ldr	w0, [x8]
	bl	_le64_to_cpu
	mov	x22, x0
	str	w0, [sp]
	ldr	x8, [x23, x24]
	ldr	w0, [x8, #4]
	bl	_le64_to_cpu
	str	w0, [sp, #4]
	bl	_qlcnic_83xx_opcode
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_QLCNIC_FETCH_RING_ID
	mov	x1, x0
	mov	x2, sp
	mov	x0, x21
	bl	_qlcnic_83xx_process_rcv_diag
	ldr	x21, [x19, #16]
Lloh3:
	adrp	x8, _STATUS_OWNER_PHANTOM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_OWNER_PHANTOM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le64
	ldr	x8, [x21, x20, lsl #3]
	str	w0, [x8]
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_get_next_index
	str	x0, [x19]
	ldr	w1, [x19, #8]
	bl	_writel
LBB0_2:
	ldr	x8, [sp, #8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_OWNER_PHANTOM,4,2       ; @STATUS_OWNER_PHANTOM
.subsections_via_symbols
