	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_poll_cq                    ## -- Begin function rvt_poll_cq
	.p2align	4, 0x90
_rvt_poll_cq:                           ## @rvt_poll_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	%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	%rdx, %r14
	movl	%esi, %ebx
	callq	_ibcq_to_rvtcq
	cmpq	$0, 24(%rax)
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_12
LBB0_2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r12), %r15
	movq	16(%r12), %r13
	movq	(%r13), %rax
	cmpq	%r15, %rax
	cmovbq	%rax, %r15
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	xorl	%r15d, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	cmpl	%ebx, %r14d
	je	LBB0_11
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	8(%r13), %r15
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	(,%r15,4), %rsi
	addq	16(%r13), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_trace_rvt_cq_poll
	movq	16(%r13), %rax
	movl	(%rax,%r15,4), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	cmpq	8(%r12), %r15
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
	jmp	LBB0_11
LBB0_10:
	movl	%ebx, %r14d
LBB0_11:
	movq	%r15, (%r13)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rvt_poll_cq                    ; -- Begin function rvt_poll_cq
	.p2align	2
_rvt_poll_cq:                           ; @rvt_poll_cq
	.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	x20, x2
	mov	x21, x1
	bl	_ibcq_to_rvtcq
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	bl	_spin_lock_irqsave
	ldp	x8, x23, [x19, #8]
	ldr	x9, [x23]
	cmp	x9, x8
	csel	x24, x9, x8, lo
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.3:
	mov	x22, #0
	mov	w21, w21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	cmp	x24, x8
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #16]
	lsl	x25, x24, #2
	add	x1, x8, x25
	mov	x0, x19
	mov	x2, x22
	bl	_trace_rvt_cq_poll
	ldr	x8, [x23, #16]
	ldr	w8, [x8, x25]
	str	w8, [x20, x22, lsl #2]
	ldr	x8, [x19, #8]
	cmp	x24, x8
	csinc	x24, xzr, x24, hs
	add	x22, x22, #1
	cmp	w21, w22
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w21, #0
	b	LBB0_8
LBB0_7:
	mov	x21, x22
LBB0_8:
	str	x24, [x23]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
LBB0_9:
	mov	x0, x21
	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	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
