	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_scan                     ## -- Begin function zpool_scan
	.p2align	4, 0x90
_zpool_scan:                            ## @zpool_scan
	.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	$1096, %rsp                     ## imm = 0x448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -1104(%rbp)
	movaps	%xmm0, -1120(%rbp)
	movq	8(%rdi), %rbx
	movl	4(%rdi), %esi
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r14, -1104(%rbp)
	movq	%r15, -1112(%rbp)
	movq	_ZFS_IOC_POOL_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1120(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_zfs_ioctl
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rbx, -1080(%rbp)               ## 8-byte Spill
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ECANCELED@GOTPCREL(%rip), %rdx
	movq	_POOL_SCAN_SCRUB@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_POOL_SCRUB_NORMAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	(%rdx), %ebx
	jne	LBB0_4
## %bb.2:
	cmpq	%r14, %rcx
	jne	LBB0_4
## %bb.3:
	cmpq	%r15, %rax
	je	LBB0_28
LBB0_4:
	movq	_ENOENT@GOTPCREL(%rip), %rsi
	movq	_POOL_SCAN_NONE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpl	(%rsi), %ebx
	jne	LBB0_7
## %bb.5:
	cmpq	%r14, %rdx
	je	LBB0_7
## %bb.6:
	cmpq	%r15, %rax
	je	LBB0_28
LBB0_7:
	movq	%rsi, %r12
	cmpq	%r14, %rcx
	jne	LBB0_10
## %bb.8:
	movq	_POOL_SCRUB_PAUSE@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_12
## %bb.9:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_10:
	cmpq	%r14, %rdx
	jne	LBB0_14
## %bb.11:
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_13
LBB0_12:
	xorl	%edi, %edi
	cmpq	%r15, %rax
	sete	%dil
	callq	_assert
	movq	_TEXT_DOMAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_13:
	callq	_dgettext
	movl	-1120(%rbp), %ecx
	leaq	-1072(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_snprintf
	jmp	LBB0_15
LBB0_14:
	xorl	%edi, %edi
	callq	_assert
LBB0_15:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_20
## %bb.16:
	movq	$0, -1088(%rbp)
	movl	(%r13), %edi
	movq	_ZPOOL_CONFIG_VDEV_TREE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1128(%rbp), %rdx
	callq	_nvlist_lookup_nvlist
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_verify
	movq	-1128(%rbp), %rdi
	movq	_ZPOOL_CONFIG_SCAN_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1088(%rbp), %rdx
	leaq	-1132(%rbp), %rcx
	callq	_nvlist_lookup_uint64_array
	movq	-1088(%rbp), %rcx
	movq	_EZFS_RESILVERING@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.17:
	movq	(%rcx), %rcx
	movq	_POOL_SCAN_SCRUB@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	jne	LBB0_25
## %bb.18:
	movq	_POOL_SCRUB_PAUSE@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_24
## %bb.19:
	movq	_EZFS_SCRUB_PAUSED@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_20:
	cmpl	(%r12), %ebx
	jne	LBB0_22
## %bb.21:
	movq	_EZFS_NO_SCRUB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	jmp	LBB0_26
LBB0_22:
	leaq	-1072(%rbp), %rdx
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	movl	%ebx, %esi
	callq	_zpool_standard_error
	jmp	LBB0_27
LBB0_23:
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	jmp	LBB0_25
LBB0_24:
	movq	_EZFS_SCRUBBING@GOTPCREL(%rip), %rax
LBB0_25:
	movl	(%rax), %esi
	leaq	-1072(%rbp), %rdx
LBB0_26:
	callq	_zfs_error
LBB0_27:
	movl	%eax, %r12d
LBB0_28:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_30
## %bb.29:
	movl	%r12d, %eax
	addq	$1096, %rsp                     ## imm = 0x448
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZFS_IOC_POOL_SCAN,4,2          ## @ZFS_IOC_POOL_SCAN
	.comm	_errno,4,2                      ## @errno
	.comm	_ECANCELED,4,2                  ## @ECANCELED
	.comm	_POOL_SCAN_SCRUB,8,3            ## @POOL_SCAN_SCRUB
	.comm	_POOL_SCRUB_NORMAL,8,3          ## @POOL_SCRUB_NORMAL
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_POOL_SCAN_NONE,8,3             ## @POOL_SCAN_NONE
	.comm	_POOL_SCRUB_PAUSE,8,3           ## @POOL_SCRUB_PAUSE
	.comm	_TEXT_DOMAIN,4,2                ## @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot pause scrubbing %s"

L_.str.1:                               ## @.str.1
	.asciz	"cannot scrub %s"

L_.str.2:                               ## @.str.2
	.asciz	"cannot cancel scrubbing %s"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ## @ZPOOL_CONFIG_VDEV_TREE
	.comm	_ZPOOL_CONFIG_SCAN_STATS,4,2    ## @ZPOOL_CONFIG_SCAN_STATS
	.comm	_EZFS_SCRUB_PAUSED,4,2          ## @EZFS_SCRUB_PAUSED
	.comm	_EZFS_SCRUBBING,4,2             ## @EZFS_SCRUBBING
	.comm	_EZFS_RESILVERING,4,2           ## @EZFS_RESILVERING
	.comm	_EZFS_NO_SCRUB,4,2              ## @EZFS_NO_SCRUB
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zpool_scan                     ; -- Begin function zpool_scan
	.p2align	2
_zpool_scan:                            ; @zpool_scan
	.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, #1104
	mov	x20, x2
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	ldr	x19, [x0, #8]
	ldr	w1, [x0, #4]
	mov	w0, #0
	mov	w2, #4
	bl	_strlcpy
	stp	x20, x23, [sp, #40]
Lloh3:
	adrp	x8, _ZFS_IOC_POOL_SCAN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZFS_IOC_POOL_SCAN@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #32
	mov	x0, x19
	bl	_zfs_ioctl
	cbz	x0, LBB0_23
; %bb.1:
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
Lloh9:
	adrp	x8, _ECANCELED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ECANCELED@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x8]
Lloh12:
	adrp	x24, _POOL_SCAN_SCRUB@GOTPAGE
Lloh13:
	ldr	x24, [x24, _POOL_SCAN_SCRUB@GOTPAGEOFF]
	ldr	x9, [x24]
Lloh14:
	adrp	x8, _POOL_SCRUB_NORMAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _POOL_SCRUB_NORMAL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	w22, w10
	ccmp	x9, x23, #0, eq
	ccmp	x8, x20, #0, eq
	b.eq	LBB0_5
; %bb.2:
Lloh17:
	adrp	x25, _ENOENT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _ENOENT@GOTPAGEOFF]
	ldr	w11, [x25]
Lloh19:
	adrp	x10, _POOL_SCAN_NONE@GOTPAGE
Lloh20:
	ldr	x10, [x10, _POOL_SCAN_NONE@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x10]
	cmp	w22, w11
	b.ne	LBB0_6
; %bb.3:
	cmp	x10, x23
	b.eq	LBB0_6
; %bb.4:
	cmp	x8, x20
	b.ne	LBB0_6
LBB0_5:
	mov	w0, #0
	b	LBB0_23
LBB0_6:
	cmp	x9, x23
	b.ne	LBB0_9
; %bb.7:
Lloh22:
	adrp	x9, _POOL_SCRUB_PAUSE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _POOL_SCRUB_PAUSE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x20
	b.ne	LBB0_11
; %bb.8:
Lloh25:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_9:
	cmp	x10, x23
	b.ne	LBB0_13
; %bb.10:
Lloh30:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_11:
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
Lloh35:
	adrp	x8, _TEXT_DOMAIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TEXT_DOMAIN@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str.1@PAGE
Lloh39:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	_dgettext
	mov	x2, x0
	ldr	w3, [sp, #32]
	add	x0, sp, #72
	mov	w1, #1024
	bl	_snprintf
	b	LBB0_14
LBB0_13:
	mov	w0, #0
	bl	_assert
LBB0_14:
Lloh40:
	adrp	x8, _EBUSY@GOTPAGE
Lloh41:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_18
; %bb.15:
	str	xzr, [sp, #16]
	ldr	w0, [x21]
Lloh43:
	adrp	x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ZPOOL_CONFIG_VDEV_TREE@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_nvlist_lookup_nvlist
	cmp	x0, #0
	cset	w0, eq
	bl	_verify
	ldr	x0, [sp, #24]
Lloh46:
	adrp	x8, _ZPOOL_CONFIG_SCAN_STATS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ZPOOL_CONFIG_SCAN_STATS@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	add	x2, sp, #16
	add	x3, sp, #12
	bl	_nvlist_lookup_uint64_array
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_20
; %bb.16:
	ldr	x8, [x8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.17:
Lloh49:
	adrp	x8, _POOL_SCRUB_PAUSE@GOTPAGE
Lloh50:
	ldr	x8, [x8, _POOL_SCRUB_PAUSE@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
Lloh52:
	adrp	x9, _EZFS_SCRUBBING@GOTPAGE
Lloh53:
	ldr	x9, [x9, _EZFS_SCRUBBING@GOTPAGEOFF]
Lloh54:
	adrp	x10, _EZFS_SCRUB_PAUSED@GOTPAGE
Lloh55:
	ldr	x10, [x10, _EZFS_SCRUB_PAUSED@GOTPAGEOFF]
	cmp	x8, x20
	csel	x8, x10, x9, eq
	b	LBB0_21
LBB0_18:
	ldr	w8, [x25]
	cmp	w22, w8
	b.ne	LBB0_22
; %bb.19:
Lloh56:
	adrp	x8, _EZFS_NO_SCRUB@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EZFS_NO_SCRUB@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh58:
	adrp	x8, _EZFS_RESILVERING@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EZFS_RESILVERING@GOTPAGEOFF]
LBB0_21:
	ldr	w1, [x8]
	add	x2, sp, #72
	mov	x0, x19
	bl	_zfs_error
	b	LBB0_23
LBB0_22:
	add	x2, sp, #72
	mov	x0, x19
	mov	x1, x22
	bl	_zpool_standard_error
LBB0_23:
	ldur	x8, [x29, #-72]
Lloh60:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh61:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	add	sp, sp, #1104
	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_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh56, Lloh57
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_ZFS_IOC_POOL_SCAN,4,2          ; @ZFS_IOC_POOL_SCAN
	.comm	_errno,4,2                      ; @errno
	.comm	_ECANCELED,4,2                  ; @ECANCELED
	.comm	_POOL_SCAN_SCRUB,8,3            ; @POOL_SCAN_SCRUB
	.comm	_POOL_SCRUB_NORMAL,8,3          ; @POOL_SCRUB_NORMAL
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_POOL_SCAN_NONE,8,3             ; @POOL_SCAN_NONE
	.comm	_POOL_SCRUB_PAUSE,8,3           ; @POOL_SCRUB_PAUSE
	.comm	_TEXT_DOMAIN,4,2                ; @TEXT_DOMAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot pause scrubbing %s"

l_.str.1:                               ; @.str.1
	.asciz	"cannot scrub %s"

l_.str.2:                               ; @.str.2
	.asciz	"cannot cancel scrubbing %s"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_ZPOOL_CONFIG_VDEV_TREE,4,2     ; @ZPOOL_CONFIG_VDEV_TREE
	.comm	_ZPOOL_CONFIG_SCAN_STATS,4,2    ; @ZPOOL_CONFIG_SCAN_STATS
	.comm	_EZFS_SCRUB_PAUSED,4,2          ; @EZFS_SCRUB_PAUSED
	.comm	_EZFS_SCRUBBING,4,2             ; @EZFS_SCRUBBING
	.comm	_EZFS_RESILVERING,4,2           ; @EZFS_RESILVERING
	.comm	_EZFS_NO_SCRUB,4,2              ; @EZFS_NO_SCRUB
.subsections_via_symbols
