	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pvrdma_poll_one
_pvrdma_poll_one:                       ## @pvrdma_poll_one
	.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	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	callq	_to_vdev
	movq	%rax, %r13
	movq	16(%rbx), %rdi
	movl	4(%rbx), %esi
	leaq	-44(%rbp), %rdx
	callq	_pvrdma_idx_ring_has_data
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_PVRDMA_UAR_CQ_POLL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_pvrdma_write_uar_cq
	movq	16(%rbx), %rdi
	movl	4(%rbx), %esi
	leaq	-44(%rbp), %rdx
	callq	_pvrdma_idx_ring_has_data
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movq	_PVRDMA_INVALID_IDX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.3:
	movq	8(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_4
LBB0_5:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %esi
	movq	%rbx, %rdi
	callq	_get_cqe
	movq	%rax, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_rmb
	movq	(%r13), %rax
	movzwl	(%r15), %ecx
	movq	(%rax,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, (%r13)
	movl	56(%r15), %edi
	callq	_pvrdma_wc_opcode_to_ib
	movl	%eax, 64(%r14)
	movl	52(%r15), %edi
	callq	_pvrdma_wc_status_to_ib
	movl	%eax, 60(%r14)
	movl	48(%r15), %eax
	movl	%eax, 56(%r14)
	movq	(%r13), %rax
	movq	%rax, 48(%r14)
	movl	44(%r15), %eax
	movl	%eax, 40(%r14)
	movl	40(%r15), %eax
	movl	%eax, 36(%r14)
	movl	36(%r15), %eax
	movl	%eax, 32(%r14)
	movl	32(%r15), %edi
	callq	_pvrdma_wc_flags_to_ib
	movl	%eax, 28(%r14)
	movl	28(%r15), %eax
	movl	%eax, 24(%r14)
	movl	24(%r15), %eax
	movl	%eax, 20(%r14)
	movl	20(%r15), %eax
	movl	%eax, 16(%r14)
	movups	4(%r15), %xmm0
	movups	%xmm0, (%r14)
	movq	16(%rbx), %rdi
	movl	4(%rbx), %esi
	callq	_pvrdma_idx_ring_inc
	jmp	LBB0_7
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_PVRDMA_UAR_CQ_POLL,4,2         ## @PVRDMA_UAR_CQ_POLL
	.comm	_PVRDMA_INVALID_IDX,4,2         ## @PVRDMA_INVALID_IDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQ ring state invalid\n"

	.no_dead_strip	_pvrdma_poll_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pvrdma_poll_one
_pvrdma_poll_one:                       ; @pvrdma_poll_one
	.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
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w0, [x0, #8]
	bl	_to_vdev
	mov	x22, x0
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #4]
	add	x2, sp, #12
	bl	_pvrdma_idx_ring_has_data
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PVRDMA_UAR_CQ_POLL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PVRDMA_UAR_CQ_POLL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_pvrdma_write_uar_cq
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #4]
	add	x2, sp, #12
	bl	_pvrdma_idx_ring_has_data
	cbz	w0, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _PVRDMA_INVALID_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PVRDMA_INVALID_IDX@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.3:
	ldr	x0, [x22, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_6
LBB0_4:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_get_cqe
	mov	x23, x0
	bl	_rmb
	ldr	x8, [x22]
	ldrh	w9, [x23]
	ldr	x8, [x8, x9, lsl #3]
	cbz	x8, LBB0_6
; %bb.5:
	str	x8, [x21]
	ldr	w0, [x23, #56]
	bl	_pvrdma_wc_opcode_to_ib
	str	w0, [x20, #64]
	ldr	w0, [x23, #52]
	bl	_pvrdma_wc_status_to_ib
	ldp	w9, w8, [x23, #44]
	stp	w8, w0, [x20, #56]
	ldr	x8, [x21]
	str	x8, [x20, #48]
	str	w9, [x20, #40]
	ldur	d0, [x23, #36]
	str	d0, [x20, #32]
	ldr	w0, [x23, #32]
	bl	_pvrdma_wc_flags_to_ib
	ldr	w8, [x23, #28]
	stp	w8, w0, [x20, #24]
	ldur	d0, [x23, #20]
	str	d0, [x20, #16]
	ldur	q0, [x23, #4]
	str	q0, [x20]
	ldr	x0, [x19, #16]
	ldr	w1, [x19, #4]
	bl	_pvrdma_idx_ring_inc
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_PVRDMA_UAR_CQ_POLL,4,2         ; @PVRDMA_UAR_CQ_POLL
	.comm	_PVRDMA_INVALID_IDX,4,2         ; @PVRDMA_INVALID_IDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQ ring state invalid\n"

	.no_dead_strip	_pvrdma_poll_one
.subsections_via_symbols
