	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_rdma_configure_admin_queue
_nvme_rdma_configure_admin_queue:       ## @nvme_rdma_configure_admin_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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	_NVME_AQ_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_nvme_rdma_alloc_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.1:
	movq	8(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_dev_to_node
	movl	%eax, 64(%r12)
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	callq	_nvme_rdma_get_max_fr_pages
	movl	%eax, (%r12)
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	leaq	16(%r12), %r14
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_nvme_rdma_alloc_qe
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_19
## %bb.2:
	leaq	32(%r12), %r13
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.3:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_nvme_rdma_alloc_tagset
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	40(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_5:
	leaq	72(%r12), %rbx
	movq	%rbx, %rdi
	callq	_blk_mq_init_queue
	movq	%rax, 48(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	48(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
	jmp	LBB0_16
LBB0_7:
	movq	%rbx, %rdi
	callq	_blk_mq_init_queue
	movq	%rax, 56(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	56(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_15
LBB0_9:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_nvme_rdma_start_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.10:
	movq	%r13, %rdi
	callq	_nvme_enable_ctrl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	(%r12), %ebx
	movl	%ebx, 32(%r12)
	movq	_SZ_4K@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ilog2
                                        ## kill: def $eax killed $eax def $rax
	leal	-9(%rax), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movl	%ebx, 36(%r12)
	movq	56(%r12), %rdi
	callq	_blk_mq_unquiesce_queue
	movq	%r13, %rdi
	callq	_nvme_init_identify
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_21
LBB0_12:
	movq	8(%r12), %rdi
	callq	_nvme_rdma_stop_queue
LBB0_13:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.14:
	movq	56(%r12), %rdi
	callq	_blk_cleanup_queue
LBB0_15:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
	movq	48(%r12), %rdi
	callq	_blk_cleanup_queue
LBB0_16:
	movq	40(%r12), %rdi
	callq	_blk_mq_free_tag_set
	jmp	LBB0_18
LBB0_17:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %r15
LBB0_18:
	movq	24(%r12), %rax
	movq	(%rax), %rdi
	movl	(%r15), %ecx
	movq	%r14, %rsi
	movl	$4, %edx
	callq	_nvme_rdma_free_qe
	movq	$0, 16(%r12)
LBB0_19:
	movq	8(%r12), %rdi
	callq	_nvme_rdma_free_queue
LBB0_20:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_NVME_AQ_DEPTH,4,2              ## @NVME_AQ_DEPTH
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_SZ_4K,4,2                      ## @SZ_4K
	.no_dead_strip	_nvme_rdma_configure_admin_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_configure_admin_queue
_nvme_rdma_configure_admin_queue:       ; @nvme_rdma_configure_admin_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, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _NVME_AQ_DEPTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVME_AQ_DEPTH@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_nvme_rdma_alloc_queue
	mov	x22, x0
	cbnz	w0, LBB0_19
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	str	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_dev_to_node
	str	w0, [x19, #64]
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	bl	_nvme_rdma_get_max_fr_pages
	str	w0, [x19]
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	add	x20, x19, #16
Lloh3:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x1, x20
	mov	w2, #4
	bl	_nvme_rdma_alloc_qe
	mov	x22, x0
	cbnz	w0, LBB0_18
; %bb.2:
	add	x23, x19, #32
	cbz	w21, LBB0_9
; %bb.3:
	mov	x0, x23
	mov	w1, #1
	bl	_nvme_rdma_alloc_tagset
	str	x0, [x19, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x0, [x19, #40]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_17
LBB0_5:
	add	x22, x19, #72
	mov	x0, x22
	bl	_blk_mq_init_queue
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x19, #48]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_16
LBB0_7:
	mov	x0, x22
	bl	_blk_mq_init_queue
	str	x0, [x19, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x0, [x19, #56]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_15
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_rdma_start_queue
	mov	x22, x0
	cbnz	w0, LBB0_13
; %bb.10:
	mov	x0, x23
	bl	_nvme_enable_ctrl
	mov	x22, x0
	cbnz	w0, LBB0_12
; %bb.11:
	ldr	w22, [x19]
	str	w22, [x19, #32]
Lloh5:
	adrp	x8, _SZ_4K@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SZ_4K@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_ilog2
	sub	w8, w0, #9
	lsl	w8, w22, w8
	str	w8, [x19, #36]
	ldr	x0, [x19, #56]
	bl	_blk_mq_unquiesce_queue
	mov	x0, x23
	bl	_nvme_init_identify
	mov	x22, x0
	cbz	w0, LBB0_19
LBB0_12:
	ldr	x0, [x19, #8]
	bl	_nvme_rdma_stop_queue
LBB0_13:
	cbz	w21, LBB0_17
; %bb.14:
	ldr	x0, [x19, #56]
	bl	_blk_cleanup_queue
LBB0_15:
	ldr	x0, [x19, #48]
	bl	_blk_cleanup_queue
LBB0_16:
	ldr	x0, [x19, #40]
	bl	_blk_mq_free_tag_set
LBB0_17:
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	ldr	w3, [x24]
	mov	x1, x20
	mov	w2, #4
	bl	_nvme_rdma_free_qe
	str	xzr, [x19, #16]
LBB0_18:
	ldr	x0, [x19, #8]
	bl	_nvme_rdma_free_queue
LBB0_19:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NVME_AQ_DEPTH,4,2              ; @NVME_AQ_DEPTH
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_SZ_4K,4,2                      ; @SZ_4K
	.no_dead_strip	_nvme_rdma_configure_admin_queue
.subsections_via_symbols
