	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_resource
_check_resource:                        ## @check_resource
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movq	40(%rdi), %rax
	movq	_QP_STATE_ERROR@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.1:
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_2:
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_RESPST_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_6:
	movl	(%rsi), %ecx
	movq	_RXE_READ_OR_ATOMIC@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.7:
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	setg	%dil
	callq	_likely
	testq	%rax, %rax
	jne	LBB0_13
## %bb.8:
	movq	_RESPST_ERR_TOO_MANY_RDMA_ATM_REQ@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_3:
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_RESPST_EXIT@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_RXE_RWR_MASK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_13
## %bb.10:
	testq	%rax, %rax
	je	LBB0_11
## %bb.15:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_get_srq_wqe                    ## TAILCALL
LBB0_4:
	movl	24(%rbx), %edi
	callq	_queue_head
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_5
LBB0_11:
	movl	24(%rbx), %edi
	callq	_queue_head
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_RESPST_ERR_RNR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_RESPST_CHK_LENGTH@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QP_STATE_ERROR,8,3             ## @QP_STATE_ERROR
	.comm	_IB_WC_WR_FLUSH_ERR,8,3         ## @IB_WC_WR_FLUSH_ERR
	.comm	_RESPST_COMPLETE,4,2            ## @RESPST_COMPLETE
	.comm	_RESPST_EXIT,4,2                ## @RESPST_EXIT
	.comm	_RXE_READ_OR_ATOMIC,4,2         ## @RXE_READ_OR_ATOMIC
	.comm	_RESPST_CHK_LENGTH,4,2          ## @RESPST_CHK_LENGTH
	.comm	_RESPST_ERR_TOO_MANY_RDMA_ATM_REQ,4,2 ## @RESPST_ERR_TOO_MANY_RDMA_ATM_REQ
	.comm	_RXE_RWR_MASK,4,2               ## @RXE_RWR_MASK
	.comm	_RESPST_ERR_RNR,4,2             ## @RESPST_ERR_RNR
	.no_dead_strip	_check_resource
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_resource
_check_resource:                        ; @check_resource
	.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	x19, x0
	ldr	x8, [x0, #40]
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _QP_STATE_ERROR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _QP_STATE_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.1:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_6
LBB0_2:
Lloh3:
	adrp	x8, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #16]
Lloh6:
	adrp	x8, _RESPST_COMPLETE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RESPST_COMPLETE@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
	ldr	w9, [x1]
Lloh8:
	adrp	x10, _RXE_READ_OR_ATOMIC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _RXE_READ_OR_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_8
; %bb.4:
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, gt
	bl	_likely
	cbnz	x0, LBB0_11
; %bb.5:
Lloh11:
	adrp	x8, _RESPST_ERR_TOO_MANY_RDMA_ATM_REQ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESPST_ERR_TOO_MANY_RDMA_ATM_REQ@GOTPAGEOFF]
	b	LBB0_12
LBB0_6:
	cbz	x8, LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _RESPST_EXIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RESPST_EXIT@GOTPAGEOFF]
	b	LBB0_12
LBB0_8:
Lloh15:
	adrp	x10, _RXE_RWR_MASK@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RXE_RWR_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_11
; %bb.9:
	cbz	x8, LBB0_14
; %bb.10:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_get_srq_wqe
LBB0_11:
Lloh18:
	adrp	x8, _RESPST_CHK_LENGTH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RESPST_CHK_LENGTH@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w0, [x19, #24]
	bl	_queue_head
	str	x0, [x19, #8]
	cbnz	x0, LBB0_2
	b	LBB0_7
LBB0_14:
	ldr	w0, [x19, #24]
	bl	_queue_head
Lloh20:
	adrp	x8, _RESPST_CHK_LENGTH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RESPST_CHK_LENGTH@GOTPAGEOFF]
	str	x0, [x19, #8]
Lloh22:
	adrp	x9, _RESPST_ERR_RNR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _RESPST_ERR_RNR@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_QP_STATE_ERROR,8,3             ; @QP_STATE_ERROR
	.comm	_IB_WC_WR_FLUSH_ERR,8,3         ; @IB_WC_WR_FLUSH_ERR
	.comm	_RESPST_COMPLETE,4,2            ; @RESPST_COMPLETE
	.comm	_RESPST_EXIT,4,2                ; @RESPST_EXIT
	.comm	_RXE_READ_OR_ATOMIC,4,2         ; @RXE_READ_OR_ATOMIC
	.comm	_RESPST_CHK_LENGTH,4,2          ; @RESPST_CHK_LENGTH
	.comm	_RESPST_ERR_TOO_MANY_RDMA_ATM_REQ,4,2 ; @RESPST_ERR_TOO_MANY_RDMA_ATM_REQ
	.comm	_RXE_RWR_MASK,4,2               ; @RXE_RWR_MASK
	.comm	_RESPST_ERR_RNR,4,2             ; @RESPST_ERR_RNR
	.no_dead_strip	_check_resource
.subsections_via_symbols
