	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_cq_enter                   ## -- Begin function rvt_cq_enter
	.p2align	4, 0x90
_rvt_cq_enter:                          ## @rvt_cq_enter
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r15
	addq	$16, %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	cmpq	$0, 80(%r15)
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_2
## %bb.1:
	movq	72(%r15), %rbx
	movq	8(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_RDMA_READ_UAPI_ATOMIC
	movl	%eax, %r14d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	callq	_RDMA_READ_UAPI_ATOMIC
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_2:
	movq	64(%r15), %rcx
	movq	8(%rcx), %rbx
	movl	(%rcx), %r14d
	movq	%rcx, %rax
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rcx), %eax
	xorl	%ecx, %ecx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	xorl	%ecx, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_3:
	movl	32(%r15), %r12d
	leal	1(%r14), %ecx
	xorl	%r13d, %r13d
	cmpl	%r12d, %r14d
	cmovbl	%r14d, %r12d
	cmovbl	%ecx, %r13d
	movl	$1, %edi
	cmpl	%eax, %r13d
	je	LBB0_5
## %bb.4:
	xorl	%edi, %edi
	cmpl	$0, (%r15)
	setne	%dil
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	cmpl	$0, (%r15)
	jne	LBB0_8
## %bb.7:
	movq	56(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_rvt_pr_err_ratelimited
LBB0_8:
	movl	$1, (%r15)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	40(%r15), %rcx
	xorl	%r14d, %r14d
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.9:
	leaq	32(%r15), %rax
	movl	48(%r15), %edx
	movl	%edx, -96(%rbp)
	movq	%rax, -104(%rbp)
	movq	_IB_EVENT_CQ_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movl	36(%r15), %esi
	leaq	-112(%rbp), %rdi
	callq	*%rcx
	jmp	LBB0_19
LBB0_10:
	movq	%r15, %rdi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_trace_rvt_cq_enter
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movl	64(%r14), %eax
	movl	%r12d, %ebx
	shlq	$6, %rbx
	movl	%eax, 56(%rcx,%rbx)
	movq	(%r14), %rax
	movq	%rax, (%rcx,%rbx)
	movups	48(%r14), %xmm0
	movups	%xmm0, 40(%rcx,%rbx)
	movq	40(%r14), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rcx,%rbx)
	movl	32(%r14), %eax
	movl	%eax, 32(%rcx,%rbx)
	movl	28(%r14), %eax
	movl	%eax, 28(%rcx,%rbx)
	movl	24(%r14), %eax
	movl	%eax, 24(%rcx,%rbx)
	movl	20(%r14), %edi
	movq	%rcx, %r12
	callq	_ib_lid_cpu16
	movl	%eax, 20(%r12,%rbx)
	movl	16(%r14), %eax
	movl	%eax, 16(%r12,%rbx)
	movl	12(%r14), %eax
	movl	%eax, 12(%r12,%rbx)
	movl	8(%r14), %eax
	movl	%eax, 8(%r12,%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_RDMA_WRITE_UAPI_ATOMIC
	jmp	LBB0_13
LBB0_12:
	movl	%r12d, %eax
	leaq	(%rax,%rax,8), %rax
	movq	64(%r14), %rcx
	movq	%rcx, 64(%rbx,%rax,8)
	movups	(%r14), %xmm0
	movups	16(%r14), %xmm1
	movups	32(%r14), %xmm2
	movups	48(%r14), %xmm3
	movups	%xmm3, 48(%rbx,%rax,8)
	movups	%xmm2, 32(%rbx,%rax,8)
	movups	%xmm1, 16(%rbx,%rax,8)
	movups	%xmm0, (%rbx,%rax,8)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r13d, (%rax)
LBB0_13:
	movq	8(%r15), %rax
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.14:
	movq	_IB_CQ_SOLICITED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.15:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.16:
	movq	(%r14), %rax
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
LBB0_17:
	movq	_RVT_CQ_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r15)
	incl	28(%r15)
	movl	24(%r15), %edi
	movq	_comp_vector_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addq	$20, %r15
	movq	%r15, %rdx
	callq	_queue_work_on
LBB0_18:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movl	$1, %r14d
LBB0_19:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQ is full!\n"

	.comm	_IB_EVENT_CQ_ERR,4,2            ## @IB_EVENT_CQ_ERR
	.comm	_IB_CQ_NEXT_COMP,8,3            ## @IB_CQ_NEXT_COMP
	.comm	_IB_CQ_SOLICITED,8,3            ## @IB_CQ_SOLICITED
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_RVT_CQ_NONE,8,3                ## @RVT_CQ_NONE
	.comm	_comp_vector_wq,4,2             ## @comp_vector_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_cq_enter                   ; -- Begin function rvt_cq_enter
	.p2align	2
_rvt_cq_enter:                          ; @rvt_cq_enter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w2, [sp, #4]                    ; 4-byte Folded Spill
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x25, [x19, #72]
	ldr	x26, [x25, #8]
	ldr	w0, [x25]
	bl	_RDMA_READ_UAPI_ATOMIC
	mov	x23, x0
	ldr	w0, [x25, #4]
	bl	_RDMA_READ_UAPI_ATOMIC
	mov	x28, #0
	mov	x27, #0
	b	LBB0_3
LBB0_2:
	mov	x26, #0
	mov	x25, #0
	ldr	x27, [x19, #64]
	ldr	x28, [x27, #8]
	ldp	w23, w0, [x27]
LBB0_3:
	mov	x22, x19
	ldr	w8, [x22, #32]!
	cmp	w23, w8
	csel	w24, w23, w8, lo
	csinc	w23, wzr, w23, hs
	cmp	w23, w0
	b.ne	LBB0_9
; %bb.4:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_5:
	ldr	w8, [x19]
	cbnz	w8, LBB0_7
; %bb.6:
	ldr	x0, [x19, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_rvt_pr_err_ratelimited
LBB0_7:
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_12
; %bb.8:
	ldr	w9, [x19, #48]
	str	w9, [sp, #24]
	str	x22, [sp, #16]
Lloh2:
	adrp	x9, _IB_EVENT_CQ_ERR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_EVENT_CQ_ERR@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	ldr	w1, [x19, #36]
	add	x0, sp, #8
	blr	x8
	mov	w0, #0
	b	LBB0_20
LBB0_9:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_5
LBB0_10:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x24
	bl	_trace_rvt_cq_enter
	cbz	x26, LBB0_13
; %bb.11:
	ldr	w8, [x21, #64]
	add	x22, x26, x24, lsl #6
	str	w8, [x22, #56]
	ldr	x8, [x21]
	str	x8, [x22]
	ldr	q0, [x21, #48]
	stur	q0, [x22, #40]
	ldr	x8, [x21, #40]
	ldr	w8, [x8]
	str	w8, [x22, #36]
	ldr	w8, [x21, #32]
	str	w8, [x22, #32]
	ldr	d0, [x21, #24]
	str	d0, [x22, #24]
	ldr	w0, [x21, #20]
	bl	_ib_lid_cpu16
	str	w0, [x22, #20]
	ldr	w8, [x21, #16]
	str	w8, [x22, #16]
	ldr	d0, [x21, #8]
	str	d0, [x22, #8]
	ldr	w0, [x25]
	mov	x1, x23
	bl	_RDMA_WRITE_UAPI_ATOMIC
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_20
LBB0_13:
	mov	w8, #72
	umaddl	x8, w24, w8, x28
	ldr	q0, [x21]
	str	q0, [x8]
	ldp	q0, q1, [x21, #16]
	ldr	q2, [x21, #48]
	ldr	x9, [x21, #64]
	str	x9, [x8, #64]
	stp	q1, q2, [x8, #32]
	str	q0, [x8, #16]
	str	w23, [x27]
LBB0_14:
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_18
; %bb.15:
Lloh8:
	adrp	x9, _IB_CQ_SOLICITED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_CQ_SOLICITED@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
; %bb.16:
	ldr	w8, [sp, #4]                    ; 4-byte Folded Reload
	cbnz	w8, LBB0_18
; %bb.17:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _IB_WC_SUCCESS@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
LBB0_18:
Lloh14:
	adrp	x8, _RVT_CQ_NONE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RVT_CQ_NONE@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldp	w0, w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #28]
Lloh17:
	adrp	x8, _comp_vector_wq@GOTPAGE
Lloh18:
	ldr	x8, [x8, _comp_vector_wq@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x2, x19, #20
	bl	_queue_work_on
LBB0_19:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	w0, #1
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQ is full!\n"

	.comm	_IB_EVENT_CQ_ERR,4,2            ; @IB_EVENT_CQ_ERR
	.comm	_IB_CQ_NEXT_COMP,8,3            ; @IB_CQ_NEXT_COMP
	.comm	_IB_CQ_SOLICITED,8,3            ; @IB_CQ_SOLICITED
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_RVT_CQ_NONE,8,3                ; @RVT_CQ_NONE
	.comm	_comp_vector_wq,4,2             ; @comp_vector_wq
.subsections_via_symbols
