	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmet_fc_ls_create_association
_nvmet_fc_ls_create_association:        ## @nvmet_fc_ls_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	%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, %r12
	movq	%rdi, %r15
	movq	24(%rsi), %r14
	movq	32(%rsi), %r13
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	movq	(%r12), %rax
	movq	_FCNVME_LSDESC_CRA_RQST_MINLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movq	_VERR_CR_ASSOC_LEN@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_2:
	movl	28(%r13), %edi
	callq	_be32_to_cpu
	movq	_FCNVME_LSDESC_CRA_RQST_MIN_LISTLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_4
## %bb.3:
	movq	_VERR_CR_ASSOC_RQST_LEN@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_4:
	movq	(%r13), %rbx
	movq	_FCNVME_LSDESC_CREATE_ASSOC_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	cmpq	%rax, %rbx
	jne	LBB0_5
## %bb.6:
	movl	16(%r13), %edi
	callq	_be32_to_cpu
	movq	_FCNVME_LSDESC_CRA_CMD_DESC_MIN_DESCLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	movq	_VERR_CR_ASSOC_CMD_LEN@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_5:
	movq	_VERR_CR_ASSOC_CMD@GOTPCREL(%rip), %rbx
LBB0_14:
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.18:
	movl	(%r15), %edi
	movq	_validation_errors@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_NVME_FC_MAX_LS_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	24(%r13), %edx
	movq	_FCNVME_RJT_RC_LOGIC@GOTPCREL(%rip), %rax
	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(%r12), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_17
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movl	8(%r13), %edi
	callq	_be16_to_cpu
	movq	%rax, 16(%rbx)
	leaq	8(%rbx), %rdi
	movl	$1, %esi
	callq	_atomic_set
	movq	$0, (%rbx)
	movq	16(%r12), %rax
	movl	$48, (%rax)
	movq	_FCNVME_LS_ACC@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	$48, %edi
	callq	_fcnvme_lsdesc_len
	movq	_FCNVME_LS_CREATE_ASSOCIATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_nvmet_fc_format_rsp_hdr
	movq	_FCNVME_LSDESC_ASSOC_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 16(%r14)
	movl	$4, %edi
	callq	_fcnvme_lsdesc_len
	movq	%rax, 8(%r14)
	movl	8(%r12), %edi
	xorl	%esi, %esi
	callq	_nvmet_fc_makeconnid
	movl	%eax, %edi
	callq	_cpu_to_be64
	movl	%eax, (%r14)
	movq	_FCNVME_LSDESC_CONN_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_be32
	movq	%rax, 40(%r14)
	movl	$4, %edi
	callq	_fcnvme_lsdesc_len
	movq	%rax, 32(%r14)
	movl	(%r14), %eax
	movl	%eax, 24(%r14)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	8(%r13), %edi
	movq	_VERR_ERSP_RATIO@GOTPCREL(%rip), %rbx
	testl	%edi, %edi
	je	LBB0_14
## %bb.9:
	callq	_be16_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	12(%r13), %edi
	callq	_be16_to_cpu
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jge	LBB0_14
## %bb.10:
	movq	%r15, %rdi
	callq	_nvmet_fc_alloc_target_assoc
	movl	%eax, 8(%r12)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %ebx
	movl	12(%r13), %edi
	callq	_be16_to_cpu
	movl	%ebx, %edi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_nvmet_fc_alloc_target_queue
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.13:
	movq	_VERR_QUEUE_ALLOC_FAIL@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
LBB0_11:
	movq	_VERR_ASSOC_ALLOC_FAIL@GOTPCREL(%rip), %rbx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_FCNVME_LSDESC_CRA_RQST_MINLEN,8,3 ## @FCNVME_LSDESC_CRA_RQST_MINLEN
	.comm	_VERR_CR_ASSOC_LEN,4,2          ## @VERR_CR_ASSOC_LEN
	.comm	_FCNVME_LSDESC_CRA_RQST_MIN_LISTLEN,8,3 ## @FCNVME_LSDESC_CRA_RQST_MIN_LISTLEN
	.comm	_VERR_CR_ASSOC_RQST_LEN,4,2     ## @VERR_CR_ASSOC_RQST_LEN
	.comm	_FCNVME_LSDESC_CREATE_ASSOC_CMD,4,2 ## @FCNVME_LSDESC_CREATE_ASSOC_CMD
	.comm	_VERR_CR_ASSOC_CMD,4,2          ## @VERR_CR_ASSOC_CMD
	.comm	_FCNVME_LSDESC_CRA_CMD_DESC_MIN_DESCLEN,8,3 ## @FCNVME_LSDESC_CRA_CMD_DESC_MIN_DESCLEN
	.comm	_VERR_CR_ASSOC_CMD_LEN,4,2      ## @VERR_CR_ASSOC_CMD_LEN
	.comm	_VERR_ERSP_RATIO,4,2            ## @VERR_ERSP_RATIO
	.comm	_VERR_ASSOC_ALLOC_FAIL,4,2      ## @VERR_ASSOC_ALLOC_FAIL
	.comm	_VERR_QUEUE_ALLOC_FAIL,4,2      ## @VERR_QUEUE_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Create Association 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_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_CREATE_ASSOCIATION,4,2 ## @FCNVME_LS_CREATE_ASSOCIATION
	.comm	_FCNVME_LSDESC_ASSOC_ID,4,2     ## @FCNVME_LSDESC_ASSOC_ID
	.comm	_FCNVME_LSDESC_CONN_ID,4,2      ## @FCNVME_LSDESC_CONN_ID
	.no_dead_strip	_nvmet_fc_ls_create_association
.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_create_association
_nvmet_fc_ls_create_association:        ; @nvmet_fc_ls_create_association
	.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	x20, x1
	mov	x21, x0
	ldp	x19, x23, [x1, #24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FCNVME_LSDESC_CRA_RQST_MINLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FCNVME_LSDESC_CRA_RQST_MINLEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _VERR_CR_ASSOC_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VERR_CR_ASSOC_LEN@GOTPAGEOFF]
Lloh5:
	ldrsw	x8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_16
LBB0_2:
	ldr	w0, [x23, #28]
	bl	_be32_to_cpu
Lloh6:
	adrp	x8, _FCNVME_LSDESC_CRA_RQST_MIN_LISTLEN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FCNVME_LSDESC_CRA_RQST_MIN_LISTLEN@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _VERR_CR_ASSOC_RQST_LEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VERR_CR_ASSOC_RQST_LEN@GOTPAGEOFF]
Lloh11:
	ldrsw	x8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_16
LBB0_4:
	ldr	x22, [x23]
Lloh12:
	adrp	x8, _FCNVME_LSDESC_CREATE_ASSOC_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FCNVME_LSDESC_CREATE_ASSOC_CMD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	cmp	x22, x0
	b.ne	LBB0_7
; %bb.5:
	ldr	w0, [x23, #16]
	bl	_be32_to_cpu
Lloh15:
	adrp	x8, _FCNVME_LSDESC_CRA_CMD_DESC_MIN_DESCLEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FCNVME_LSDESC_CRA_CMD_DESC_MIN_DESCLEN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_8
; %bb.6:
Lloh18:
	adrp	x8, _VERR_CR_ASSOC_CMD_LEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VERR_CR_ASSOC_CMD_LEN@GOTPAGEOFF]
Lloh20:
	ldrsw	x8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_16
LBB0_7:
Lloh21:
	adrp	x8, _VERR_CR_ASSOC_CMD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _VERR_CR_ASSOC_CMD@GOTPAGEOFF]
Lloh23:
	ldrsw	x8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_16
LBB0_8:
	ldr	w0, [x23, #8]
	cbz	w0, LBB0_13
; %bb.9:
	bl	_be16_to_cpu
	mov	x22, x0
	ldr	w0, [x23, #12]
	bl	_be16_to_cpu
	cmp	x22, x0
	b.ge	LBB0_13
; %bb.10:
	mov	x0, x21
	bl	_nvmet_fc_alloc_target_assoc
	str	w0, [x20, #8]
	cbz	w0, LBB0_15
; %bb.11:
	mov	x22, x0
	ldr	w0, [x23, #12]
	bl	_be16_to_cpu
	mov	x2, x0
	mov	x0, x22
	mov	w1, #0
	bl	_nvmet_fc_alloc_target_queue
	mov	x22, x0
	cbnz	x0, LBB0_17
; %bb.12:
Lloh24:
	adrp	x8, _VERR_QUEUE_ALLOC_FAIL@GOTPAGE
Lloh25:
	ldr	x8, [x8, _VERR_QUEUE_ALLOC_FAIL@GOTPAGEOFF]
Lloh26:
	ldrsw	x8, [x8]
	cbnz	w8, LBB0_14
	b	LBB0_16
LBB0_13:
Lloh27:
	adrp	x8, _VERR_ERSP_RATIO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _VERR_ERSP_RATIO@GOTPAGEOFF]
Lloh29:
	ldrsw	x8, [x8]
	cbz	w8, LBB0_16
LBB0_14:
	ldr	w0, [x21]
Lloh30:
	adrp	x9, _validation_errors@GOTPAGE
Lloh31:
	ldr	x9, [x9, _validation_errors@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	ldr	w2, [x9, x8, lsl #2]
Lloh33:
	adrp	x1, l_.str@PAGE
Lloh34:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh35:
	adrp	x8, _NVME_FC_MAX_LS_BUFFER_SIZE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NVME_FC_MAX_LS_BUFFER_SIZE@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x23, #24]
Lloh38:
	adrp	x8, _FCNVME_RJT_RC_LOGIC@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FCNVME_RJT_RC_LOGIC@GOTPAGEOFF]
Lloh40:
	ldr	w3, [x8]
Lloh41:
	adrp	x8, _FCNVME_RJT_EXP_NONE@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FCNVME_RJT_EXP_NONE@GOTPAGEOFF]
Lloh43:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w5, #0
	bl	_nvmet_fc_format_rjt
	ldr	x8, [x20, #16]
	str	w0, [x8]
	b	LBB0_18
LBB0_15:
Lloh44:
	adrp	x8, _VERR_ASSOC_ALLOC_FAIL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _VERR_ASSOC_ALLOC_FAIL@GOTPAGEOFF]
Lloh46:
	ldrsw	x8, [x8]
	cbnz	w8, LBB0_14
LBB0_16:
	mov	x22, #0
LBB0_17:
	ldr	w0, [x23, #8]
	bl	_be16_to_cpu
	str	x0, [x22, #16]
	add	x0, x22, #8
	mov	w1, #1
	bl	_atomic_set
	str	xzr, [x22]
	ldr	x8, [x20, #16]
	mov	w9, #48
	str	w9, [x8]
Lloh47:
	adrp	x8, _FCNVME_LS_ACC@GOTPAGE
Lloh48:
	ldr	x8, [x8, _FCNVME_LS_ACC@GOTPAGEOFF]
Lloh49:
	ldr	w21, [x8]
	mov	w0, #48
	bl	_fcnvme_lsdesc_len
	mov	x2, x0
Lloh50:
	adrp	x8, _FCNVME_LS_CREATE_ASSOCIATION@GOTPAGE
Lloh51:
	ldr	x8, [x8, _FCNVME_LS_CREATE_ASSOCIATION@GOTPAGEOFF]
Lloh52:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_nvmet_fc_format_rsp_hdr
Lloh53:
	adrp	x8, _FCNVME_LSDESC_ASSOC_ID@GOTPAGE
Lloh54:
	ldr	x8, [x8, _FCNVME_LSDESC_ASSOC_ID@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [x19, #16]
	mov	w0, #4
	bl	_fcnvme_lsdesc_len
	str	x0, [x19, #8]
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_nvmet_fc_makeconnid
	bl	_cpu_to_be64
	str	w0, [x19]
Lloh56:
	adrp	x8, _FCNVME_LSDESC_CONN_ID@GOTPAGE
Lloh57:
	ldr	x8, [x8, _FCNVME_LSDESC_CONN_ID@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_cpu_to_be32
	str	x0, [x19, #40]
	mov	w0, #4
	bl	_fcnvme_lsdesc_len
	str	x0, [x19, #32]
	ldr	w8, [x19]
	str	w8, [x19, #24]
LBB0_18:
	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 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	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_FCNVME_LSDESC_CRA_RQST_MINLEN,8,3 ; @FCNVME_LSDESC_CRA_RQST_MINLEN
	.comm	_VERR_CR_ASSOC_LEN,4,2          ; @VERR_CR_ASSOC_LEN
	.comm	_FCNVME_LSDESC_CRA_RQST_MIN_LISTLEN,8,3 ; @FCNVME_LSDESC_CRA_RQST_MIN_LISTLEN
	.comm	_VERR_CR_ASSOC_RQST_LEN,4,2     ; @VERR_CR_ASSOC_RQST_LEN
	.comm	_FCNVME_LSDESC_CREATE_ASSOC_CMD,4,2 ; @FCNVME_LSDESC_CREATE_ASSOC_CMD
	.comm	_VERR_CR_ASSOC_CMD,4,2          ; @VERR_CR_ASSOC_CMD
	.comm	_FCNVME_LSDESC_CRA_CMD_DESC_MIN_DESCLEN,8,3 ; @FCNVME_LSDESC_CRA_CMD_DESC_MIN_DESCLEN
	.comm	_VERR_CR_ASSOC_CMD_LEN,4,2      ; @VERR_CR_ASSOC_CMD_LEN
	.comm	_VERR_ERSP_RATIO,4,2            ; @VERR_ERSP_RATIO
	.comm	_VERR_ASSOC_ALLOC_FAIL,4,2      ; @VERR_ASSOC_ALLOC_FAIL
	.comm	_VERR_QUEUE_ALLOC_FAIL,4,2      ; @VERR_QUEUE_ALLOC_FAIL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Create Association 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_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_CREATE_ASSOCIATION,4,2 ; @FCNVME_LS_CREATE_ASSOCIATION
	.comm	_FCNVME_LSDESC_ASSOC_ID,4,2     ; @FCNVME_LSDESC_ASSOC_ID
	.comm	_FCNVME_LSDESC_CONN_ID,4,2      ; @FCNVME_LSDESC_CONN_ID
	.no_dead_strip	_nvmet_fc_ls_create_association
.subsections_via_symbols
