	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_fc_ls_disconnect
_nvmet_fc_ls_disconnect:                ## @nvmet_fc_ls_disconnect
	.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	%rsi, %r13
	movq	%rdi, %r15
	movq	24(%rsi), %r14
	movq	32(%rsi), %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	cmpl	$64, (%r13)
	jae	LBB0_2
## %bb.1:
	movq	_VERR_DISCONN_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_2:
	movq	(%r12), %rbx
	movl	$64, %edi
	callq	_fcnvme_lsdesc_len
	cmpq	%rax, %rbx
	jne	LBB0_3
## %bb.4:
	movq	16(%r12), %rbx
	movq	_FCNVME_LSDESC_ASSOC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.6:
	movq	24(%r12), %rbx
	movl	$4, %edi
	callq	_fcnvme_lsdesc_len
	cmpq	%rax, %rbx
	jne	LBB0_7
## %bb.8:
	movq	40(%r12), %rbx
	movq	_FCNVME_LSDESC_DISCONN_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.10:
	movq	48(%r12), %rbx
	movl	$4, %edi
	callq	_fcnvme_lsdesc_len
	cmpq	%rax, %rbx
	jne	LBB0_11
## %bb.12:
	movq	56(%r12), %rax
	movq	_FCNVME_DISCONN_ASSOCIATION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.13:
	movq	_FCNVME_DISCONN_CONNECTION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.14:
	movq	_VERR_DISCONN_SCOPE@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_3:
	movq	_VERR_DISCONN_RQST_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_5:
	movq	_VERR_ASSOC_ID@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_7:
	movq	_VERR_ASSOC_ID_LEN@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
	movq	_VERR_DISCONN_CMD@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_11:
	movq	_VERR_DISCONN_CMD_LEN@GOTPCREL(%rip), %rax
LBB0_17:
	movslq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_24
## %bb.18:
	movl	(%r15), %edi
	movq	_validation_errors@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_NVME_FC_MAX_LS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %edx
	movq	_VERR_NO_ASSOC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_20
## %bb.19:
	movq	_FCNVME_RJT_RC_INV_ASSOC@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_20:
	movq	_VERR_NO_CONN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_21
## %bb.22:
	movq	_FCNVME_RJT_RC_INV_CONN@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_21:
	movq	_FCNVME_RJT_RC_LOGIC@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %ecx
	movq	_FCNVME_RJT_EXP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%r9d, %r9d
	callq	_nvmet_fc_format_rjt
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	32(%r12), %edi
	callq	_be64_to_cpu
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_nvmet_fc_find_target_assoc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_16
LBB0_24:
	movq	16(%r13), %rax
	movl	$4, (%rax)
	movq	_FCNVME_LS_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$4, %edi
	callq	_fcnvme_lsdesc_len
	movq	_FCNVME_LS_DISCONNECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_nvmet_fc_format_rsp_hdr
	movq	8(%r13), %rdi
	callq	_nvmet_fc_tgt_a_put
	movq	8(%r13), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_nvmet_fc_delete_target_assoc   ## TAILCALL
LBB0_16:
	movq	_VERR_NO_ASSOC@GOTPCREL(%rip), %rax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_VERR_DISCONN_LEN,4,2           ## @VERR_DISCONN_LEN
	.comm	_VERR_DISCONN_RQST_LEN,4,2      ## @VERR_DISCONN_RQST_LEN
	.comm	_FCNVME_LSDESC_ASSOC_ID,4,2     ## @FCNVME_LSDESC_ASSOC_ID
	.comm	_VERR_ASSOC_ID,4,2              ## @VERR_ASSOC_ID
	.comm	_VERR_ASSOC_ID_LEN,4,2          ## @VERR_ASSOC_ID_LEN
	.comm	_FCNVME_LSDESC_DISCONN_CMD,4,2  ## @FCNVME_LSDESC_DISCONN_CMD
	.comm	_VERR_DISCONN_CMD,4,2           ## @VERR_DISCONN_CMD
	.comm	_VERR_DISCONN_CMD_LEN,4,2       ## @VERR_DISCONN_CMD_LEN
	.comm	_FCNVME_DISCONN_ASSOCIATION,8,3 ## @FCNVME_DISCONN_ASSOCIATION
	.comm	_FCNVME_DISCONN_CONNECTION,8,3  ## @FCNVME_DISCONN_CONNECTION
	.comm	_VERR_DISCONN_SCOPE,4,2         ## @VERR_DISCONN_SCOPE
	.comm	_VERR_NO_ASSOC,4,2              ## @VERR_NO_ASSOC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disconnect LS failed: %s\n"

	.comm	_validation_errors,8,3          ## @validation_errors
	.comm	_NVME_FC_MAX_LS_BUFFER_SIZE,4,2 ## @NVME_FC_MAX_LS_BUFFER_SIZE
	.comm	_FCNVME_RJT_RC_INV_ASSOC,4,2    ## @FCNVME_RJT_RC_INV_ASSOC
	.comm	_VERR_NO_CONN,4,2               ## @VERR_NO_CONN
	.comm	_FCNVME_RJT_RC_INV_CONN,4,2     ## @FCNVME_RJT_RC_INV_CONN
	.comm	_FCNVME_RJT_RC_LOGIC,4,2        ## @FCNVME_RJT_RC_LOGIC
	.comm	_FCNVME_RJT_EXP_NONE,4,2        ## @FCNVME_RJT_EXP_NONE
	.comm	_FCNVME_LS_ACC,4,2              ## @FCNVME_LS_ACC
	.comm	_FCNVME_LS_DISCONNECT,4,2       ## @FCNVME_LS_DISCONNECT
	.no_dead_strip	_nvmet_fc_ls_disconnect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmet_fc_ls_disconnect
_nvmet_fc_ls_disconnect:                ; @nvmet_fc_ls_disconnect
	.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	x19, x1
	mov	x21, x0
	ldp	x20, x22, [x1, #24]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	ldr	w8, [x19]
	cmp	w8, #64
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VERR_DISCONN_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERR_DISCONN_LEN@GOTPAGEOFF]
Lloh2:
	ldrsw	x23, [x8]
	cbnz	w23, LBB0_15
	b	LBB0_21
LBB0_2:
	ldr	x23, [x22]
	mov	w0, #64
	bl	_fcnvme_lsdesc_len
	cmp	x23, x0
	b.ne	LBB0_10
; %bb.3:
	ldr	x23, [x22, #16]
Lloh3:
	adrp	x8, _FCNVME_LSDESC_ASSOC_ID@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FCNVME_LSDESC_ASSOC_ID@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	cmp	x23, x0
	b.ne	LBB0_11
; %bb.4:
	ldr	x23, [x22, #24]
	mov	w0, #4
	bl	_fcnvme_lsdesc_len
	cmp	x23, x0
	b.ne	LBB0_12
; %bb.5:
	ldr	x23, [x22, #40]
Lloh6:
	adrp	x8, _FCNVME_LSDESC_DISCONN_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FCNVME_LSDESC_DISCONN_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	cmp	x23, x0
	b.ne	LBB0_13
; %bb.6:
	ldr	x23, [x22, #48]
	mov	w0, #4
	bl	_fcnvme_lsdesc_len
	cmp	x23, x0
	b.ne	LBB0_14
; %bb.7:
	ldr	x8, [x22, #56]
Lloh9:
	adrp	x9, _FCNVME_DISCONN_ASSOCIATION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FCNVME_DISCONN_ASSOCIATION@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.8:
Lloh12:
	adrp	x9, _FCNVME_DISCONN_CONNECTION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FCNVME_DISCONN_CONNECTION@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.9:
Lloh15:
	adrp	x8, _VERR_DISCONN_SCOPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VERR_DISCONN_SCOPE@GOTPAGEOFF]
Lloh17:
	ldrsw	x23, [x8]
	cbnz	w23, LBB0_15
	b	LBB0_21
LBB0_10:
Lloh18:
	adrp	x8, _VERR_DISCONN_RQST_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VERR_DISCONN_RQST_LEN@GOTPAGEOFF]
Lloh20:
	ldrsw	x23, [x8]
	cbnz	w23, LBB0_15
	b	LBB0_21
LBB0_11:
Lloh21:
	adrp	x8, _VERR_ASSOC_ID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VERR_ASSOC_ID@GOTPAGEOFF]
Lloh23:
	ldrsw	x23, [x8]
	cbnz	w23, LBB0_15
	b	LBB0_21
LBB0_12:
Lloh24:
	adrp	x8, _VERR_ASSOC_ID_LEN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VERR_ASSOC_ID_LEN@GOTPAGEOFF]
Lloh26:
	ldrsw	x23, [x8]
	cbnz	w23, LBB0_15
	b	LBB0_21
LBB0_13:
Lloh27:
	adrp	x8, _VERR_DISCONN_CMD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VERR_DISCONN_CMD@GOTPAGEOFF]
Lloh29:
	ldrsw	x23, [x8]
	cbnz	w23, LBB0_15
	b	LBB0_21
LBB0_14:
Lloh30:
	adrp	x8, _VERR_DISCONN_CMD_LEN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _VERR_DISCONN_CMD_LEN@GOTPAGEOFF]
Lloh32:
	ldrsw	x23, [x8]
	cbz	w23, LBB0_21
LBB0_15:
	ldr	w0, [x21]
Lloh33:
	adrp	x8, _validation_errors@GOTPAGE
Lloh34:
	ldr	x8, [x8, _validation_errors@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w2, [x8, x23, lsl #2]
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh38:
	adrp	x8, _NVME_FC_MAX_LS_BUFFER_SIZE@GOTPAGE
Lloh39:
	ldr	x8, [x8, _NVME_FC_MAX_LS_BUFFER_SIZE@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	ldr	w2, [x22, #8]
Lloh41:
	adrp	x8, _VERR_NO_ASSOC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VERR_NO_ASSOC@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_17
; %bb.16:
Lloh44:
	adrp	x8, _FCNVME_RJT_RC_INV_ASSOC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _FCNVME_RJT_RC_INV_ASSOC@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
Lloh46:
	adrp	x8, _VERR_NO_CONN@GOTPAGE
Lloh47:
	ldr	x8, [x8, _VERR_NO_CONN@GOTPAGEOFF]
Lloh48:
	adrp	x9, _FCNVME_RJT_RC_INV_CONN@GOTPAGE
Lloh49:
	ldr	x9, [x9, _FCNVME_RJT_RC_INV_CONN@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
Lloh51:
	adrp	x10, _FCNVME_RJT_RC_LOGIC@GOTPAGE
Lloh52:
	ldr	x10, [x10, _FCNVME_RJT_RC_LOGIC@GOTPAGEOFF]
	cmp	w23, w8
	csel	x8, x9, x10, eq
LBB0_18:
	ldr	w3, [x8]
Lloh53:
	adrp	x8, _FCNVME_RJT_EXP_NONE@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FCNVME_RJT_EXP_NONE@GOTPAGEOFF]
Lloh55:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w5, #0
	bl	_nvmet_fc_format_rjt
	ldr	x8, [x19, #16]
	str	w0, [x8]
	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_19:
	ldr	w0, [x22, #32]
	bl	_be64_to_cpu
	mov	x1, x0
	mov	x0, x21
	bl	_nvmet_fc_find_target_assoc
	str	x0, [x19, #8]
	cbnz	x0, LBB0_21
; %bb.20:
Lloh56:
	adrp	x8, _VERR_NO_ASSOC@GOTPAGE
Lloh57:
	ldr	x8, [x8, _VERR_NO_ASSOC@GOTPAGEOFF]
Lloh58:
	ldrsw	x23, [x8]
	cbnz	w23, LBB0_15
LBB0_21:
	ldr	x8, [x19, #16]
	mov	w9, #4
	str	w9, [x8]
Lloh59:
	adrp	x8, _FCNVME_LS_ACC@GOTPAGE
Lloh60:
	ldr	x8, [x8, _FCNVME_LS_ACC@GOTPAGEOFF]
Lloh61:
	ldr	w21, [x8]
	mov	w0, #4
	bl	_fcnvme_lsdesc_len
	mov	x2, x0
Lloh62:
	adrp	x8, _FCNVME_LS_DISCONNECT@GOTPAGE
Lloh63:
	ldr	x8, [x8, _FCNVME_LS_DISCONNECT@GOTPAGEOFF]
Lloh64:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_nvmet_fc_format_rsp_hdr
	ldr	x0, [x19, #8]
	bl	_nvmet_fc_tgt_a_put
	ldr	x0, [x19, #8]
	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	_nvmet_fc_delete_target_assoc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh50
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.cfi_endproc
                                        ; -- End function
	.comm	_VERR_DISCONN_LEN,4,2           ; @VERR_DISCONN_LEN
	.comm	_VERR_DISCONN_RQST_LEN,4,2      ; @VERR_DISCONN_RQST_LEN
	.comm	_FCNVME_LSDESC_ASSOC_ID,4,2     ; @FCNVME_LSDESC_ASSOC_ID
	.comm	_VERR_ASSOC_ID,4,2              ; @VERR_ASSOC_ID
	.comm	_VERR_ASSOC_ID_LEN,4,2          ; @VERR_ASSOC_ID_LEN
	.comm	_FCNVME_LSDESC_DISCONN_CMD,4,2  ; @FCNVME_LSDESC_DISCONN_CMD
	.comm	_VERR_DISCONN_CMD,4,2           ; @VERR_DISCONN_CMD
	.comm	_VERR_DISCONN_CMD_LEN,4,2       ; @VERR_DISCONN_CMD_LEN
	.comm	_FCNVME_DISCONN_ASSOCIATION,8,3 ; @FCNVME_DISCONN_ASSOCIATION
	.comm	_FCNVME_DISCONN_CONNECTION,8,3  ; @FCNVME_DISCONN_CONNECTION
	.comm	_VERR_DISCONN_SCOPE,4,2         ; @VERR_DISCONN_SCOPE
	.comm	_VERR_NO_ASSOC,4,2              ; @VERR_NO_ASSOC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disconnect LS failed: %s\n"

	.comm	_validation_errors,8,3          ; @validation_errors
	.comm	_NVME_FC_MAX_LS_BUFFER_SIZE,4,2 ; @NVME_FC_MAX_LS_BUFFER_SIZE
	.comm	_FCNVME_RJT_RC_INV_ASSOC,4,2    ; @FCNVME_RJT_RC_INV_ASSOC
	.comm	_VERR_NO_CONN,4,2               ; @VERR_NO_CONN
	.comm	_FCNVME_RJT_RC_INV_CONN,4,2     ; @FCNVME_RJT_RC_INV_CONN
	.comm	_FCNVME_RJT_RC_LOGIC,4,2        ; @FCNVME_RJT_RC_LOGIC
	.comm	_FCNVME_RJT_EXP_NONE,4,2        ; @FCNVME_RJT_EXP_NONE
	.comm	_FCNVME_LS_ACC,4,2              ; @FCNVME_LS_ACC
	.comm	_FCNVME_LS_DISCONNECT,4,2       ; @FCNVME_LS_DISCONNECT
	.no_dead_strip	_nvmet_fc_ls_disconnect
.subsections_via_symbols
