	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcloop_create_local_port
_fcloop_create_local_port:              ## @fcloop_create_local_port
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	_ENOMEM@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_fcloop_parse_options
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	movl	(%r15), %eax
	movq	_LPORT_OPTS@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_6
## %bb.7:
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movups	16(%r15), %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	_fctemplate@GOTPCREL(%rip), %rsi
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_nvme_fc_register_localport
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	-56(%rbp), %rax
	movq	(%rax), %rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	-56(%rbp), %rax
	movq	%rax, 8(%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_INIT_LIST_HEAD
	movq	_fcloop_lock@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	_fcloop_lports@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	xorl	%r12d, %r12d
	subl	(%r15), %r12d
	jmp	LBB0_13
LBB0_3:
	negl	%ebx
	jmp	LBB0_10
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	%r15, %rdi
	callq	_kfree
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%ebx, %ebx
	je	LBB0_12
## %bb.11:
	callq	_kfree
LBB0_12:
	testl	%ebx, %ebx
	cmovnel	%ebx, %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_LPORT_OPTS,4,2                 ## @LPORT_OPTS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_fctemplate,4,2                 ## @fctemplate
	.comm	_fcloop_lock,4,2                ## @fcloop_lock
	.comm	_fcloop_lports,4,2              ## @fcloop_lports
	.no_dead_strip	_fcloop_create_local_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcloop_create_local_port
_fcloop_create_local_port:              ; @fcloop_create_local_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x22, x2
Lloh0:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w23, [x21]
Lloh2:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	ldr	w1, [x24]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x21, x0
	mov	x1, x22
	bl	_fcloop_parse_options
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.3:
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _LPORT_OPTS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _LPORT_OPTS@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_8
; %bb.4:
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	q0, [x21, #16]
	str	q0, [sp, #16]
Lloh7:
	adrp	x1, _fctemplate@GOTPAGE
Lloh8:
	ldr	x1, [x1, _fctemplate@GOTPAGEOFF]
	add	x0, sp, #16
	add	x3, sp, #8
	mov	x2, #0
	bl	_nvme_fc_register_localport
	mov	x22, x0
	cbnz	w0, LBB0_9
; %bb.5:
	ldr	x8, [sp, #8]
	ldr	x8, [x8]
	str	x20, [x8]
	ldr	x8, [sp, #8]
	str	x8, [x20, #8]
	add	x22, x20, #4
	mov	x0, x22
	bl	_INIT_LIST_HEAD
Lloh9:
	adrp	x23, _fcloop_lock@GOTPAGE
Lloh10:
	ldr	x23, [x23, _fcloop_lock@GOTPAGEOFF]
	mov	x0, x23
	bl	_spin_lock_irqsave
Lloh11:
	adrp	x1, _fcloop_lports@GOTPAGE
Lloh12:
	ldr	x1, [x1, _fcloop_lports@GOTPAGEOFF]
	mov	x0, x22
	bl	_list_add_tail
	mov	x0, x23
	bl	_spin_unlock_irqrestore
	mov	w22, #0
	b	LBB0_9
LBB0_6:
	ldr	w8, [x21]
	neg	w0, w8
	b	LBB0_12
LBB0_7:
	neg	w22, w23
	cbnz	w22, LBB0_10
	b	LBB0_11
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_9:
	mov	x0, x21
	bl	_kfree
	cbz	w22, LBB0_11
LBB0_10:
	mov	x0, x20
	bl	_kfree
LBB0_11:
	cmp	w22, #0
	csel	w0, w19, w22, eq
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_LPORT_OPTS,4,2                 ; @LPORT_OPTS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_fctemplate,4,2                 ; @fctemplate
	.comm	_fcloop_lock,4,2                ; @fcloop_lock
	.comm	_fcloop_lports,4,2              ; @fcloop_lports
	.no_dead_strip	_fcloop_create_local_port
.subsections_via_symbols
