	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvmf_host_add
_nvmf_host_add:                         ## @nvmf_host_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_nvmf_hosts_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	callq	___nvmf_host_find
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_kref_get
	jmp	LBB0_5
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$12, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$8, %rdi
	callq	_kref_init
	movl	4(%rbx), %edi
	movq	_NVMF_NQN_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_strlcpy
	movq	_nvmf_hosts@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movq	_nvmf_hosts_mutex@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nvmf_hosts_mutex,4,2           ## @nvmf_hosts_mutex
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_NVMF_NQN_SIZE,4,2              ## @NVMF_NQN_SIZE
	.comm	_nvmf_hosts,4,2                 ## @nvmf_hosts
	.no_dead_strip	_nvmf_host_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvmf_host_add
_nvmf_host_add:                         ; @nvmf_host_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
Lloh0:
	adrp	x0, _nvmf_hosts_mutex@GOTPAGE
Lloh1:
	ldr	x0, [x0, _nvmf_hosts_mutex@GOTPAGEOFF]
	bl	_mutex_lock
	mov	x0, x20
	bl	___nvmf_host_find
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x0, x0, #8
	bl	_kref_get
	b	LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #12
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
	add	x0, x19, #8
	bl	_kref_init
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _NVMF_NQN_SIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NVMF_NQN_SIZE@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_strlcpy
Lloh8:
	adrp	x1, _nvmf_hosts@GOTPAGE
Lloh9:
	ldr	x1, [x1, _nvmf_hosts@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add_tail
LBB0_4:
Lloh10:
	adrp	x0, _nvmf_hosts_mutex@GOTPAGE
Lloh11:
	ldr	x0, [x0, _nvmf_hosts_mutex@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_nvmf_hosts_mutex,4,2           ; @nvmf_hosts_mutex
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_NVMF_NQN_SIZE,4,2              ; @NVMF_NQN_SIZE
	.comm	_nvmf_hosts,4,2                 ; @nvmf_hosts
	.no_dead_strip	_nvmf_host_add
.subsections_via_symbols
