	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_arm_cq                    ## -- Begin function qedr_arm_cq
	.p2align	4, 0x90
_qedr_arm_cq:                           ## @qedr_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, %r15d
	movq	%rdi, %rbx
	callq	_get_qedr_cq
	movq	%rax, %r12
	movq	%rax, %r14
	movl	(%rbx), %edi
	callq	_get_qedr_dev
	cmpq	$0, 32(%r12)
	je	LBB0_2
## %bb.1:
	movl	24(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	movq	%r14, %rdx
	callq	_DP_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_2:
	movq	(%r14), %rcx
	movq	_QEDR_CQ_TYPE_GSI@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_9
## %bb.3:
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movl	$0, 12(%r14)
	movq	_IB_CQ_SOLICITED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_DQ_UCM_ROCE_CQ_ARM_SE_CF_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 12(%r14)
	jmp	LBB0_6
LBB0_4:
	xorl	%edx, %edx
LBB0_6:
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.7:
	movq	_DQ_UCM_ROCE_CQ_ARM_CF_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, 12(%r14)
LBB0_8:
	movq	16(%r14), %rsi
	decq	%rsi
	movq	%r14, %rdi
	callq	_doorbell_cq
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"warning: arm was invoked after destroy for cq %p (icid=%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QEDR_CQ_TYPE_GSI,8,3           ## @QEDR_CQ_TYPE_GSI
	.comm	_IB_CQ_SOLICITED,4,2            ## @IB_CQ_SOLICITED
	.comm	_DQ_UCM_ROCE_CQ_ARM_SE_CF_CMD,4,2 ## @DQ_UCM_ROCE_CQ_ARM_SE_CF_CMD
	.comm	_IB_CQ_NEXT_COMP,4,2            ## @IB_CQ_NEXT_COMP
	.comm	_DQ_UCM_ROCE_CQ_ARM_CF_CMD,4,2  ## @DQ_UCM_ROCE_CQ_ARM_CF_CMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qedr_arm_cq                    ; -- Begin function qedr_arm_cq
	.p2align	2
_qedr_arm_cq:                           ; @qedr_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	x20, x1
	mov	x21, x0
	bl	_get_qedr_cq
	mov	x19, x0
	ldr	w0, [x21]
	bl	_get_qedr_dev
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w3, [x19, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_DP_ERR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_2:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _QEDR_CQ_TYPE_GSI@GOTPAGE
Lloh6:
	ldr	x9, [x9, _QEDR_CQ_TYPE_GSI@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.3:
	add	x21, x19, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	str	wzr, [x19, #12]
Lloh8:
	adrp	x8, _IB_CQ_SOLICITED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IB_CQ_SOLICITED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _DQ_UCM_ROCE_CQ_ARM_SE_CF_CMD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DQ_UCM_ROCE_CQ_ARM_SE_CF_CMD@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	str	w2, [x19, #12]
	b	LBB0_6
LBB0_5:
	mov	w2, #0
LBB0_6:
Lloh14:
	adrp	x8, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh17:
	adrp	x8, _DQ_UCM_ROCE_CQ_ARM_CF_CMD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DQ_UCM_ROCE_CQ_ARM_CF_CMD@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	orr	w2, w2, w8
	str	w2, [x19, #12]
LBB0_8:
	ldr	x8, [x19, #16]
	sub	x1, x8, #1
	mov	x0, x19
	bl	_doorbell_cq
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	w0, #0
LBB0_10:
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"warning: arm was invoked after destroy for cq %p (icid=%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QEDR_CQ_TYPE_GSI,8,3           ; @QEDR_CQ_TYPE_GSI
	.comm	_IB_CQ_SOLICITED,4,2            ; @IB_CQ_SOLICITED
	.comm	_DQ_UCM_ROCE_CQ_ARM_SE_CF_CMD,4,2 ; @DQ_UCM_ROCE_CQ_ARM_SE_CF_CMD
	.comm	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
	.comm	_DQ_UCM_ROCE_CQ_ARM_CF_CMD,4,2  ; @DQ_UCM_ROCE_CQ_ARM_CF_CMD
.subsections_via_symbols
