	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_poll_err_scqe
_ocrdma_poll_err_scqe:                  ## @ocrdma_poll_err_scqe
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	(%rsi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	_OCRDMA_CQE_STATUS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	_OCRDMA_CQE_STATUS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r13d
	movq	%rbx, %rdi
	callq	_is_hw_sq_empty
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_is_hw_rq_empty
	testl	%eax, %eax
	je	LBB0_2
LBB0_5:
	movl	$1, (%r12)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocrdma_update_err_scqe         ## TAILCALL
LBB0_2:
	cmpl	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_4
## %bb.6:
	movl	$1, (%r12)
	movq	_OCRDMA_CQE_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ocrdma_update_err_rcqe         ## TAILCALL
LBB0_4:
	movl	$0, (%r12)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	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_CQE_STATUS_MASK,4,2     ## @OCRDMA_CQE_STATUS_MASK
	.comm	_OCRDMA_CQE_STATUS_SHIFT,4,2    ## @OCRDMA_CQE_STATUS_SHIFT
	.comm	_OCRDMA_CQE_WR_FLUSH_ERR,4,2    ## @OCRDMA_CQE_WR_FLUSH_ERR
	.no_dead_strip	_ocrdma_poll_err_scqe
.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_scqe
_ocrdma_poll_err_scqe:                  ; @ocrdma_poll_err_scqe
	.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
	mov	x23, x4
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x1]
	bl	_le32_to_cpu
	mov	x24, x0
Lloh0:
	adrp	x8, _OCRDMA_CQE_STATUS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OCRDMA_CQE_STATUS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w26, [x8]
Lloh3:
	adrp	x8, _OCRDMA_CQE_STATUS_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OCRDMA_CQE_STATUS_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x0, x19
	bl	_is_hw_sq_empty
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_is_hw_rq_empty
	cbz	w0, LBB0_3
LBB0_2:
	and	w8, w26, w24
	asr	w3, w8, w25
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x22
	mov	x1, x20
	mov	x2, 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
	b	_ocrdma_update_err_scqe
LBB0_3:
	ldr	w8, [x19, #16]
	cbnz	w8, LBB0_6
; %bb.4:
	ldp	x8, x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w8, #1
Lloh6:
	adrp	x9, _OCRDMA_CQE_WR_FLUSH_ERR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OCRDMA_CQE_WR_FLUSH_ERR@GOTPAGEOFF]
	str	w8, [x21]
Lloh8:
	ldr	w3, [x9]
	mov	x0, x22
	mov	x1, x20
	mov	x2, 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
	b	_ocrdma_update_err_rcqe
LBB0_6:
	str	wzr, [x21]
	mov	w8, #1
	str	w8, [x23]
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CQE_STATUS_MASK,4,2     ; @OCRDMA_CQE_STATUS_MASK
	.comm	_OCRDMA_CQE_STATUS_SHIFT,4,2    ; @OCRDMA_CQE_STATUS_SHIFT
	.comm	_OCRDMA_CQE_WR_FLUSH_ERR,4,2    ; @OCRDMA_CQE_WR_FLUSH_ERR
	.no_dead_strip	_ocrdma_poll_err_scqe
.subsections_via_symbols
