	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_req_notify_cq           ## -- Begin function pvrdma_req_notify_cq
	.p2align	4, 0x90
_pvrdma_req_notify_cq:                  ## @pvrdma_req_notify_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_vdev
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_vcq
	movq	%rax, %r12
	movq	_IB_CQ_SOLICITED_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	movq	_IB_CQ_SOLICITED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	_PVRDMA_UAR_CQ_ARM_SOL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_PVRDMA_UAR_CQ_ARM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ebx
	orl	16(%r12), %ebx
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_pvrdma_write_uar_cq
	movq	_IB_CQ_REPORT_MISSED_EVENTS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.5:
	movq	8(%r12), %rdi
	movl	4(%r12), %esi
	leaq	-36(%rbp), %rdx
	callq	_pvrdma_idx_ring_has_data
	movl	%eax, %r15d
	movq	_PVRDMA_INVALID_IDX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_7
LBB0_4:
	xorl	%r15d, %r15d
LBB0_7:
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_CQ_SOLICITED_MASK,4,2       ## @IB_CQ_SOLICITED_MASK
	.comm	_IB_CQ_SOLICITED,4,2            ## @IB_CQ_SOLICITED
	.comm	_PVRDMA_UAR_CQ_ARM_SOL,4,2      ## @PVRDMA_UAR_CQ_ARM_SOL
	.comm	_PVRDMA_UAR_CQ_ARM,4,2          ## @PVRDMA_UAR_CQ_ARM
	.comm	_IB_CQ_REPORT_MISSED_EVENTS,4,2 ## @IB_CQ_REPORT_MISSED_EVENTS
	.comm	_PVRDMA_INVALID_IDX,4,2         ## @PVRDMA_INVALID_IDX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQ ring state invalid\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pvrdma_req_notify_cq           ; -- Begin function pvrdma_req_notify_cq
	.p2align	2
_pvrdma_req_notify_cq:                  ; @pvrdma_req_notify_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_to_vdev
	mov	x20, x0
	mov	x0, x19
	bl	_to_vcq
	mov	x19, x0
	ldr	w8, [x0, #16]
Lloh0:
	adrp	x9, _IB_CQ_SOLICITED_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IB_CQ_SOLICITED_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w21
Lloh3:
	adrp	x10, _IB_CQ_SOLICITED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _IB_CQ_SOLICITED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _PVRDMA_UAR_CQ_ARM_SOL@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PVRDMA_UAR_CQ_ARM_SOL@GOTPAGEOFF]
Lloh8:
	adrp	x12, _PVRDMA_UAR_CQ_ARM@GOTPAGE
Lloh9:
	ldr	x12, [x12, _PVRDMA_UAR_CQ_ARM@GOTPAGEOFF]
	cmp	w9, w10
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w22, w9, w8
	bl	_spin_lock_irqsave
	mov	x0, x20
	mov	x1, x22
	bl	_pvrdma_write_uar_cq
Lloh10:
	adrp	x8, _IB_CQ_REPORT_MISSED_EVENTS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IB_CQ_REPORT_MISSED_EVENTS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	add	x2, sp, #12
	bl	_pvrdma_idx_ring_has_data
	mov	x21, x0
Lloh13:
	adrp	x8, _PVRDMA_INVALID_IDX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PVRDMA_INVALID_IDX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	ldr	x0, [x20]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_CQ_SOLICITED_MASK,4,2       ; @IB_CQ_SOLICITED_MASK
	.comm	_IB_CQ_SOLICITED,4,2            ; @IB_CQ_SOLICITED
	.comm	_PVRDMA_UAR_CQ_ARM_SOL,4,2      ; @PVRDMA_UAR_CQ_ARM_SOL
	.comm	_PVRDMA_UAR_CQ_ARM,4,2          ; @PVRDMA_UAR_CQ_ARM
	.comm	_IB_CQ_REPORT_MISSED_EVENTS,4,2 ; @IB_CQ_REPORT_MISSED_EVENTS
	.comm	_PVRDMA_INVALID_IDX,4,2         ; @PVRDMA_INVALID_IDX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQ ring state invalid\n"

.subsections_via_symbols
