	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_arm_cq                  ## -- Begin function ocrdma_arm_cq
	.p2align	4, 0x90
_ocrdma_arm_cq:                         ## @ocrdma_arm_cq
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_get_ocrdma_cq
	movq	%rax, %r14
	movl	(%r15), %edi
	callq	_get_ocrdma_dev
	movq	%rax, %r15
	movl	4(%r14), %r12d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ebx, %eax
	movq	_IB_CQ_SOLICITED@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	setne	%cl
	xorl	%edx, %edx
	orl	%eax, %ebx
	setne	%dl
	andb	%dl, %cl
	movzbl	%cl, %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%r8d, %r8d
	callq	_ocrdma_ring_cq_db
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_CQ_NEXT_COMP,4,2            ## @IB_CQ_NEXT_COMP
	.comm	_IB_CQ_SOLICITED,4,2            ## @IB_CQ_SOLICITED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocrdma_arm_cq                  ; -- Begin function ocrdma_arm_cq
	.p2align	2
_ocrdma_arm_cq:                         ; @ocrdma_arm_cq
	.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
	bl	_get_ocrdma_cq
	mov	x21, x0
	ldr	w0, [x20]
	bl	_get_ocrdma_dev
	mov	x20, x0
	ldr	w22, [x21, #4]
	mov	x0, x21
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w19
Lloh3:
	adrp	x9, _IB_CQ_SOLICITED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IB_CQ_SOLICITED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ands	w9, w9, w19
	orr	w8, w8, w9
	cset	w9, ne
	cmp	w8, #0
	cset	w2, ne
	and	w3, w2, w9
	mov	x0, x20
	mov	x1, x22
	mov	w4, #0
	bl	_ocrdma_ring_cq_db
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
	.comm	_IB_CQ_SOLICITED,4,2            ; @IB_CQ_SOLICITED
.subsections_via_symbols
