	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function is_device_in_use
_is_device_in_use:                      ## @is_device_in_use
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsp, -112(%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), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -88(%rbp)                 ## 8-byte Spill
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ZPOOL_CONFIG_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nvlist_lookup_string
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	_ZPOOL_CONFIG_CHILDREN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_nvlist_lookup_nvlist_array
	testq	%rax, %rax
	je	LBB0_1
## %bb.16:
	movq	_ZPOOL_CONFIG_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_nvlist_lookup_string
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	testl	%r12d, %r12d
	je	LBB0_19
## %bb.17:
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strlcpy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_is_spare
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_24
LBB0_19:
	movq	-104(%rbp), %rdi
	movq	_VDEV_TYPE_DISK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	-104(%rbp), %rdi
	movq	_VDEV_TYPE_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_23
## %bb.22:
	movq	-96(%rbp), %rdi
	movl	%r13d, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_check_file
	jmp	LBB0_23
LBB0_1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	cmpq	$0, -56(%rbp)
	je	LBB0_6
## %bb.2:
	xorl	%r13d, %r13d
	movq	_B_TRUE@GOTPCREL(%rip), %rbx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	-56(%rbp), %r13
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movq	(%rax,%r13,8), %rsi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_is_device_in_use
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %r14d
	jmp	LBB0_5
LBB0_6:
	movq	_ZPOOL_CONFIG_SPARES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvlist_lookup_nvlist_array
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:
	cmpq	$0, -56(%rbp)
	je	LBB0_10
## %bb.8:
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movl	-64(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%r15, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_is_device_in_use
	testl	%eax, %eax
	movq	_B_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	cmovnel	%r8d, %r14d
	incq	%rbx
	cmpq	-56(%rbp), %rbx
	jb	LBB0_9
LBB0_10:
	movq	_ZPOOL_CONFIG_L2CACHE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_nvlist_lookup_nvlist_array
	testq	%rax, %rax
	jne	LBB0_24
## %bb.11:
	cmpq	$0, -56(%rbp)
	je	LBB0_24
## %bb.12:
	xorl	%ebx, %ebx
	movq	_B_TRUE@GOTPCREL(%rip), %r13
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%rbx
	cmpq	-56(%rbp), %rbx
	jae	LBB0_24
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r15, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_is_device_in_use
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	(%r13), %r14d
	jmp	LBB0_15
LBB0_20:
	movq	-96(%rbp), %rdi
	movl	%r13d, %esi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_check_device
LBB0_23:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
LBB0_24:
	movq	-112(%rbp), %rsp                ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ## @ZPOOL_CONFIG_TYPE
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ## @ZPOOL_CONFIG_CHILDREN
	.comm	_ZPOOL_CONFIG_PATH,4,2          ## @ZPOOL_CONFIG_PATH
	.comm	_VDEV_TYPE_DISK,4,2             ## @VDEV_TYPE_DISK
	.comm	_VDEV_TYPE_FILE,4,2             ## @VDEV_TYPE_FILE
	.comm	_B_TRUE,4,2                     ## @B_TRUE
	.comm	_ZPOOL_CONFIG_SPARES,4,2        ## @ZPOOL_CONFIG_SPARES
	.comm	_ZPOOL_CONFIG_L2CACHE,4,2       ## @ZPOOL_CONFIG_L2CACHE
	.comm	_ZPOOL_CONFIG_WHOLE_DISK,4,2    ## @ZPOOL_CONFIG_WHOLE_DISK
	.no_dead_strip	_is_device_in_use
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function is_device_in_use
_is_device_in_use:                      ; @is_device_in_use
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x24, x4
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	mov	x27, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
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	x26, x8, x9
	mov	sp, x26
Lloh8:
	adrp	x28, _B_FALSE@GOTPAGE
Lloh9:
	ldr	x28, [x28, _B_FALSE@GOTPAGEOFF]
	ldr	w22, [x28]
Lloh10:
	adrp	x8, _ZPOOL_CONFIG_TYPE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ZPOOL_CONFIG_TYPE@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	sub	x2, x29, #112
	mov	x0, x23
	bl	_nvlist_lookup_string
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
Lloh13:
	adrp	x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ZPOOL_CONFIG_CHILDREN@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	sub	x2, x29, #96
	sub	x3, x29, #104
	mov	x0, x23
	bl	_nvlist_lookup_nvlist_array
	cbz	x0, LBB0_7
; %bb.1:
Lloh16:
	adrp	x8, _ZPOOL_CONFIG_PATH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ZPOOL_CONFIG_PATH@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	sub	x2, x29, #120
	mov	x0, x23
	bl	_nvlist_lookup_string
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	cbz	w21, LBB0_4
; %bb.2:
	ldur	x1, [x29, #-120]
	mov	x0, x26
	mov	x2, x25
	bl	_strlcpy
	mov	x0, x20
	mov	x1, x26
	bl	_is_spare
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w22, [x28]
	b	LBB0_19
LBB0_4:
	ldur	x0, [x29, #-112]
Lloh19:
	adrp	x8, _VDEV_TYPE_DISK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _VDEV_TYPE_DISK@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.5:
	ldur	x0, [x29, #-112]
Lloh22:
	adrp	x8, _VDEV_TYPE_FILE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _VDEV_TYPE_FILE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.6:
	mov	w0, #0
	b	LBB0_18
LBB0_7:
	ldur	x8, [x29, #-104]
Lloh25:
	adrp	x24, _B_TRUE@GOTPAGE
Lloh26:
	ldr	x24, [x24, _B_TRUE@GOTPAGEOFF]
	cbz	x8, LBB0_10
; %bb.8:
	mov	x25, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-96]
	ldr	x1, [x8, x25, lsl #3]
	ldr	w4, [x28]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_is_device_in_use
	ldr	w8, [x24]
	cmp	w0, #0
	csel	w22, w22, w8, eq
	add	x25, x25, #1
	ldur	x8, [x29, #-104]
	cmp	x25, x8
	b.lo	LBB0_9
LBB0_10:
Lloh27:
	adrp	x8, _ZPOOL_CONFIG_SPARES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ZPOOL_CONFIG_SPARES@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	sub	x2, x29, #96
	sub	x3, x29, #104
	mov	x0, x23
	bl	_nvlist_lookup_nvlist_array
	ldur	x8, [x29, #-104]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_13
; %bb.11:
	mov	x25, #0
	ldr	w4, [x24]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-96]
	ldr	x1, [x8, x25, lsl #3]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_is_device_in_use
	ldr	w4, [x24]
	cmp	w0, #0
	csel	w22, w22, w4, eq
	add	x25, x25, #1
	ldur	x8, [x29, #-104]
	cmp	x25, x8
	b.lo	LBB0_12
LBB0_13:
Lloh30:
	adrp	x8, _ZPOOL_CONFIG_L2CACHE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ZPOOL_CONFIG_L2CACHE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	sub	x2, x29, #96
	sub	x3, x29, #104
	mov	x0, x23
	bl	_nvlist_lookup_nvlist_array
	ldur	x8, [x29, #-104]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.eq	LBB0_19
; %bb.14:
	mov	x23, #0
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-96]
	ldr	x1, [x8, x23, lsl #3]
	ldr	w4, [x28]
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_is_device_in_use
	ldr	w8, [x24]
	cmp	w0, #0
	csel	w22, w22, w8, eq
	add	x23, x23, #1
	ldur	x8, [x29, #-104]
	cmp	x23, x8
	b.lo	LBB0_15
	b	LBB0_19
LBB0_16:
	ldur	x0, [x29, #-120]
	mov	x1, x19
	mov	x2, x24
	bl	_check_device
	b	LBB0_18
LBB0_17:
	ldur	x0, [x29, #-120]
	mov	x1, x19
	mov	x2, x24
	bl	_check_file
LBB0_18:
	cmp	w0, #0
	cset	w22, ne
LBB0_19:
	mov	sp, x27
	ldur	x8, [x29, #-88]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	mov	x0, x22
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.comm	_ZPOOL_CONFIG_TYPE,4,2          ; @ZPOOL_CONFIG_TYPE
	.comm	_ZPOOL_CONFIG_CHILDREN,4,2      ; @ZPOOL_CONFIG_CHILDREN
	.comm	_ZPOOL_CONFIG_PATH,4,2          ; @ZPOOL_CONFIG_PATH
	.comm	_VDEV_TYPE_DISK,4,2             ; @VDEV_TYPE_DISK
	.comm	_VDEV_TYPE_FILE,4,2             ; @VDEV_TYPE_FILE
	.comm	_B_TRUE,4,2                     ; @B_TRUE
	.comm	_ZPOOL_CONFIG_SPARES,4,2        ; @ZPOOL_CONFIG_SPARES
	.comm	_ZPOOL_CONFIG_L2CACHE,4,2       ; @ZPOOL_CONFIG_L2CACHE
	.comm	_ZPOOL_CONFIG_WHOLE_DISK,4,2    ; @ZPOOL_CONFIG_WHOLE_DISK
	.no_dead_strip	_is_device_in_use
.subsections_via_symbols
