	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_rdma_alloc_queue
_nvme_rdma_alloc_queue:                 ## @nvme_rdma_alloc_queue
	.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	%rdx, %r15
	movq	%rdi, %r12
	movq	24(%rdi), %r13
	movslq	%esi, %rbx
	leaq	(%rbx,%rbx,4), %r14
	leaq	(%r13,%r14,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, 32(%r13,%r14,8)
	leaq	28(,%r14,8), %rdi
	addq	%r13, %rdi
	callq	_init_completion
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movl	(%r12), %eax
	shll	$4, %eax
	jmp	LBB0_3
LBB0_1:
	movl	$4, %eax
LBB0_3:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx)
	movq	%r15, 8(%r13,%r14,8)
	movq	_nvme_rdma_cm_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RDMA_PS_TCP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_IB_QPT_RC@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_init_net@GOTPCREL(%rip), %rdi
	callq	_rdma_create_id
	leaq	16(,%r14,8), %r15
	addq	%r13, %r15
	movl	%eax, 16(%r13,%r14,8)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.11:
	movl	4(%r12), %ebx
	movl	(%r15), %edi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_dev_info
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_4:
	movq	8(%r12), %rax
	movq	_NVMF_OPT_HOST_TRADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	(%rax), %ecx
	leaq	20(%r12), %rax
	xorl	%edx, %edx
	testl	%ecx, %ecx
	movl	$0, %esi
	cmovneq	%rax, %rsi
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	movl	%edx, 24(%r13,%r14,8)
	movl	(%r15), %edi
	leaq	16(%r12), %rdx
	movq	_NVME_RDMA_CONNECT_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_rdma_resolve_addr
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	movl	4(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvme_rdma_wait_for_cm
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	movl	4(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_6:
	movl	%ebx, %edx
	callq	_dev_info
	movl	(%r15), %edi
	callq	_rdma_destroy_id
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvme_rdma_destroy_queue_ib
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_NVME_RDMA_Q_ALLOCATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(,%r14,8), %rsi
	addq	%r13, %rsi
	callq	_set_bit
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_init_net,4,2                   ## @init_net
	.comm	_nvme_rdma_cm_handler,4,2       ## @nvme_rdma_cm_handler
	.comm	_RDMA_PS_TCP,4,2                ## @RDMA_PS_TCP
	.comm	_IB_QPT_RC,4,2                  ## @IB_QPT_RC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to create CM ID: %ld\n"

	.comm	_NVMF_OPT_HOST_TRADDR,4,2       ## @NVMF_OPT_HOST_TRADDR
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_NVME_RDMA_CONNECT_TIMEOUT_MS,4,2 ## @NVME_RDMA_CONNECT_TIMEOUT_MS
L_.str.1:                               ## @.str.1
	.asciz	"rdma_resolve_addr failed (%d).\n"

L_.str.2:                               ## @.str.2
	.asciz	"rdma connection establishment failed (%d)\n"

	.comm	_NVME_RDMA_Q_ALLOCATED,4,2      ## @NVME_RDMA_Q_ALLOCATED
	.no_dead_strip	_nvme_rdma_alloc_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_rdma_alloc_queue
_nvme_rdma_alloc_queue:                 ; @nvme_rdma_alloc_queue
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x22, x1
	mov	x20, x0
	ldr	x23, [x0, #24]
	sxtw	x24, w22
	mov	w8, #40
	smaddl	x19, w1, w8, x23
	str	x0, [x19, #32]
	add	x0, x19, #28
	bl	_init_completion
	cmp	w22, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	w8, [x20]
	lsl	w8, w8, #4
	b	LBB0_3
LBB0_2:
	mov	w8, #4
LBB0_3:
	str	w8, [x19]
	mov	w8, #40
	madd	x22, x24, x8, x23
	str	x21, [x22, #8]
Lloh0:
	adrp	x8, _nvme_rdma_cm_handler@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nvme_rdma_cm_handler@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _RDMA_PS_TCP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDMA_PS_TCP@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _IB_QPT_RC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IB_QPT_RC@GOTPAGEOFF]
Lloh8:
	ldr	w4, [x8]
Lloh9:
	adrp	x0, _init_net@GOTPAGE
Lloh10:
	ldr	x0, [x0, _init_net@GOTPAGEOFF]
	mov	x2, x19
	bl	_rdma_create_id
	str	w0, [x22, #16]!
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w19, [x20, #4]
	ldr	w0, [x22]
	bl	_PTR_ERR
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w0, [x22]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_5:
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _NVMF_OPT_HOST_TRADDR@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NVMF_OPT_HOST_TRADDR@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	add	x10, x20, #20
	tst	w9, w8
	csel	x1, xzr, x10, eq
Lloh16:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w8, w8
	mov	w9, #40
	madd	x9, x24, x9, x23
	str	w8, [x9, #24]
	ldr	w0, [x22]
	add	x2, x20, #16
Lloh19:
	adrp	x8, _NVME_RDMA_CONNECT_TIMEOUT_MS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _NVME_RDMA_CONNECT_TIMEOUT_MS@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	bl	_rdma_resolve_addr
	cbz	w0, LBB0_7
; %bb.6:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_nvme_rdma_wait_for_cm
	mov	x21, x0
	cbz	w0, LBB0_11
; %bb.8:
	ldr	w0, [x20, #4]
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	mov	x2, x21
	bl	_dev_info
	ldr	w0, [x22]
	bl	_rdma_destroy_id
	mov	x0, x19
	bl	_nvme_rdma_destroy_queue_ib
LBB0_10:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh26:
	adrp	x8, _NVME_RDMA_Q_ALLOCATED@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NVME_RDMA_Q_ALLOCATED@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	mov	w8, #40
	madd	x8, x24, x8, x23
	add	x1, x8, #20
	bl	_set_bit
	b	LBB0_10
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_init_net,4,2                   ; @init_net
	.comm	_nvme_rdma_cm_handler,4,2       ; @nvme_rdma_cm_handler
	.comm	_RDMA_PS_TCP,4,2                ; @RDMA_PS_TCP
	.comm	_IB_QPT_RC,4,2                  ; @IB_QPT_RC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to create CM ID: %ld\n"

	.comm	_NVMF_OPT_HOST_TRADDR,4,2       ; @NVMF_OPT_HOST_TRADDR
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_NVME_RDMA_CONNECT_TIMEOUT_MS,4,2 ; @NVME_RDMA_CONNECT_TIMEOUT_MS
l_.str.1:                               ; @.str.1
	.asciz	"rdma_resolve_addr failed (%d).\n"

l_.str.2:                               ; @.str.2
	.asciz	"rdma connection establishment failed (%d)\n"

	.comm	_NVME_RDMA_Q_ALLOCATED,4,2      ; @NVME_RDMA_Q_ALLOCATED
	.no_dead_strip	_nvme_rdma_alloc_queue
.subsections_via_symbols
