	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_add_err_cqe
_ocrdma_add_err_cqe:                    ## @ocrdma_add_err_cqe
	.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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rcx, %rbx
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r13
	leaq	24(%rdx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_is_hw_sq_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_is_hw_rq_empty
	testq	%rax, %rax
	jne	LBB0_13
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_is_hw_sq_empty
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, 32(%r12)
	je	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_is_hw_rq_empty
	testq	%rax, %rax
	jne	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, 16(%r12)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	(%rcx,%rax,4), %eax
	movl	%eax, 16(%rbx)
	movq	%r12, %rdi
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_ocrdma_hwq_inc_tail
	movq	$0, 8(%rbx)
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$24, %rbx
	incl	%r14d
	cmpl	%r14d, %r15d
	jne	LBB0_3
	jmp	LBB0_12
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rdx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_ocrdma_update_wc
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_13
LBB0_12:
	movl	%r15d, %r14d
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ## @IB_WC_WR_FLUSH_ERR
	.no_dead_strip	_ocrdma_add_err_cqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_add_err_cqe
_ocrdma_add_err_cqe:                    ; @ocrdma_add_err_cqe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	w1, LBB0_11
; %bb.1:
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x23, x0
	mov	w19, #0
	add	x24, x2, #24
Lloh0:
	adrp	x25, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_is_hw_sq_empty
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_is_hw_rq_empty
	cbnz	x0, LBB0_13
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_is_hw_sq_empty
	cbnz	x0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #32]
	cmp	x8, x23
	b.eq	LBB0_10
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_is_hw_rq_empty
	cbnz	x0, LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22, #16]
	cmp	x8, x23
	b.ne	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x9, x8, [x22]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x20, #16]
	mov	x0, x22
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_ocrdma_hwq_inc_tail
	str	xzr, [x20, #8]
	ldr	w8, [x25]
	str	w8, [x20], #24
	add	w19, w19, #1
	cmp	w21, w19
	b.ne	LBB0_2
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x22, #24]
	mov	x0, x22
	mov	x1, x20
	bl	_ocrdma_update_wc
	mov	x0, x24
	b	LBB0_9
LBB0_11:
	mov	w19, #0
	b	LBB0_13
LBB0_12:
	mov	x19, x21
LBB0_13:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WC_WR_FLUSH_ERR,4,2         ; @IB_WC_WR_FLUSH_ERR
	.no_dead_strip	_ocrdma_add_err_cqe
.subsections_via_symbols
