	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zpool_collect_leaves
_zpool_collect_leaves:                  ## @zpool_collect_leaves
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -40(%rbp)
	movq	_ZPOOL_CONFIG_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	leaq	-40(%rbp), %rcx
	movq	%r15, %rdi
	callq	_nvlist_lookup_nvlist_array
	cmpq	$0, -40(%rbp)
	je	LBB0_5
## %bb.1:
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_zpool_collect_leaves
	incq	%rbx
	cmpq	-40(%rbp), %rbx
	jl	LBB0_3
	jmp	LBB0_4
LBB0_5:
	movq	_g_zfs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	_zpool_vdev_name
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_fnvlist_add_boolean
	movq	%rbx, %rdi
	callq	_free
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ## @ZPOOL_CONFIG_CHILDREN
	.comm	_g_zfs,4,2                      ## @g_zfs
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.no_dead_strip	_zpool_collect_leaves
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zpool_collect_leaves
_zpool_collect_leaves:                  ; @zpool_collect_leaves
	.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	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	add	x3, sp, #8
	mov	x0, x21
	bl	_nvlist_lookup_nvlist_array
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_4
; %bb.1:
	cmp	x8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp]
	ldr	x1, [x8, x21, lsl #3]
	mov	x0, x20
	mov	x2, x19
	bl	_zpool_collect_leaves
	add	x21, x21, #1
	ldr	x8, [sp, #8]
	cmp	x21, x8
	b.lt	LBB0_3
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _g_zfs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _g_zfs@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, x20
	mov	x2, x21
	bl	_zpool_vdev_name
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_fnvlist_add_boolean
	mov	x0, x20
	bl	_free
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ; @ZPOOL_CONFIG_CHILDREN
	.comm	_g_zfs,4,2                      ; @g_zfs
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.no_dead_strip	_zpool_collect_leaves
.subsections_via_symbols
