	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nes_req_notify_cq
_nes_req_notify_cq:                     ## @nes_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_to_nesvnic
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_to_nescq
	movq	%rax, %rbx
	movq	_NES_DBG_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movq	_IB_CQ_SOLICITED_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movl	(%rbx), %esi
	movq	_IB_CQ_NEXT_COMP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_2
## %bb.1:
	movq	_NES_CQE_ALLOC_NOTIFY_NEXT@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_IB_CQ_SOLICITED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_6
## %bb.3:
	movq	_NES_CQE_ALLOC_NOTIFY_SE@GOTPCREL(%rip), %rax
LBB0_4:
	orl	(%rax), %esi
	movq	_NES_CQE_ALLOC@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_nes_write32
	movq	(%rbx), %rdi
	addq	(%r15), %rdi
	callq	_nes_read32
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_DBG_CQ,4,2                 ## @NES_DBG_CQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Requesting notification for CQ%u.\n"

	.comm	_IB_CQ_SOLICITED_MASK,4,2       ## @IB_CQ_SOLICITED_MASK
	.comm	_IB_CQ_NEXT_COMP,4,2            ## @IB_CQ_NEXT_COMP
	.comm	_NES_CQE_ALLOC_NOTIFY_NEXT,4,2  ## @NES_CQE_ALLOC_NOTIFY_NEXT
	.comm	_IB_CQ_SOLICITED,4,2            ## @IB_CQ_SOLICITED
	.comm	_NES_CQE_ALLOC_NOTIFY_SE,4,2    ## @NES_CQE_ALLOC_NOTIFY_SE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NES_CQE_ALLOC,8,3              ## @NES_CQE_ALLOC
	.no_dead_strip	_nes_req_notify_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nes_req_notify_cq
_nes_req_notify_cq:                     ; @nes_req_notify_cq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	mov	x20, x0
	ldr	w0, [x0]
	bl	_to_nesvnic
	ldr	x21, [x0]
	mov	x0, x20
	bl	_to_nescq
	mov	x20, x0
Lloh0:
	adrp	x8, _NES_DBG_CQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NES_DBG_CQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _IB_CQ_SOLICITED_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IB_CQ_SOLICITED_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	and	w9, w9, w19
Lloh8:
	adrp	x10, _IB_CQ_NEXT_COMP@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IB_CQ_NEXT_COMP@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_2
; %bb.1:
Lloh11:
	adrp	x9, _NES_CQE_ALLOC_NOTIFY_NEXT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NES_CQE_ALLOC_NOTIFY_NEXT@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh13:
	adrp	x10, _IB_CQ_SOLICITED@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IB_CQ_SOLICITED@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.3:
Lloh16:
	adrp	x9, _NES_CQE_ALLOC_NOTIFY_SE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _NES_CQE_ALLOC_NOTIFY_SE@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	x8, [x21]
Lloh18:
	adrp	x19, _NES_CQE_ALLOC@GOTPAGE
Lloh19:
	ldr	x19, [x19, _NES_CQE_ALLOC@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_nes_write32
	ldr	x8, [x21]
	ldr	x9, [x19]
	add	x0, x9, x8
	bl	_nes_read32
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_DBG_CQ,4,2                 ; @NES_DBG_CQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Requesting notification for CQ%u.\n"

	.comm	_IB_CQ_SOLICITED_MASK,4,2       ; @IB_CQ_SOLICITED_MASK
	.comm	_IB_CQ_NEXT_COMP,4,2            ; @IB_CQ_NEXT_COMP
	.comm	_NES_CQE_ALLOC_NOTIFY_NEXT,4,2  ; @NES_CQE_ALLOC_NOTIFY_NEXT
	.comm	_IB_CQ_SOLICITED,4,2            ; @IB_CQ_SOLICITED
	.comm	_NES_CQE_ALLOC_NOTIFY_SE,4,2    ; @NES_CQE_ALLOC_NOTIFY_SE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NES_CQE_ALLOC,8,3              ; @NES_CQE_ALLOC
	.no_dead_strip	_nes_req_notify_cq
.subsections_via_symbols
