	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function import_pool
_import_pool:                           ## @import_pool
	.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	$24, %rsp
	.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, %rbx
	movq	_FREAD@GOTPCREL(%rip), %rax
	movl	$0, %edi
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	_FWRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
LBB0_2:
	orl	(%rax), %edi
	callq	_kernel_init
	xorl	%eax, %eax
	callq	_libzfs_init
	movq	_g_zfs@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_ASSERT
	movq	_DMU_OST_ZFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_space_delta_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dmu_objset_register_type
	movq	_g_readonly@GOTPCREL(%rip), %rax
	movq	%r12, (%rax)
	testq	%r12, %r12
	je	LBB0_5
## %bb.3:
	movq	_FTAG@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_spa_open
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_g_importargs@GOTPCREL(%rip), %r13
	movq	%rax, 16(%r13)
	movq	%r12, 8(%r13)
	movq	%rbx, %r15
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, %rbx
	movq	_g_pool@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_strpbrk
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movb	$0, (%rax)
	movq	(%r14), %rbx
LBB0_7:
	movq	%r15, %r14
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movq	%rbx, (%r13)
	movq	%rax, %rbx
	movq	(%rax), %rdi
	movq	%r13, %rsi
	callq	_zpool_search_import
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_nvlist_empty
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	cmpq	$0, 8(%r13)
	jne	LBB0_12
## %bb.9:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movq	(%rbx), %rdi
	movq	%r13, %rsi
	callq	_zpool_search_import
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_spa_open
	testq	%rax, %rax
	jne	LBB0_12
LBB0_11:
	movq	-56(%rbp), %rdi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_pool@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rdx
	movq	%rcx, %r8
	xorl	%eax, %eax
	callq	_fatal
LBB0_12:
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_g_pool@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.2(%rip), %rdx
	xorl	%edi, %edi
	xorl	%eax, %eax
	callq	_fatal
LBB0_13:
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_nvlist_next_nvpair
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_nvpair_name
	movq	%rax, %r14
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_nvpair_value_nvlist
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	$0, -48(%rbp)
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movq	_NV_UNIQUE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_nvlist_alloc
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-48(%rbp), %rbx
	movq	_ZPOOL_PROP_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_zpool_prop_to_name
	movq	%rbx, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_nvlist_add_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-48(%rbp), %r13
LBB0_15:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_zfeature_checks_disable@GOTPCREL(%rip), %rbx
	movq	%rax, (%rbx)
	movq	-64(%rbp), %rsi
	movq	_ZFS_IMPORT_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_spa_import
	movq	_B_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rbx)
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_18
## %bb.17:
	movq	_FTAG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rdx
	xorl	%edi, %edi
	movl	%ebx, %esi
	movq	%r14, %rcx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_fatal
	jmp	LBB0_18
LBB0_4:
	movq	-56(%rbp), %rdi
	movl	(%r14), %esi
	callq	_spa_close
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FREAD,4,2                      ## @FREAD
	.comm	_FWRITE,4,2                     ## @FWRITE
	.comm	_g_zfs,8,3                      ## @g_zfs
	.comm	_DMU_OST_ZFS,4,2                ## @DMU_OST_ZFS
	.comm	_space_delta_cb,4,2             ## @space_delta_cb
	.comm	_g_readonly,8,3                 ## @g_readonly
	.comm	_FTAG,4,2                       ## @FTAG
	.comm	_B_TRUE,8,3                     ## @B_TRUE
	.comm	_g_importargs,24,3              ## @g_importargs
	.comm	_g_pool,8,3                     ## @g_pool
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/@"

L_.str.1:                               ## @.str.1
	.asciz	"cannot import '%s': pool is active; run \"zpool export %s\" first\n"

L_.str.2:                               ## @.str.2
	.asciz	"cannot import '%s': no such pool available\n"

	.comm	_NV_UNIQUE_NAME,4,2             ## @NV_UNIQUE_NAME
	.comm	_ZPOOL_PROP_READONLY,4,2        ## @ZPOOL_PROP_READONLY
	.comm	_zfeature_checks_disable,8,3    ## @zfeature_checks_disable
	.comm	_ZFS_IMPORT_NORMAL,4,2          ## @ZFS_IMPORT_NORMAL
	.comm	_B_FALSE,8,3                    ## @B_FALSE
	.comm	_EEXIST,4,2                     ## @EEXIST
L_.str.3:                               ## @.str.3
	.asciz	"can't import '%s': %s"

	.no_dead_strip	_import_pool
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function import_pool
_import_pool:                           ; @import_pool
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FREAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FREAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FWRITE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FWRITE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x1, #0
	csel	w9, w9, wzr, eq
	orr	w0, w9, w8
	bl	_kernel_init
	bl	_libzfs_init
Lloh6:
	adrp	x25, _g_zfs@GOTPAGE
Lloh7:
	ldr	x25, [x25, _g_zfs@GOTPAGEOFF]
	str	x0, [x25]
	cmp	x0, #0
	cset	w0, ne
	bl	_ASSERT
Lloh8:
	adrp	x8, _DMU_OST_ZFS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DMU_OST_ZFS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _space_delta_cb@GOTPAGE
Lloh12:
	ldr	x8, [x8, _space_delta_cb@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_dmu_objset_register_type
Lloh14:
	adrp	x8, _g_readonly@GOTPAGE
Lloh15:
	ldr	x8, [x8, _g_readonly@GOTPAGEOFF]
Lloh16:
	str	x19, [x8]
Lloh17:
	adrp	x23, _FTAG@GOTPAGE
Lloh18:
	ldr	x23, [x23, _FTAG@GOTPAGEOFF]
	cbz	x19, LBB0_2
; %bb.1:
	ldr	w2, [x23]
	add	x1, sp, #16
	mov	x0, x20
	bl	_spa_open
	cbz	x0, LBB0_16
LBB0_2:
Lloh19:
	adrp	x24, _B_TRUE@GOTPAGE
Lloh20:
	ldr	x24, [x24, _B_TRUE@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh21:
	adrp	x22, _g_importargs@GOTPAGE
Lloh22:
	ldr	x22, [x22, _g_importargs@GOTPAGEOFF]
	stp	x19, x8, [x22, #8]
	mov	x0, x20
	bl	_strdup
	mov	x21, x0
Lloh23:
	adrp	x26, _g_pool@GOTPAGE
Lloh24:
	ldr	x26, [x26, _g_pool@GOTPAGEOFF]
	str	x0, [x26]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strpbrk
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x0]
	ldr	x21, [x26]
LBB0_4:
	str	x21, [x22]
	ldr	x0, [x25]
	mov	x1, x22
	bl	_zpool_search_import
	mov	x21, x0
	bl	_nvlist_empty
	cbz	x0, LBB0_10
; %bb.5:
	ldr	x8, [x22, #8]
	cbnz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x24]
	str	x8, [x22, #8]
	ldr	x0, [x25]
	mov	x1, x22
	bl	_zpool_search_import
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w2, [x23]
	add	x1, sp, #16
	mov	x0, x20
	bl	_spa_open
	cbnz	x0, LBB0_9
LBB0_8:
	ldr	x0, [sp, #16]
	ldr	w1, [x23]
	ldr	x3, [x26]
	str	x3, [sp]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_9:
	ldr	w1, [x23]
	ldr	x3, [x26]
Lloh29:
	adrp	x2, l_.str.2@PAGE
Lloh30:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, #0
	bl	_fatal
LBB0_10:
	mov	x0, x21
	mov	x1, #0
	bl	_nvlist_next_nvpair
	mov	x21, x0
	bl	_nvpair_name
	mov	x20, x0
	add	x1, sp, #24
	mov	x0, x21
	bl	_nvpair_value_nvlist
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	str	xzr, [sp, #8]
	cbz	x19, LBB0_12
; %bb.11:
Lloh31:
	adrp	x8, _NV_UNIQUE_NAME@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NV_UNIQUE_NAME@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_nvlist_alloc
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x19, [sp, #8]
Lloh34:
	adrp	x8, _ZPOOL_PROP_READONLY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ZPOOL_PROP_READONLY@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_zpool_prop_to_name
	mov	x1, x0
	mov	x0, x19
	mov	w2, #1
	bl	_nvlist_add_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x2, [sp, #8]
	b	LBB0_13
LBB0_12:
	mov	x2, #0
LBB0_13:
Lloh37:
	adrp	x19, _zfeature_checks_disable@GOTPAGE
Lloh38:
	ldr	x19, [x19, _zfeature_checks_disable@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x19]
	ldr	x1, [sp, #24]
Lloh39:
	adrp	x8, _ZFS_IMPORT_NORMAL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ZFS_IMPORT_NORMAL@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	mov	x0, x20
	bl	_spa_import
Lloh42:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh43:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh44:
	ldr	x8, [x8]
	str	x8, [x19]
	cbz	w0, LBB0_17
; %bb.14:
Lloh45:
	adrp	x8, _EEXIST@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	w19, [x23]
	bl	_strerror
	str	x0, [sp]
Lloh48:
	adrp	x2, l_.str.3@PAGE
Lloh49:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, #0
	mov	x1, x19
	mov	x3, x20
	bl	_fatal
	b	LBB0_17
LBB0_16:
	ldr	x0, [sp, #16]
	ldr	w1, [x23]
	bl	_spa_close
LBB0_17:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_FREAD,4,2                      ; @FREAD
	.comm	_FWRITE,4,2                     ; @FWRITE
	.comm	_g_zfs,8,3                      ; @g_zfs
	.comm	_DMU_OST_ZFS,4,2                ; @DMU_OST_ZFS
	.comm	_space_delta_cb,4,2             ; @space_delta_cb
	.comm	_g_readonly,8,3                 ; @g_readonly
	.comm	_FTAG,4,2                       ; @FTAG
	.comm	_B_TRUE,8,3                     ; @B_TRUE
	.comm	_g_importargs,24,3              ; @g_importargs
	.comm	_g_pool,8,3                     ; @g_pool
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/@"

l_.str.1:                               ; @.str.1
	.asciz	"cannot import '%s': pool is active; run \"zpool export %s\" first\n"

l_.str.2:                               ; @.str.2
	.asciz	"cannot import '%s': no such pool available\n"

	.comm	_NV_UNIQUE_NAME,4,2             ; @NV_UNIQUE_NAME
	.comm	_ZPOOL_PROP_READONLY,4,2        ; @ZPOOL_PROP_READONLY
	.comm	_zfeature_checks_disable,8,3    ; @zfeature_checks_disable
	.comm	_ZFS_IMPORT_NORMAL,4,2          ; @ZFS_IMPORT_NORMAL
	.comm	_B_FALSE,8,3                    ; @B_FALSE
	.comm	_EEXIST,4,2                     ; @EEXIST
l_.str.3:                               ; @.str.3
	.asciz	"can't import '%s': %s"

	.no_dead_strip	_import_pool
.subsections_via_symbols
