	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ocrdma_set_cqe_status_flushed
_ocrdma_set_cqe_status_flushed:         ## @ocrdma_set_cqe_status_flushed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_is_cqe_for_sq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	callq	_le32_to_cpu
	movq	_OCRDMA_CQE_STATUS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	jmp	LBB0_6
LBB0_2:
	movq	(%rbx), %rbx
	movq	_IB_QPT_UD@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_IB_QPT_GSI@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	(%r14), %rdi
	callq	_le32_to_cpu
	cmpq	%r12, %rbx
	je	LBB0_4
## %bb.3:
	cmpq	%r15, %rbx
	je	LBB0_4
## %bb.5:
	movq	_OCRDMA_CQE_STATUS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edi
LBB0_6:
	callq	_cpu_to_le32
	movq	%rax, %rdi
	movq	%rax, (%r14)
	movq	_OCRDMA_CQE_STATUS_SHIFT@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_4:
	movq	_OCRDMA_CQE_UD_STATUS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, %rdi
	movq	%rax, (%r14)
	movq	_OCRDMA_CQE_UD_STATUS_SHIFT@GOTPCREL(%rip), %rbx
LBB0_7:
	callq	_le32_to_cpu
	movq	_OCRDMA_CQE_WR_FLUSH_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movb	(%rbx), %cl
	shll	%cl, %edi
	orl	%eax, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r12
	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_WR_FLUSH_ERR,4,2    ## @OCRDMA_CQE_WR_FLUSH_ERR
	.comm	_OCRDMA_CQE_STATUS_SHIFT,4,2    ## @OCRDMA_CQE_STATUS_SHIFT
	.comm	_IB_QPT_UD,8,3                  ## @IB_QPT_UD
	.comm	_IB_QPT_GSI,8,3                 ## @IB_QPT_GSI
	.comm	_OCRDMA_CQE_UD_STATUS_MASK,4,2  ## @OCRDMA_CQE_UD_STATUS_MASK
	.comm	_OCRDMA_CQE_UD_STATUS_SHIFT,4,2 ## @OCRDMA_CQE_UD_STATUS_SHIFT
	.no_dead_strip	_ocrdma_set_cqe_status_flushed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ocrdma_set_cqe_status_flushed
_ocrdma_set_cqe_status_flushed:         ; @ocrdma_set_cqe_status_flushed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	mov	x0, x1
	bl	_is_cqe_for_sq
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x19]
	bl	_le32_to_cpu
	b	LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _IB_QPT_UD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPT_UD@GOTPAGEOFF]
	ldr	x20, [x20]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _IB_QPT_GSI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QPT_GSI@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	ldr	x0, [x19]
	bl	_le32_to_cpu
	cmp	x20, x21
	ccmp	x20, x22, #4, ne
	b.ne	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _OCRDMA_CQE_UD_STATUS_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OCRDMA_CQE_UD_STATUS_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w0, w0, w8
	bl	_cpu_to_le32
	str	x0, [x19]
Lloh9:
	adrp	x20, _OCRDMA_CQE_UD_STATUS_SHIFT@GOTPAGE
Lloh10:
	ldr	x20, [x20, _OCRDMA_CQE_UD_STATUS_SHIFT@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _OCRDMA_CQE_STATUS_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _OCRDMA_CQE_STATUS_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	bic	w0, w0, w8
	bl	_cpu_to_le32
	str	x0, [x19]
Lloh14:
	adrp	x20, _OCRDMA_CQE_STATUS_SHIFT@GOTPAGE
Lloh15:
	ldr	x20, [x20, _OCRDMA_CQE_STATUS_SHIFT@GOTPAGEOFF]
LBB0_5:
	bl	_le32_to_cpu
Lloh16:
	adrp	x8, _OCRDMA_CQE_WR_FLUSH_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _OCRDMA_CQE_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x20]
	lsl	w8, w8, w9
	orr	w0, w8, w0
	bl	_cpu_to_le32
	str	x0, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_OCRDMA_CQE_STATUS_MASK,4,2     ; @OCRDMA_CQE_STATUS_MASK
	.comm	_OCRDMA_CQE_WR_FLUSH_ERR,4,2    ; @OCRDMA_CQE_WR_FLUSH_ERR
	.comm	_OCRDMA_CQE_STATUS_SHIFT,4,2    ; @OCRDMA_CQE_STATUS_SHIFT
	.comm	_IB_QPT_UD,8,3                  ; @IB_QPT_UD
	.comm	_IB_QPT_GSI,8,3                 ; @IB_QPT_GSI
	.comm	_OCRDMA_CQE_UD_STATUS_MASK,4,2  ; @OCRDMA_CQE_UD_STATUS_MASK
	.comm	_OCRDMA_CQE_UD_STATUS_SHIFT,4,2 ; @OCRDMA_CQE_UD_STATUS_SHIFT
	.no_dead_strip	_ocrdma_set_cqe_status_flushed
.subsections_via_symbols
