	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function req_next_wqe
_req_next_wqe:                          ## @req_next_wqe
	.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, %r12
	movl	24(%rdi), %edi
	callq	_queue_head
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	_QP_STATE_DRAIN@GOTPCREL(%rip), %r13
	xorl	%edi, %edi
	cmpq	(%r13), %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	leaq	56(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	jne	LBB0_7
## %bb.2:
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	movq	%r13, %rbx
	movq	8(%r12), %r13
	movl	24(%r12), %edi
	callq	_consumer_index
	cmpq	%rax, %r13
	movq	%rbx, %r13
	jne	LBB0_7
## %bb.4:
	movq	(%r14), %rax
	movq	_wqe_state_posted@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_5:
	movq	_QP_STATE_DRAINED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	40(%r12), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	leaq	32(%r12), %rcx
	movl	48(%r12), %edx
	movl	%edx, -48(%rbp)
	movq	%rcx, -56(%rbp)
	movq	_IB_EVENT_SQ_DRAINED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -64(%rbp)
	movl	32(%r12), %esi
	leaq	-64(%rbp), %rdi
	callq	*%rax
	jmp	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_8:
	movq	8(%r12), %rbx
	movl	24(%r12), %edi
	callq	_producer_index
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	je	LBB0_9
## %bb.10:
	movl	24(%r12), %edi
	movq	8(%r12), %rsi
	callq	_addr_from_index
	movq	%rax, %r14
	movq	(%r12), %rax
	cmpq	(%r13), %rax
	je	LBB0_12
## %bb.11:
	movq	_QP_STATE_DRAINED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_12:
	movq	(%r14), %rax
	movq	_wqe_state_processing@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	setne	%r15b
LBB0_13:
	movl	%r15d, %edi
	callq	_unlikely
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_15
LBB0_9:
	xorl	%r14d, %r14d
LBB0_20:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_IB_SEND_FENCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r14)
	je	LBB0_17
## %bb.16:
	movq	8(%r12), %rbx
	movl	24(%r12), %edi
	callq	_consumer_index
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
LBB0_17:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movl	$1, 16(%r12)
	xorl	%r14d, %r14d
	jmp	LBB0_20
LBB0_19:
	movl	12(%r14), %edi
	movq	%r12, %rsi
	callq	_wr_opcode_mask
	movl	%eax, 16(%r14)
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_QP_STATE_DRAIN,8,3             ## @QP_STATE_DRAIN
	.comm	_wqe_state_posted,8,3           ## @wqe_state_posted
	.comm	_QP_STATE_DRAINED,8,3           ## @QP_STATE_DRAINED
	.comm	_IB_EVENT_SQ_DRAINED,4,2        ## @IB_EVENT_SQ_DRAINED
	.comm	_wqe_state_processing,8,3       ## @wqe_state_processing
	.comm	_IB_SEND_FENCE,4,2              ## @IB_SEND_FENCE
	.no_dead_strip	_req_next_wqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function req_next_wqe
_req_next_wqe:                          ; @req_next_wqe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	w0, [x0, #24]
	bl	_queue_head
	mov	x21, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x22, _QP_STATE_DRAIN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _QP_STATE_DRAIN@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.1:
	add	x20, x19, #56
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	cbz	x21, LBB0_5
; %bb.3:
	ldr	x23, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_consumer_index
	cmp	x23, x0
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x21]
Lloh2:
	adrp	x9, _wqe_state_posted@GOTPAGE
Lloh3:
	ldr	x9, [x9, _wqe_state_posted@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _QP_STATE_DRAINED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QP_STATE_DRAINED@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_8
; %bb.6:
	mov	x9, x19
	ldr	w1, [x9, #32]!
	ldr	w10, [x9, #16]
	str	w10, [sp, #24]
	str	x9, [sp, #16]
Lloh8:
	adrp	x9, _IB_EVENT_SQ_DRAINED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IB_EVENT_SQ_DRAINED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	add	x0, sp, #8
	blr	x8
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
LBB0_8:
	ldr	x20, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_producer_index
	cmp	x20, x0
	b.eq	LBB0_11
; %bb.9:
	ldr	w0, [x19, #24]
	ldr	x1, [x19, #8]
	bl	_addr_from_index
	mov	x20, x0
	ldr	x8, [x19]
	ldr	x9, [x22]
Lloh11:
	adrp	x10, _QP_STATE_DRAINED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _QP_STATE_DRAINED@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_13
; %bb.10:
	ldr	x8, [x20]
Lloh14:
	adrp	x9, _wqe_state_processing@GOTPAGE
Lloh15:
	ldr	x9, [x9, _wqe_state_processing@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_14
LBB0_11:
	mov	x20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_11
LBB0_14:
	ldr	w8, [x20, #8]
Lloh17:
	adrp	x9, _IB_SEND_FENCE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IB_SEND_FENCE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	x21, [x19, #8]
	ldr	w0, [x19, #24]
	bl	_consumer_index
	cmp	x21, x0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_18
LBB0_16:
	mov	x20, #0
	mov	w8, #1
	str	w8, [x19, #16]
	b	LBB0_12
LBB0_17:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_16
LBB0_18:
	ldr	w0, [x20, #12]
	mov	x1, x19
	bl	_wr_opcode_mask
	str	w0, [x20, #16]
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_QP_STATE_DRAIN,8,3             ; @QP_STATE_DRAIN
	.comm	_wqe_state_posted,8,3           ; @wqe_state_posted
	.comm	_QP_STATE_DRAINED,8,3           ; @QP_STATE_DRAINED
	.comm	_IB_EVENT_SQ_DRAINED,4,2        ; @IB_EVENT_SQ_DRAINED
	.comm	_wqe_state_processing,8,3       ; @wqe_state_processing
	.comm	_IB_SEND_FENCE,4,2              ; @IB_SEND_FENCE
	.no_dead_strip	_req_next_wqe
.subsections_via_symbols
