	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_rdma_create_queue_ib
_nvme_rdma_create_queue_ib:             ## @nvme_rdma_create_queue_ib
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_nvme_rdma_queue_idx
	movl	%eax, %r14d
	movq	24(%r13), %rdi
	callq	_nvme_rdma_find_get_device
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	(%rax), %r15
	xorl	%eax, %eax
	movl	%r14d, %ebx
	subl	$1, %ebx
	cmovbl	%eax, %ebx
	movq	%r13, %rdi
	callq	_nvme_rdma_poll_queue
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movq	_IB_POLL_SOFTIRQ@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ECONNREFUSED@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_3:
	movq	_IB_POLL_DIRECT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r8d
	movl	(%r13), %eax
	leal	1(,%rax,4), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%ebx, %ecx
	callq	_ib_alloc_cq
	movl	%eax, 16(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	16(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %r12d
	jmp	LBB0_14
LBB0_7:
	movq	%r13, %rdi
	movl	$3, %esi
	callq	_nvme_rdma_create_qp
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_13
## %bb.8:
	movl	(%r13), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_nvme_rdma_alloc_ring
	movl	%eax, 32(%r13)
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movq	%r15, %rdi
	callq	_nvme_rdma_get_max_fr_pages
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %r8d
	movq	48(%r13), %rdi
	movl	(%r13), %edx
	movq	_IB_MR_TYPE_MEM_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	movq	%rdi, %rsi
	xorl	%r9d, %r9d
	callq	_ib_mr_pool_init
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	movl	%eax, %ebx
	movq	40(%r13), %rax
	movl	(%rax), %edi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r13), %edx
	movl	32(%r13), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	$4, %ecx
	callq	_nvme_rdma_free_ring
	movl	%ebx, %r12d
	jmp	LBB0_12
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_12:
	movq	24(%r13), %rdi
	callq	_rdma_destroy_qp
LBB0_13:
	movl	16(%r13), %edi
	callq	_ib_free_cq
LBB0_14:
	movq	8(%r13), %rdi
	callq	_nvme_rdma_dev_put
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_NVME_RDMA_Q_TR_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$36, %r13
	movq	%r13, %rsi
	callq	_set_bit
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no client data found!\n"

	.comm	_ECONNREFUSED,4,2               ## @ECONNREFUSED
	.comm	_IB_POLL_DIRECT,4,2             ## @IB_POLL_DIRECT
	.comm	_IB_POLL_SOFTIRQ,4,2            ## @IB_POLL_SOFTIRQ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IB_MR_TYPE_MEM_REG,4,2         ## @IB_MR_TYPE_MEM_REG
L_.str.1:                               ## @.str.1
	.asciz	"failed to initialize MR pool sized %d for QID %d\n"

	.comm	_NVME_RDMA_Q_TR_READY,4,2       ## @NVME_RDMA_Q_TR_READY
	.no_dead_strip	_nvme_rdma_create_queue_ib
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_rdma_create_queue_ib
_nvme_rdma_create_queue_ib:             ; @nvme_rdma_create_queue_ib
	.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
	mov	x19, x0
	bl	_nvme_rdma_queue_idx
	mov	x21, x0
	ldr	x0, [x19, #24]
	bl	_nvme_rdma_find_get_device
	str	x0, [x19, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x20, [x0]
	sub	w8, w21, #1
	cmp	w21, #0
	csel	w22, wzr, w8, eq
	mov	x0, x19
	bl	_nvme_rdma_poll_queue
Lloh0:
	adrp	x8, _IB_POLL_SOFTIRQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_POLL_SOFTIRQ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _IB_POLL_DIRECT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IB_POLL_DIRECT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w4, [x8]
	ldr	w8, [x19]
	mov	w2, #1
	bfi	w2, w8, #2, #30
	mov	x0, x20
	mov	x1, x19
	mov	x3, x22
	bl	_ib_alloc_cq
	str	w0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_11
LBB0_3:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh6:
	adrp	x8, _ECONNREFUSED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECONNREFUSED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_12
LBB0_4:
	mov	x0, x19
	mov	w1, #3
	bl	_nvme_rdma_create_qp
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.5:
	ldr	w1, [x19]
Lloh9:
	adrp	x23, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x0, x20
	mov	w2, #4
	bl	_nvme_rdma_alloc_ring
	str	w0, [x19, #32]
	cbz	w0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_nvme_rdma_get_max_fr_pages
	add	w4, w0, #1
	ldr	x0, [x19, #48]
	ldr	w2, [x19]
Lloh11:
	adrp	x8, _IB_MR_TYPE_MEM_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IB_MR_TYPE_MEM_REG@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x0
	mov	w5, #0
	bl	_ib_mr_pool_init
	mov	x22, x0
	cbz	w0, LBB0_13
; %bb.7:
	ldr	x8, [x19, #40]
	ldr	w0, [x8]
	ldr	w8, [x19]
	stp	x8, x21, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w1, [x19, #32]
	ldr	w2, [x19]
	ldr	w4, [x23]
	mov	x0, x20
	mov	w3, #4
	bl	_nvme_rdma_free_ring
	b	LBB0_9
LBB0_8:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	ldr	x0, [x19, #24]
	bl	_rdma_destroy_qp
LBB0_10:
	ldr	w0, [x19, #16]
	bl	_ib_free_cq
LBB0_11:
	ldr	x0, [x19, #8]
	bl	_nvme_rdma_dev_put
LBB0_12:
	mov	x0, x22
	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_13:
Lloh19:
	adrp	x8, _NVME_RDMA_Q_TR_READY@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NVME_RDMA_Q_TR_READY@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, x19, #36
	bl	_set_bit
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no client data found!\n"

	.comm	_ECONNREFUSED,4,2               ; @ECONNREFUSED
	.comm	_IB_POLL_DIRECT,4,2             ; @IB_POLL_DIRECT
	.comm	_IB_POLL_SOFTIRQ,4,2            ; @IB_POLL_SOFTIRQ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IB_MR_TYPE_MEM_REG,4,2         ; @IB_MR_TYPE_MEM_REG
l_.str.1:                               ; @.str.1
	.asciz	"failed to initialize MR pool sized %d for QID %d\n"

	.comm	_NVME_RDMA_Q_TR_READY,4,2       ; @NVME_RDMA_Q_TR_READY
	.no_dead_strip	_nvme_rdma_create_queue_ib
.subsections_via_symbols
