	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function refresh_config
_refresh_config:                        ## @refresh_config
	.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, %rdx
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_zcmd_write_conf_nvlist
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	_CONFIG_BUF_MINSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %esi
	shll	$2, %esi
	callq	_MAX
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_zcmd_alloc_dst_nvlist
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movq	_ZFS_IOC_POOL_TRYIMPORT@GOTPCREL(%rip), %r15
	leaq	-48(%rbp), %r14
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_ENOMEM@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	(%r15), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rcx
	cmpq	%rcx, (%r12)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_zcmd_expand_dst_nvlist
	testq	%rax, %rax
	je	LBB0_3
	jmp	LBB0_7
LBB0_6:
	testl	%eax, %eax
	je	LBB0_10
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_zcmd_free_nvlists
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	-48(%rbp), %r14
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_zcmd_read_dst_nvlist
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_zcmd_free_nvlists
	testq	%rbx, %rbx
	jne	LBB0_8
## %bb.11:
	movq	-56(%rbp), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_CONFIG_BUF_MINSIZE,4,2         ## @CONFIG_BUF_MINSIZE
	.comm	_ZFS_IOC_POOL_TRYIMPORT,4,2     ## @ZFS_IOC_POOL_TRYIMPORT
	.comm	_errno,8,3                      ## @errno
	.comm	_ENOMEM,8,3                     ## @ENOMEM
	.no_dead_strip	_refresh_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function refresh_config
_refresh_config:                        ; @refresh_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x2, x1
	mov	x19, x0
	str	xzr, [sp]
	mov	x1, sp
	bl	_zcmd_write_conf_nvlist
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _CONFIG_BUF_MINSIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CONFIG_BUF_MINSIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w8, [sp]
	lsl	w1, w8, #2
	bl	_MAX
	mov	x2, x0
	mov	x1, sp
	mov	x0, x19
	bl	_zcmd_alloc_dst_nvlist
	cbnz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x20, _ZFS_IOC_POOL_TRYIMPORT@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ZFS_IOC_POOL_TRYIMPORT@GOTPAGEOFF]
Lloh5:
	adrp	x21, _errno@GOTPAGE
Lloh6:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh7:
	adrp	x22, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x22, [x22, _ENOMEM@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w1, [x20]
	mov	x2, sp
	bl	_ioctl
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	w0, #0
	ccmp	x8, x9, #0, ne
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_zcmd_expand_dst_nvlist
	cbz	x0, LBB0_3
	b	LBB0_6
LBB0_5:
	cbz	w0, LBB0_8
LBB0_6:
	mov	x0, sp
	bl	_zcmd_free_nvlists
	mov	x0, #0
LBB0_7:
	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
	add	sp, sp, #64
	ret
LBB0_8:
	mov	x1, sp
	add	x2, sp, #8
	mov	x0, x19
	bl	_zcmd_read_dst_nvlist
	mov	x19, x0
	mov	x0, sp
	bl	_zcmd_free_nvlists
	ldr	x8, [sp, #8]
	cmp	x19, #0
	csel	x0, x8, xzr, eq
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CONFIG_BUF_MINSIZE,4,2         ; @CONFIG_BUF_MINSIZE
	.comm	_ZFS_IOC_POOL_TRYIMPORT,4,2     ; @ZFS_IOC_POOL_TRYIMPORT
	.comm	_errno,8,3                      ; @errno
	.comm	_ENOMEM,8,3                     ; @ENOMEM
	.no_dead_strip	_refresh_config
.subsections_via_symbols
