	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_srq_wqe
_get_srq_wqe:                           ## @get_srq_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	24(%rdi), %r14
	movq	_RESPST_ERR_RNR@GOTPCREL(%rip), %rbx
	cmpq	$0, 40(%r14)
	jne	LBB0_9
## %bb.1:
	movq	%rdi, %r13
	movq	32(%r14), %r15
	leaq	24(%r14), %r12
	movq	%r12, %rdi
	callq	_spin_lock_bh
	movq	%r15, %rdi
	callq	_queue_head
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rbx
	leaq	8(%r13), %r12
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r12, 16(%r13)
	movq	%r15, %rdi
	callq	_advance_consumer
	cmpq	$0, (%r14)
	je	LBB0_7
## %bb.4:
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.5:
	movq	%r15, %rdi
	callq	_queue_count
	cmpq	(%r14), %rax
	jge	LBB0_7
## %bb.6:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movl	4(%r13), %eax
	movl	%eax, -48(%rbp)
	movl	(%r13), %eax
	movl	%eax, -52(%rbp)
	movq	_IB_EVENT_SRQ_LIMIT_REACHED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movl	8(%r14), %esi
	leaq	-56(%rbp), %rdi
	callq	*16(%r14)
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
LBB0_8:
	movq	_RESPST_CHK_LENGTH@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_2:
	movq	%r12, %rdi
	callq	_spin_unlock_bh
LBB0_9:
	movl	(%rbx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESPST_ERR_RNR,4,2             ## @RESPST_ERR_RNR
	.comm	_RESPST_CHK_LENGTH,4,2          ## @RESPST_CHK_LENGTH
	.comm	_IB_EVENT_SRQ_LIMIT_REACHED,4,2 ## @IB_EVENT_SRQ_LIMIT_REACHED
	.no_dead_strip	_get_srq_wqe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_srq_wqe
_get_srq_wqe:                           ; @get_srq_wqe
	.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
	ldr	x23, [x0, #24]
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _RESPST_ERR_RNR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESPST_ERR_RNR@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	x21, [x23, #32]
	add	x20, x23, #24
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x21
	bl	_queue_head
	cbz	x0, LBB0_10
; %bb.3:
	mov	x1, x0
	add	x22, x19, #8
	mov	x0, x22
	mov	w2, #4
	bl	_memcpy
	str	x22, [x19, #16]
	mov	x0, x21
	bl	_advance_consumer
	ldr	x8, [x23]
	cbz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x23, #16]
	cbz	x8, LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_queue_count
	ldr	x8, [x23]
	cmp	x0, x8
	b.ge	LBB0_7
; %bb.6:
	str	xzr, [x23]
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	d0, [x19]
	stur	d0, [sp, #4]
Lloh2:
	adrp	x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IB_EVENT_SRQ_LIMIT_REACHED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x8, [x23, #16]
	ldr	w1, [x23, #8]
	mov	x0, sp
	blr	x8
	b	LBB0_8
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_8:
Lloh5:
	adrp	x8, _RESPST_CHK_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RESPST_CHK_LENGTH@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	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
LBB0_10:
	mov	x0, x20
	bl	_spin_unlock_bh
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RESPST_ERR_RNR,4,2             ; @RESPST_ERR_RNR
	.comm	_RESPST_CHK_LENGTH,4,2          ; @RESPST_CHK_LENGTH
	.comm	_IB_EVENT_SRQ_LIMIT_REACHED,4,2 ; @IB_EVENT_SRQ_LIMIT_REACHED
	.no_dead_strip	_get_srq_wqe
.subsections_via_symbols
