	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_find_vdev                ## -- Begin function zpool_find_vdev
	.p2align	4, 0x90
_zpool_find_vdev:                       ## @zpool_find_vdev
	.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
	movq	%r8, %r13
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_NV_UNIQUE_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KM_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	callq	_nvlist_alloc
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	leaq	-88(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$10, %edx
	callq	_strtoull
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	-88(%rbp), %rcx
	cmpb	$0, (%rcx)
	je	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	callq	_zpool_vdev_is_interior
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_TYPE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	cmpb	$47, (%rbx)
	jne	LBB0_6
## %bb.7:
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_PATH@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %esi
	movq	%rbx, %rdx
LBB0_9:
	callq	_nvlist_add_string
	jmp	LBB0_10
LBB0_2:
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_GUID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdx
	callq	_nvlist_add_uint64
LBB0_10:
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_ZPOOL_CONFIG_VDEV_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_nvlist_lookup_nvlist
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, (%r15)
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	testq	%r13, %r13
	je	LBB0_12
## %bb.11:
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_12:
	movq	-80(%rbp), %rdi
	movq	-56(%rbp), %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r13, %r8
	callq	_vdev_to_nvlist_iter
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi
	callq	_nvlist_free
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movq	%rbx, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	__PATH_DEV@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%rbx, %r8
	callq	_snprintf
	movq	-56(%rbp), %rdi
	movq	_ZPOOL_CONFIG_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_NV_UNIQUE_NAME,4,2             ## @NV_UNIQUE_NAME
	.comm	_KM_SLEEP,4,2                   ## @KM_SLEEP
	.comm	_ZPOOL_CONFIG_GUID,4,2          ## @ZPOOL_CONFIG_GUID
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ## @ZPOOL_CONFIG_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%s"

	.comm	__PATH_DEV,8,3                  ## @_PATH_DEV
	.comm	_ZPOOL_CONFIG_PATH,4,2          ## @ZPOOL_CONFIG_PATH
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ## @ZPOOL_CONFIG_VDEV_TREE
	.comm	_B_FALSE,4,2                    ## @B_FALSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_find_vdev                ; -- Begin function zpool_find_vdev
	.p2align	2
_zpool_find_vdev:                       ; @zpool_find_vdev
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x9, x25
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x25, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
Lloh8:
	adrp	x8, _NV_UNIQUE_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NV_UNIQUE_NAME@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _KM_SLEEP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _KM_SLEEP@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	sub	x0, x29, #96
	bl	_nvlist_alloc
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	sub	x1, x29, #80
	mov	x0, x23
	mov	w2, #10
	bl	_strtoull
	cbz	x0, LBB0_2
; %bb.1:
	ldur	x8, [x29, #-80]
	ldrb	w8, [x8]
	cbz	w8, LBB0_8
LBB0_2:
	mov	x0, x23
	bl	_zpool_vdev_is_interior
	cbz	x0, LBB0_4
; %bb.3:
	ldur	x0, [x29, #-96]
Lloh14:
	adrp	x8, _ZPOOL_CONFIG_TYPE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ZPOOL_CONFIG_TYPE@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
	ldrb	w8, [x23]
	cmp	w8, #47
	b.ne	LBB0_13
; %bb.5:
	ldur	x0, [x29, #-96]
Lloh16:
	adrp	x8, _ZPOOL_CONFIG_PATH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZPOOL_CONFIG_PATH@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x2, x23
LBB0_7:
	bl	_nvlist_add_string
	b	LBB0_9
LBB0_8:
	mov	x2, x0
	ldur	x0, [x29, #-96]
Lloh18:
	adrp	x8, _ZPOOL_CONFIG_GUID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ZPOOL_CONFIG_GUID@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_nvlist_add_uint64
LBB0_9:
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	w0, [x22]
Lloh21:
	adrp	x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	sub	x2, x29, #88
	bl	_nvlist_lookup_nvlist
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
Lloh24:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
	ldr	w9, [x8]
	str	w9, [x21]
	ldr	w9, [x8]
	str	w9, [x20]
	cbz	x19, LBB0_11
; %bb.10:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_11:
	ldp	x1, x0, [x29, #-96]
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_vdev_to_nvlist_iter
	mov	x19, x0
	ldur	x0, [x29, #-96]
	bl	_nvlist_free
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.12:
	mov	x0, x19
	sub	sp, x29, #64
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_13:
Lloh29:
	adrp	x8, __PATH_DEV@GOTPAGE
Lloh30:
	ldr	x8, [x8, __PATH_DEV@GOTPAGEOFF]
Lloh31:
	ldr	x3, [x8]
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	x1, x25
	mov	x4, x23
	bl	_snprintf
	ldur	x0, [x29, #-96]
Lloh34:
	adrp	x8, _ZPOOL_CONFIG_PATH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ZPOOL_CONFIG_PATH@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x2, x24
	b	LBB0_7
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_NV_UNIQUE_NAME,4,2             ; @NV_UNIQUE_NAME
	.comm	_KM_SLEEP,4,2                   ; @KM_SLEEP
	.comm	_ZPOOL_CONFIG_GUID,4,2          ; @ZPOOL_CONFIG_GUID
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ; @ZPOOL_CONFIG_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%s"

	.comm	__PATH_DEV,8,3                  ; @_PATH_DEV
	.comm	_ZPOOL_CONFIG_PATH,4,2          ; @ZPOOL_CONFIG_PATH
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ; @ZPOOL_CONFIG_VDEV_TREE
	.comm	_B_FALSE,4,2                    ; @B_FALSE
.subsections_via_symbols
