	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pvrdma_flush_cqe              ## -- Begin function _pvrdma_flush_cqe
	.p2align	4, 0x90
__pvrdma_flush_cqe:                     ## @_pvrdma_flush_cqe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 16(%rsi)
	je	LBB0_16
## %bb.1:
	movq	%rsi, %r15
	movq	8(%rsi), %rdi
	movl	(%rsi), %esi
	leaq	-44(%rbp), %rdx
	callq	_pvrdma_idx_ring_has_data
	xorl	%edi, %edi
	testl	%eax, %eax
	setg	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.2:
	movq	8(%r15), %rdi
	addq	$4, %rdi
	movl	(%r15), %esi
	callq	_pvrdma_idx
	movl	%eax, %r14d
	movl	%eax, %r12d
	subl	-44(%rbp), %r12d
	ja	LBB0_4
## %bb.3:
	addl	(%r15), %r12d
LBB0_4:
	testl	%r12d, %r12d
	jle	LBB0_16
## %bb.5:
	decl	%r14d
	incl	%r12d
	movl	%r14d, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%r15), %rdi
	movl	(%r15), %esi
	callq	_pvrdma_idx_ring_inc
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	decl	%ebx
	decl	%r12d
	cmpl	$1, %r12d
	jbe	LBB0_16
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	js	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	testl	%r14d, %r14d
	js	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_cqe
	movq	%rax, %r13
	movzwl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpl	(%rcx), %eax
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpl	%r14d, %ebx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_get_cqe
	movl	(%r13), %ecx
	movl	%ecx, (%rax)
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	decl	%r14d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %ebx
	decl	%ebx
	testl	%r14d, %r14d
	jns	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r15), %r14d
	decl	%r14d
	jmp	LBB0_10
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pvrdma_flush_cqe              ; -- Begin function _pvrdma_flush_cqe
	.p2align	2
__pvrdma_flush_cqe:                     ; @_pvrdma_flush_cqe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_16
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	x0, [x1, #8]
	ldr	w1, [x1]
	add	x2, sp, #12
	bl	_pvrdma_idx_ring_has_data
	cmp	w0, #0
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.2:
	ldr	x8, [x19, #8]
	add	x0, x8, #4
	ldr	w1, [x19]
	bl	_pvrdma_idx
	ldr	w8, [sp, #12]
	subs	w8, w0, w8
	b.hi	LBB0_4
; %bb.3:
	ldr	w9, [x19]
	add	w8, w8, w9
LBB0_4:
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.5:
	sub	w21, w0, #1
	add	w24, w8, #1
	mov	x22, x21
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [x19, #8]
	ldr	w1, [x19]
	bl	_pvrdma_idx_ring_inc
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	sub	w22, w22, #1
	sub	w24, w24, #1
	cmp	w24, #1
	b.ls	LBB0_16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	tbnz	w22, #31, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	tbnz	w21, #31, LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	mov	x1, x22
	bl	_get_cqe
	ldrh	w8, [x0]
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	cmp	w22, w21
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x23, x0
	mov	x0, x19
	mov	x1, x21
	bl	_get_cqe
	ldr	w8, [x23]
	str	w8, [x0]
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w21, w21, #1
	b	LBB0_7
LBB0_14:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	sub	w22, w8, #1
	tbz	w21, #31, LBB0_10
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x19]
	sub	w21, w8, #1
	b	LBB0_10
LBB0_16:
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
