	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function import_checkpointed_state
_import_checkpointed_state:             ## @import_checkpointed_state
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	%rsi, -56(%rbp)
	movl	$47, %esi
	callq	_strchr
	movq	%rax, %r15
	movq	%r12, %r13
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rsi
	subq	%r12, %rsi
	movq	%r12, %rdi
	callq	_strndup
	movq	%rax, %r13
LBB0_2:
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.3:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_spa_get_stats
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_fatal
LBB0_5:
	movq	_BOGUS_SUFFIX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r13, %rdx
	callq	_asprintf
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_POOL_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdx
	callq	_fnvlist_add_string
	movq	-48(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movq	_ZFS_IMPORT_MISSING_LOG@GOTPCREL(%rip), %rax
	movq	_ZFS_IMPORT_CHECKPOINT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_spa_import
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	-48(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %edx
	callq	_fatal
LBB0_7:
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	testq	%r15, %r15
	je	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_asprintf
LBB0_10:
	cmpq	%r12, %r13
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_free
LBB0_12:
	movq	-48(%rbp), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Tried to read config of pool \"%s\" but spa_get_stats() failed with error %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s%s"

	.comm	_BOGUS_SUFFIX,8,3               ## @BOGUS_SUFFIX
	.comm	_ZPOOL_CONFIG_POOL_NAME,4,2     ## @ZPOOL_CONFIG_POOL_NAME
	.comm	_ZFS_IMPORT_MISSING_LOG,4,2     ## @ZFS_IMPORT_MISSING_LOG
	.comm	_ZFS_IMPORT_CHECKPOINT,4,2      ## @ZFS_IMPORT_CHECKPOINT
L_.str.2:                               ## @.str.2
	.asciz	"Tried to import pool \"%s\" but spa_import() failed with error %d\n"

	.no_dead_strip	_import_checkpointed_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function import_checkpointed_state
_import_checkpointed_state:             ; @import_checkpointed_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x23, x1
	mov	x19, x0
	str	x1, [sp, #8]
	mov	w1, #47
	bl	_strchr
	mov	x22, x0
	mov	x21, x19
	cbz	x0, LBB0_2
; %bb.1:
	sub	x1, x22, x19
	mov	x0, x19
	bl	_strndup
	mov	x21, x0
LBB0_2:
	cbnz	x23, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	mov	w3, #0
	bl	_spa_get_stats
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_fatal
LBB0_5:
Lloh2:
	adrp	x8, _BOGUS_SUFFIX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BOGUS_SUFFIX@GOTPAGEOFF]
Lloh4:
	ldr	x3, [x8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, sp
	mov	x2, x21
	bl	_asprintf
	ldp	x2, x0, [sp]
Lloh7:
	adrp	x8, _ZPOOL_CONFIG_POOL_NAME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ZPOOL_CONFIG_POOL_NAME@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_fnvlist_add_string
	ldp	x0, x1, [sp]
Lloh10:
	adrp	x8, _ZFS_IMPORT_MISSING_LOG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ZFS_IMPORT_MISSING_LOG@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _ZFS_IMPORT_CHECKPOINT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ZFS_IMPORT_CHECKPOINT@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x2, #0
	bl	_spa_import
	cbz	w0, LBB0_7
; %bb.6:
	mov	x2, x0
	ldr	x1, [sp]
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_fatal
LBB0_7:
	cbz	x20, LBB0_10
; %bb.8:
	cbz	x22, LBB0_10
; %bb.9:
	ldr	x2, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x22
	bl	_asprintf
LBB0_10:
	cmp	x21, x19
	b.eq	LBB0_12
; %bb.11:
	mov	x0, x21
	bl	_free
LBB0_12:
	ldr	x0, [sp]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Tried to read config of pool \"%s\" but spa_get_stats() failed with error %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s%s"

	.comm	_BOGUS_SUFFIX,8,3               ; @BOGUS_SUFFIX
	.comm	_ZPOOL_CONFIG_POOL_NAME,4,2     ; @ZPOOL_CONFIG_POOL_NAME
	.comm	_ZFS_IMPORT_MISSING_LOG,4,2     ; @ZFS_IMPORT_MISSING_LOG
	.comm	_ZFS_IMPORT_CHECKPOINT,4,2      ; @ZFS_IMPORT_CHECKPOINT
l_.str.2:                               ; @.str.2
	.asciz	"Tried to import pool \"%s\" but spa_import() failed with error %d\n"

	.no_dead_strip	_import_checkpointed_state
.subsections_via_symbols
