	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_rdma_setup_ctrl
_nvme_rdma_setup_ctrl:                  ## @nvme_rdma_setup_ctrl
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_nvme_rdma_configure_admin_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	cmpq	$0, 72(%r12)
	je	LBB0_4
## %bb.2:
	movl	56(%r12), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_3
LBB0_4:
	leaq	16(%r12), %r15
	testb	$4, (%r15)
	jne	LBB0_6
## %bb.5:
	movl	56(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_3:
	callq	_dev_err
	xorl	%ebx, %ebx
LBB0_17:
	movq	8(%r12), %rdi
	callq	_nvme_rdma_stop_queue
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_nvme_rdma_destroy_admin_queue
LBB0_18:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	24(%r12), %rdx
	movq	64(%r12), %rax
	movq	(%rax), %rax
	leaq	1(%rdx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_8
## %bb.7:
	movl	56(%r12), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_warn
	movq	24(%r12), %rdx
LBB0_8:
	movq	32(%r12), %rcx
	cmpq	%rcx, %rdx
	jge	LBB0_9
## %bb.10:
	testb	$16, 2(%r15)
	jne	LBB0_11
LBB0_12:
	cmpl	$2, 40(%r12)
	jge	LBB0_13
	jmp	LBB0_14
LBB0_9:
	incq	%rdx
	movl	56(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	32(%r12), %rax
	decq	%rax
	movq	%rax, 24(%r12)
	testb	$16, 2(%r15)
	je	LBB0_12
LBB0_11:
	movl	$1, (%r12)
	cmpl	$2, 40(%r12)
	jl	LBB0_14
LBB0_13:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_nvme_rdma_configure_io_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_14:
	movq	_NVME_CTRL_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nvme_change_ctrl_state
	testl	%eax, %eax
	je	LBB0_15
## %bb.19:
	movq	%r15, %rdi
	callq	_nvme_start_ctrl
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_15:
	movq	48(%r12), %rax
	movq	_NVME_CTRL_DELETING@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_WARN_ON_ONCE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	$1, 40(%r12)
	jle	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_nvme_rdma_destroy_io_queues
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"icdoff is not supported!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Mandatory keyed sgls are not supported!\n"

L_.str.2:                               ## @.str.2
	.asciz	"queue_size %zu > ctrl sqsize %u, clamping down\n"

L_.str.3:                               ## @.str.3
	.asciz	"sqsize %u > ctrl maxcmd %u, clamping down\n"

	.comm	_NVME_CTRL_LIVE,4,2             ## @NVME_CTRL_LIVE
	.comm	_NVME_CTRL_DELETING,8,3         ## @NVME_CTRL_DELETING
	.no_dead_strip	_nvme_rdma_setup_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_rdma_setup_ctrl
_nvme_rdma_setup_ctrl:                  ; @nvme_rdma_setup_ctrl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_nvme_rdma_configure_admin_queue
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x20, #56]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:
	add	x21, x20, #16
	ldrb	w8, [x21]
	tbnz	w8, #2, LBB0_8
; %bb.4:
	ldr	w0, [x20, #56]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_dev_err
	mov	w22, #0
LBB0_6:
	ldr	x0, [x20, #8]
	bl	_nvme_rdma_stop_queue
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_rdma_destroy_admin_queue
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x8, [x20, #64]
	ldr	x2, [x8]
	ldr	x8, [x20, #24]
	add	x3, x8, #1
	cmp	x2, x3
	b.le	LBB0_10
; %bb.9:
	ldr	w0, [x20, #56]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x20, #24]
LBB0_10:
	ldr	x3, [x20, #32]
	cmp	x8, x3
	b.lt	LBB0_12
; %bb.11:
	add	x2, x8, #1
	ldr	w0, [x20, #56]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x20, #32]
	sub	x8, x8, #1
	str	x8, [x20, #24]
LBB0_12:
	ldrb	w8, [x21, #2]
	tbz	w8, #4, LBB0_14
; %bb.13:
	mov	w8, #1
	str	w8, [x20]
LBB0_14:
	ldr	w8, [x20, #40]
	cmp	w8, #2
	b.lt	LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_rdma_configure_io_queues
	mov	x22, x0
	cbnz	w0, LBB0_6
LBB0_16:
Lloh8:
	adrp	x8, _NVME_CTRL_LIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NVME_CTRL_LIVE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_nvme_change_ctrl_state
	cbz	w0, LBB0_18
; %bb.17:
	mov	x0, x21
	bl	_nvme_start_ctrl
	mov	w22, #0
	b	LBB0_7
LBB0_18:
	ldr	x8, [x20, #48]
Lloh11:
	adrp	x9, _NVME_CTRL_DELETING@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NVME_CTRL_DELETING@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON_ONCE
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
	ldr	w8, [x20, #40]
	cmp	w8, #1
	b.le	LBB0_6
; %bb.19:
	mov	x0, x20
	mov	x1, x19
	bl	_nvme_rdma_destroy_io_queues
	b	LBB0_6
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"icdoff is not supported!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Mandatory keyed sgls are not supported!\n"

l_.str.2:                               ; @.str.2
	.asciz	"queue_size %zu > ctrl sqsize %u, clamping down\n"

l_.str.3:                               ; @.str.3
	.asciz	"sqsize %u > ctrl maxcmd %u, clamping down\n"

	.comm	_NVME_CTRL_LIVE,4,2             ; @NVME_CTRL_LIVE
	.comm	_NVME_CTRL_DELETING,8,3         ; @NVME_CTRL_DELETING
	.no_dead_strip	_nvme_rdma_setup_ctrl
.subsections_via_symbols
