	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_poll_err_rcqe
_ocrdma_poll_err_rcqe:                  ## @ocrdma_poll_err_rcqe
	.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	%r9d, %r14d
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	20(%rdi), %edi
	callq	_get_ocrdma_dev
	movq	_OCRDMA_MAX_CQE_ERR@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	jle	LBB0_2
## %bb.1:
	movslq	%r14d, %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	callq	_atomic_inc
LBB0_2:
	movq	%rbx, %rdi
	callq	_is_hw_rq_empty
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%rbx, %rdi
	callq	_is_hw_sq_empty
	testl	%eax, %eax
	je	LBB0_4
LBB0_7:
	movq	%rbx, %rdi
	callq	_is_hw_rq_empty
	testq	%rax, %rax
	je	LBB0_11
## %bb.8:
	movl	$0, (%r13)
	movl	$0, (%r12)
	jmp	LBB0_9
LBB0_11:
	movl	$1, (%r13)
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocrdma_update_err_rcqe         ## TAILCALL
LBB0_4:
	cmpl	$0, 16(%rbx)
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_6
## %bb.10:
	movl	$1, (%r13)
	movq	_OCRDMA_CQE_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocrdma_update_err_scqe         ## TAILCALL
LBB0_6:
	movl	$0, (%r13)
	movl	$1, (%r12)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OCRDMA_MAX_CQE_ERR,4,2         ## @OCRDMA_MAX_CQE_ERR
	.comm	_OCRDMA_CQE_WR_FLUSH_ERR,4,2    ## @OCRDMA_CQE_WR_FLUSH_ERR
	.no_dead_strip	_ocrdma_poll_err_rcqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_poll_err_rcqe
_ocrdma_poll_err_rcqe:                  ; @ocrdma_poll_err_rcqe
	.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	x24, x5
	mov	x22, x4
	mov	x19, x3
	mov	x23, x2
	mov	x21, x1
	mov	x20, x0
	ldr	w0, [x0, #20]
	bl	_get_ocrdma_dev
Lloh0:
	adrp	x8, _OCRDMA_MAX_CQE_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_MAX_CQE_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w24
	b.le	LBB0_2
; %bb.1:
	ldr	x8, [x0]
	add	x0, x8, w24, sxtw #2
	bl	_atomic_inc
LBB0_2:
	mov	x0, x20
	bl	_is_hw_rq_empty
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_is_hw_sq_empty
	cbz	w0, LBB0_7
LBB0_4:
	mov	x0, x20
	bl	_is_hw_rq_empty
	cbz	x0, LBB0_6
; %bb.5:
	str	wzr, [x19]
	str	wzr, [x22]
	b	LBB0_11
LBB0_6:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x24
	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	_ocrdma_update_err_rcqe
LBB0_7:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_10
; %bb.8:
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	mov	w8, #1
Lloh3:
	adrp	x9, _OCRDMA_CQE_WR_FLUSH_ERR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OCRDMA_CQE_WR_FLUSH_ERR@GOTPAGEOFF]
	str	w8, [x19]
Lloh5:
	ldr	w3, [x9]
	mov	x0, x23
	mov	x1, x21
	mov	x2, 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	_ocrdma_update_err_scqe
LBB0_10:
	str	wzr, [x19]
	mov	w8, #1
	str	w8, [x22]
LBB0_11:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_MAX_CQE_ERR,4,2         ; @OCRDMA_MAX_CQE_ERR
	.comm	_OCRDMA_CQE_WR_FLUSH_ERR,4,2    ; @OCRDMA_CQE_WR_FLUSH_ERR
	.no_dead_strip	_ocrdma_poll_err_rcqe
.subsections_via_symbols
