	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdev_get_physpaths
_vdev_get_physpaths:                    ## @vdev_get_physpaths
	.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
	movl	%r8d, %r13d
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	_ZPOOL_CONFIG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	callq	_nvlist_lookup_string
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:
	movq	_EZFS_INVALCONFIG@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-48(%rbp), %rdi
	movq	_VDEV_TYPE_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	-48(%rbp), %rdi
	movq	_VDEV_TYPE_MIRROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:
	movq	-48(%rbp), %rdi
	movq	_VDEV_TYPE_RAIDZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	-48(%rbp), %rdi
	movq	_VDEV_TYPE_REPLACING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	-48(%rbp), %rdi
	movq	_VDEV_TYPE_SPARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.9:
	movl	$1, %r13d
LBB0_10:
	movq	_ZPOOL_CONFIG_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_nvlist_lookup_nvlist_array
	testq	%rax, %rax
	jne	LBB0_1
## %bb.16:
	cmpl	$0, -52(%rbp)
	jle	LBB0_20
## %bb.17:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%r13d, %r8d
	callq	_vdev_get_physpaths
	movq	_EZFS_NOSPC@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_3
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=1
	incq	%rbx
	movslq	-52(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_18
	jmp	LBB0_20
LBB0_12:
	testl	%r13d, %r13d
	je	LBB0_14
## %bb.13:
	movq	$0, -64(%rbp)
	movq	_ZPOOL_CONFIG_IS_SPARE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nvlist_lookup_uint64
	cmpq	$0, -64(%rbp)
	je	LBB0_1
LBB0_14:
	movq	%rbx, %rdi
	callq	_vdev_online
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_vdev_get_one_physpath
	testl	%eax, %eax
	jne	LBB0_3
LBB0_20:
	movq	_EZFS_POOL_INVALARG@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ## @ZPOOL_CONFIG_TYPE
	.comm	_EZFS_INVALCONFIG,4,2           ## @EZFS_INVALCONFIG
	.comm	_VDEV_TYPE_DISK,4,2             ## @VDEV_TYPE_DISK
	.comm	_ZPOOL_CONFIG_IS_SPARE,4,2      ## @ZPOOL_CONFIG_IS_SPARE
	.comm	_VDEV_TYPE_MIRROR,4,2           ## @VDEV_TYPE_MIRROR
	.comm	_VDEV_TYPE_RAIDZ,4,2            ## @VDEV_TYPE_RAIDZ
	.comm	_VDEV_TYPE_REPLACING,4,2        ## @VDEV_TYPE_REPLACING
	.comm	_VDEV_TYPE_SPARE,4,2            ## @VDEV_TYPE_SPARE
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ## @ZPOOL_CONFIG_CHILDREN
	.comm	_EZFS_NOSPC,4,2                 ## @EZFS_NOSPC
	.comm	_EZFS_POOL_INVALARG,4,2         ## @EZFS_POOL_INVALARG
	.no_dead_strip	_vdev_get_physpaths
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdev_get_physpaths
_vdev_get_physpaths:                    ; @vdev_get_physpaths
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x22, x4
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _ZPOOL_CONFIG_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZPOOL_CONFIG_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_nvlist_lookup_string
	cbz	x0, LBB0_4
LBB0_1:
Lloh3:
	adrp	x8, _EZFS_INVALCONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EZFS_INVALCONFIG@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_4:
	ldr	x0, [sp, #24]
Lloh5:
	adrp	x8, _VDEV_TYPE_DISK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VDEV_TYPE_DISK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_15
; %bb.5:
	ldr	x0, [sp, #24]
Lloh8:
	adrp	x8, _VDEV_TYPE_MIRROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VDEV_TYPE_MIRROR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.6:
	ldr	x0, [sp, #24]
Lloh11:
	adrp	x8, _VDEV_TYPE_RAIDZ@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VDEV_TYPE_RAIDZ@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.7:
	ldr	x0, [sp, #24]
Lloh14:
	adrp	x8, _VDEV_TYPE_REPLACING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VDEV_TYPE_REPLACING@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [sp, #24]
Lloh17:
	adrp	x8, _VDEV_TYPE_SPARE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VDEV_TYPE_SPARE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_strcmp
	cbnz	x0, LBB0_19
; %bb.9:
	mov	w22, #1
LBB0_10:
Lloh20:
	adrp	x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x3, sp, #12
	mov	x0, x23
	bl	_nvlist_lookup_nvlist_array
	cbnz	x0, LBB0_1
; %bb.11:
	ldr	w8, [sp, #12]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.12:
	mov	x23, #0
Lloh23:
	adrp	x24, _EZFS_NOSPC@GOTPAGE
Lloh24:
	ldr	x24, [x24, _EZFS_NOSPC@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #16]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x22
	bl	_vdev_get_physpaths
	ldr	w8, [x24]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [sp, #12]
	cmp	x23, x8
	b.lt	LBB0_13
	b	LBB0_19
LBB0_15:
	cbz	w22, LBB0_17
; %bb.16:
	str	xzr, [sp, #16]
Lloh25:
	adrp	x8, _ZPOOL_CONFIG_IS_SPARE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ZPOOL_CONFIG_IS_SPARE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x23
	bl	_nvlist_lookup_uint64
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_1
LBB0_17:
	mov	x0, x23
	bl	_vdev_online
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_vdev_get_one_physpath
	cbnz	w0, LBB0_3
LBB0_19:
Lloh28:
	adrp	x8, _EZFS_POOL_INVALARG@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EZFS_POOL_INVALARG@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ; @ZPOOL_CONFIG_TYPE
	.comm	_EZFS_INVALCONFIG,4,2           ; @EZFS_INVALCONFIG
	.comm	_VDEV_TYPE_DISK,4,2             ; @VDEV_TYPE_DISK
	.comm	_ZPOOL_CONFIG_IS_SPARE,4,2      ; @ZPOOL_CONFIG_IS_SPARE
	.comm	_VDEV_TYPE_MIRROR,4,2           ; @VDEV_TYPE_MIRROR
	.comm	_VDEV_TYPE_RAIDZ,4,2            ; @VDEV_TYPE_RAIDZ
	.comm	_VDEV_TYPE_REPLACING,4,2        ; @VDEV_TYPE_REPLACING
	.comm	_VDEV_TYPE_SPARE,4,2            ; @VDEV_TYPE_SPARE
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ; @ZPOOL_CONFIG_CHILDREN
	.comm	_EZFS_NOSPC,4,2                 ; @EZFS_NOSPC
	.comm	_EZFS_POOL_INVALARG,4,2         ; @EZFS_POOL_INVALARG
	.no_dead_strip	_vdev_get_physpaths
.subsections_via_symbols
