	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_i40iw_qp_get_next_recv_wqe     ## -- Begin function i40iw_qp_get_next_recv_wqe
	.p2align	4, 0x90
_i40iw_qp_get_next_recv_wqe:            ## @i40iw_qp_get_next_recv_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	16(%rdi), %edi
	callq	_I40IW_RING_FULL_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_2:
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	callq	_I40IW_ATOMIC_RING_MOVE_HEAD
	movl	(%r14), %eax
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	movl	%eax, (%rbx)
	movl	(%r14), %eax
LBB0_4:
	movq	8(%rbx), %rcx
	movl	4(%rbx), %edx
	sarl	$2, %edx
	imull	%eax, %edx
	movslq	%edx, %rax
	movq	(%rcx,%rax,8), %rax
LBB0_5:
	popq	%rbx
	popq	%r14
	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	_i40iw_qp_get_next_recv_wqe     ; -- Begin function i40iw_qp_get_next_recv_wqe
	.p2align	2
_i40iw_qp_get_next_recv_wqe:            ; @i40iw_qp_get_next_recv_wqe
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #16]
	bl	_I40IW_RING_FULL_ERR
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, #0
	b	LBB0_5
LBB0_2:
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	bl	_I40IW_ATOMIC_RING_MOVE_HEAD
	ldr	w8, [x20]
	cbnz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19]
	ldr	w8, [x20]
LBB0_4:
	ldr	x9, [x19, #8]
	ldr	w10, [x19, #4]
	asr	w10, w10, #2
	mul	w8, w10, w8
	ldr	x0, [x9, w8, sxtw #3]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
