	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvme_fc_create_association
_nvme_fc_create_association:            ## @nvme_fc_create_association
	.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
	movq	80(%rdi), %r12
	movq	104(%rdi), %rax
	incq	48(%rdi)
	movq	(%rax), %rax
	movq	_FC_OBJSTATE_ONLINE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	callq	_nvme_fc_ctlr_active_on_rport
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ENOTUNIQ@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_28:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	56(%r15), %edi
	movl	112(%r15), %edx
	movq	96(%r15), %rax
	movl	8(%rax), %ecx
	movq	104(%r15), %rax
	movl	8(%rax), %r8d
	movq	80(%r15), %rax
	movl	8(%rax), %r9d
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	8(%r15), %rsi
	movq	_NVME_AQ_DEPTH@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	___nvme_fc_create_hw_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_27
## %bb.6:
	movq	8(%r15), %rsi
	movl	(%r14), %edx
	leal	3(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_nvme_fc_connect_admin_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_26
## %bb.7:
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_nvmf_connect_admin_queue
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.8:
	movq	_NVME_FC_Q_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r15), %rsi
	callq	_set_bit
	movq	%r14, %rdi
	callq	_nvme_enable_ctrl
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.9:
	movq	96(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	decl	%eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	addb	$-9, %cl
	shll	%cl, %eax
	movl	%eax, 16(%r15)
	movl	72(%r15), %edi
	callq	_blk_mq_unquiesce_queue
	movq	%r14, %rdi
	callq	_nvme_init_identify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_25
## %bb.10:
	movq	64(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	movl	56(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_12:
	movq	(%r12), %rdx
	movq	24(%r15), %rcx
	cmpq	%rcx, %rdx
	jle	LBB0_14
## %bb.13:
	movl	56(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movq	24(%r15), %rdx
	movq	%rdx, (%r12)
LBB0_14:
	movq	32(%r15), %rcx
	incq	%rcx
	cmpq	%rcx, %rdx
	jle	LBB0_16
## %bb.15:
	movl	56(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	32(%r15), %rax
	incq	%rax
	movq	%rax, (%r12)
LBB0_16:
	movq	%r15, %rdi
	callq	_nvme_fc_init_aen_ops
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_17
LBB0_24:
	movq	%r15, %rdi
	callq	_nvme_fc_term_aen_ops
LBB0_25:
	movq	%r15, %rdi
	callq	_nvme_fc_xmt_disconnect_assoc
LBB0_26:
	movq	8(%r15), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	___nvme_fc_delete_hw_queue
LBB0_27:
	movq	8(%r15), %rdi
	callq	_nvme_fc_free_queue
	movl	$0, (%r15)
	movq	%r15, %rdi
	callq	_nvme_fc_ctlr_inactive_on_rport
	jmp	LBB0_28
LBB0_17:
	cmpl	$2, 40(%r15)
	jl	LBB0_22
## %bb.18:
	cmpl	$0, 88(%r15)
	je	LBB0_19
## %bb.20:
	movq	%r15, %rdi
	callq	_nvme_fc_recreate_io_queues
	jmp	LBB0_21
LBB0_19:
	movq	%r15, %rdi
	callq	_nvme_fc_create_io_queues
LBB0_21:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_24
LBB0_22:
	movq	_NVME_CTRL_LIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvme_change_ctrl_state
	movq	$0, 48(%r15)
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_28
## %bb.23:
	movq	%r14, %rdi
	callq	_nvme_start_ctrl
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_FC_OBJSTATE_ONLINE,8,3         ## @FC_OBJSTATE_ONLINE
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_ENOTUNIQ,4,2                   ## @ENOTUNIQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVME-FC{%d}: create association : host wwpn 0x%016llx  rport wwpn 0x%016llx: NQN \"%s\"\n"

	.comm	_NVME_AQ_DEPTH,4,2              ## @NVME_AQ_DEPTH
	.comm	_NVME_FC_Q_LIVE,4,2             ## @NVME_FC_Q_LIVE
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"icdoff %d is not supported!\n"

L_.str.2:                               ## @.str.2
	.asciz	"queue_size %zu > ctrl maxcmd %u, reducing to queue_size\n"

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

	.comm	_NVME_CTRL_LIVE,4,2             ## @NVME_CTRL_LIVE
	.no_dead_strip	_nvme_fc_create_association
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvme_fc_create_association
_nvme_fc_create_association:            ; @nvme_fc_create_association
	.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
	ldr	x22, [x0, #80]
	ldr	x8, [x0, #48]
	add	x8, x8, #1
	str	x8, [x0, #48]
	ldr	x8, [x0, #104]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _FC_OBJSTATE_ONLINE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FC_OBJSTATE_ONLINE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_nvme_fc_ctlr_active_on_rport
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _ENOTUNIQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTUNIQ@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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_6:
	ldr	w0, [x19, #56]
	ldr	w2, [x19, #112]
	ldp	x8, x9, [x19, #96]
	ldr	w3, [x8, #8]
	ldr	w4, [x9, #8]
	ldr	x8, [x19, #80]
	ldr	w5, [x8, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	x1, [x19, #8]
Lloh9:
	adrp	x20, _NVME_AQ_DEPTH@GOTPAGE
Lloh10:
	ldr	x20, [x20, _NVME_AQ_DEPTH@GOTPAGEOFF]
	ldr	w3, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	___nvme_fc_create_hw_queue
	mov	x21, x0
	cbnz	w0, LBB0_21
; %bb.7:
	ldr	x1, [x19, #8]
	ldr	w2, [x20]
	add	w8, w2, #3
	cmp	w2, #0
	csel	w8, w8, w2, lt
	asr	w3, w8, #2
	mov	x0, x19
	bl	_nvme_fc_connect_admin_queue
	mov	x21, x0
	cbnz	w0, LBB0_20
; %bb.8:
	add	x20, x19, #16
	mov	x0, x20
	bl	_nvmf_connect_admin_queue
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.9:
Lloh11:
	adrp	x8, _NVME_FC_Q_LIVE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NVME_FC_Q_LIVE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	bl	_set_bit
	mov	x0, x20
	bl	_nvme_enable_ctrl
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.10:
	ldr	x8, [x19, #96]
	ldr	x8, [x8]
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
	sub	w8, w8, #1
Lloh16:
	ldr	w9, [x9]
	sub	w9, w9, #9
	lsl	w8, w8, w9
	str	w8, [x19, #16]
	ldr	w0, [x19, #72]
	bl	_blk_mq_unquiesce_queue
	mov	x0, x20
	bl	_nvme_init_identify
	mov	x21, x0
	cbnz	w0, LBB0_19
; %bb.11:
	ldr	x2, [x19, #64]
	cbz	x2, LBB0_13
; %bb.12:
	ldr	w0, [x19, #56]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	w21, #0
	b	LBB0_19
LBB0_13:
	ldr	x2, [x22]
	ldr	x3, [x19, #24]
	cmp	x2, x3
	b.le	LBB0_15
; %bb.14:
	ldr	w0, [x19, #56]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	ldr	x2, [x19, #24]
	str	x2, [x22]
LBB0_15:
	ldr	x8, [x19, #32]
	add	x3, x8, #1
	cmp	x2, x3
	b.le	LBB0_17
; %bb.16:
	ldr	w0, [x19, #56]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
	ldr	x8, [x19, #32]
	add	x8, x8, #1
	str	x8, [x22]
LBB0_17:
	mov	x0, x19
	bl	_nvme_fc_init_aen_ops
	mov	x21, x0
	cbz	w0, LBB0_22
LBB0_18:
	mov	x0, x19
	bl	_nvme_fc_term_aen_ops
LBB0_19:
	mov	x0, x19
	bl	_nvme_fc_xmt_disconnect_assoc
LBB0_20:
	ldr	x1, [x19, #8]
	mov	x0, x19
	mov	w2, #0
	bl	___nvme_fc_delete_hw_queue
LBB0_21:
	ldr	x0, [x19, #8]
	bl	_nvme_fc_free_queue
	str	wzr, [x19]
	mov	x0, x19
	bl	_nvme_fc_ctlr_inactive_on_rport
	b	LBB0_5
LBB0_22:
	ldr	w8, [x19, #40]
	cmp	w8, #2
	b.lt	LBB0_27
; %bb.23:
	ldr	w8, [x19, #88]
	cbz	w8, LBB0_25
; %bb.24:
	mov	x0, x19
	bl	_nvme_fc_recreate_io_queues
	b	LBB0_26
LBB0_25:
	mov	x0, x19
	bl	_nvme_fc_create_io_queues
LBB0_26:
	mov	x21, x0
	cbnz	w0, LBB0_18
LBB0_27:
Lloh23:
	adrp	x8, _NVME_CTRL_LIVE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NVME_CTRL_LIVE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_nvme_change_ctrl_state
	str	xzr, [x19, #48]
	cbz	w0, LBB0_29
; %bb.28:
	mov	x0, x20
	bl	_nvme_start_ctrl
LBB0_29:
	mov	w21, #0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_FC_OBJSTATE_ONLINE,8,3         ; @FC_OBJSTATE_ONLINE
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_ENOTUNIQ,4,2                   ; @ENOTUNIQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVME-FC{%d}: create association : host wwpn 0x%016llx  rport wwpn 0x%016llx: NQN \"%s\"\n"

	.comm	_NVME_AQ_DEPTH,4,2              ; @NVME_AQ_DEPTH
	.comm	_NVME_FC_Q_LIVE,4,2             ; @NVME_FC_Q_LIVE
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"icdoff %d is not supported!\n"

l_.str.2:                               ; @.str.2
	.asciz	"queue_size %zu > ctrl maxcmd %u, reducing to queue_size\n"

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

	.comm	_NVME_CTRL_LIVE,4,2             ; @NVME_CTRL_LIVE
	.no_dead_strip	_nvme_fc_create_association
.subsections_via_symbols
