	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_vdev_root
_make_vdev_root:                        ## @make_vdev_root
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	32(%rbp), %r15d
	xorl	%edi, %edi
	testl	%r15d, %r15d
	setg	%dil
	callq	_ASSERT
	leal	(,%r15,8), %edi
	movq	_UMEM_NOFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%edi, -52(%rbp)                 ## 4-byte Spill
	callq	_umem_alloc
	movq	%rax, %r12
	movl	%r15d, %r14d
	testl	%r15d, %r15d
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	24(%rbp), %eax
	movl	%eax, (%rsp)
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movl	16(%rbp), %r9d
	callq	_make_vdev_mirror
	movq	%rax, (%r12,%r15,8)
	movq	_ZPOOL_CONFIG_IS_LOG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	callq	_nvlist_add_uint64
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_2
LBB0_3:
	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), %rdi
	movq	_ZPOOL_CONFIG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VDEV_TYPE_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_nvlist_add_string
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	movq	-48(%rbp), %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	jne	LBB0_5
## %bb.4:
	movq	_ZPOOL_CONFIG_CHILDREN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_5:
	movq	%r12, %rdx
	movl	32(%rbp), %ebx
	movl	%ebx, %ecx
	callq	_nvlist_add_nvlist_array
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_VERIFY
	testl	%ebx, %ebx
	jle	LBB0_8
## %bb.6:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx,8), %rdi
	callq	_nvlist_free
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_7
LBB0_8:
	movq	%r12, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_umem_free
	movq	-48(%rbp), %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UMEM_NOFAIL,4,2                ## @UMEM_NOFAIL
	.comm	_ZPOOL_CONFIG_IS_LOG,4,2        ## @ZPOOL_CONFIG_IS_LOG
	.comm	_NV_UNIQUE_NAME,4,2             ## @NV_UNIQUE_NAME
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ## @ZPOOL_CONFIG_TYPE
	.comm	_VDEV_TYPE_ROOT,4,2             ## @VDEV_TYPE_ROOT
	.comm	_ZPOOL_CONFIG_CHILDREN,8,3      ## @ZPOOL_CONFIG_CHILDREN
	.no_dead_strip	_make_vdev_root
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_vdev_root
_make_vdev_root:                        ; @make_vdev_root
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x7
	mov	x24, x6
	mov	x25, x5
	mov	x26, x4
	mov	x27, x3
	mov	x28, x2
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	mov	x20, x0
	ldr	w21, [x29, #16]
	cmp	w21, #0
	cset	w0, gt
	bl	_ASSERT
	lsl	w0, w21, #3
Lloh0:
	adrp	x8, _UMEM_NOFAIL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UMEM_NOFAIL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	str	w0, [sp, #4]                    ; 4-byte Folded Spill
	bl	_umem_alloc
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x21
	ldr	x22, [sp, #8]                   ; 8-byte Folded Reload
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	mov	x2, x28
	mov	x3, x27
	mov	x4, x26
	mov	x5, x24
	mov	x6, x23
	bl	_make_vdev_mirror
	str	x0, [x22], #8
Lloh3:
	adrp	x8, _ZPOOL_CONFIG_IS_LOG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZPOOL_CONFIG_IS_LOG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, x25
	bl	_nvlist_add_uint64
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	subs	x19, x19, #1
	b.ne	LBB0_2
LBB0_3:
Lloh6:
	adrp	x8, _NV_UNIQUE_NAME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NV_UNIQUE_NAME@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #24
	mov	w2, #0
	bl	_nvlist_alloc
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	ldr	x0, [sp, #24]
Lloh9:
	adrp	x8, _ZPOOL_CONFIG_TYPE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZPOOL_CONFIG_TYPE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _VDEV_TYPE_ROOT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VDEV_TYPE_ROOT@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_nvlist_add_string
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	ldp	x9, x0, [sp, #16]               ; 8-byte Folded Reload
Lloh15:
	adrp	x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x9, #0
	csel	x1, x8, x9, eq
	ldr	x20, [sp, #8]                   ; 8-byte Folded Reload
	mov	x2, x20
	mov	x3, x21
	bl	_nvlist_add_nvlist_array
	cmp	x0, #0
	cset	w0, eq
	bl	_VERIFY
	cmp	w21, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x19, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #8
	bl	_nvlist_free
	subs	x21, x21, #1
	b.ne	LBB0_5
LBB0_6:
	mov	x0, x20
	ldr	w1, [sp, #4]                    ; 4-byte Folded Reload
	bl	_umem_free
	ldr	x0, [sp, #24]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_UMEM_NOFAIL,4,2                ; @UMEM_NOFAIL
	.comm	_ZPOOL_CONFIG_IS_LOG,4,2        ; @ZPOOL_CONFIG_IS_LOG
	.comm	_NV_UNIQUE_NAME,4,2             ; @NV_UNIQUE_NAME
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ; @ZPOOL_CONFIG_TYPE
	.comm	_VDEV_TYPE_ROOT,4,2             ; @VDEV_TYPE_ROOT
	.comm	_ZPOOL_CONFIG_CHILDREN,8,3      ; @ZPOOL_CONFIG_CHILDREN
	.no_dead_strip	_make_vdev_root
.subsections_via_symbols
