	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_tcp_setup_ctrl
_nvme_tcp_setup_ctrl:                   ## @nvme_tcp_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, %r15
	movq	48(%rdi), %r12
	callq	_nvme_tcp_configure_admin_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	cmpq	$0, 40(%r15)
	je	LBB0_3
## %bb.2:
	movl	32(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%ebx, %ebx
LBB0_12:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_nvme_tcp_stop_queue
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_nvme_tcp_destroy_admin_queue
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r12), %rax
	movq	(%r15), %rdx
	leaq	1(%rdx), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_5
## %bb.4:
	movl	32(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_warn
	movq	(%r15), %rdx
LBB0_5:
	movq	8(%r15), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_7
## %bb.6:
	incq	%rdx
	movl	32(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	8(%r15), %rax
	decq	%rax
	movq	%rax, (%r15)
LBB0_7:
	cmpl	$2, 16(%r15)
	jl	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_nvme_tcp_configure_io_queues
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
LBB0_9:
	movq	_NVME_CTRL_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_nvme_change_ctrl_state
	testl	%eax, %eax
	je	LBB0_10
## %bb.14:
	movq	%r15, %rdi
	callq	_nvme_start_ctrl
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_10:
	movq	24(%r15), %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, 16(%r15)
	jle	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_nvme_tcp_destroy_io_queues
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"icdoff is not supported!\n"

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

L_.str.2:                               ## @.str.2
	.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
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_nvme_tcp_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_tcp_setup_ctrl
_nvme_tcp_setup_ctrl:                   ; @nvme_tcp_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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #48]
	bl	_nvme_tcp_configure_admin_queue
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	w21, #0
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_nvme_tcp_stop_queue
	mov	x0, x19
	mov	x1, x20
	bl	_nvme_tcp_destroy_admin_queue
LBB0_4:
	mov	x0, x21
	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_5:
	ldr	x2, [x22]
	ldr	x8, [x19]
	add	x3, x8, #1
	cmp	x2, x3
	b.le	LBB0_7
; %bb.6:
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x19]
LBB0_7:
	ldr	x3, [x19, #8]
	cmp	x8, x3
	b.lt	LBB0_9
; %bb.8:
	add	x2, x8, #1
	ldr	w0, [x19, #32]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x19, #8]
	sub	x8, x8, #1
	str	x8, [x19]
LBB0_9:
	ldr	w8, [x19, #16]
	cmp	w8, #2
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	bl	_nvme_tcp_configure_io_queues
	mov	x21, x0
	cbnz	w0, LBB0_3
LBB0_11:
Lloh6:
	adrp	x8, _NVME_CTRL_LIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NVME_CTRL_LIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvme_change_ctrl_state
	cbz	w0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_nvme_start_ctrl
	mov	w21, #0
	b	LBB0_4
LBB0_13:
	ldr	x8, [x19, #24]
Lloh9:
	adrp	x9, _NVME_CTRL_DELETING@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NVME_CTRL_DELETING@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_WARN_ON_ONCE
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.le	LBB0_3
; %bb.14:
	mov	x0, x19
	mov	x1, x20
	bl	_nvme_tcp_destroy_io_queues
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"icdoff is not supported!\n"

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

l_.str.2:                               ; @.str.2
	.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
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_nvme_tcp_setup_ctrl
.subsections_via_symbols
