	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ztest_vdev_aux_add_remove      ## -- Begin function ztest_vdev_aux_add_remove
	.p2align	4, 0x90
_ztest_vdev_aux_add_remove:             ## @ztest_vdev_aux_add_remove
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_ztest_shared@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_ztest_spa@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	32(%r12), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$2, %edi
	callq	_ztest_random
	leaq	16(%r12), %r15
	testq	%rax, %rax
	cmovneq	%r12, %r15
	movq	_ZPOOL_CONFIG_L2CACHE@GOTPCREL(%rip), %rax
	cmoveq	_ZPOOL_CONFIG_SPARES@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_ztest_vdev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_enter
	movq	_SCL_VDEV@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_FTAG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_RW_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_spa_config_enter
	cmpl	$0, (%r15)
	je	LBB0_3
## %bb.1:
	movl	$4, %edi
	callq	_ztest_random
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	$0, (%r14)
	movq	%r14, %r12
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	(%r12)
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_ztest_aux_template@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	movl	4(%rax), %r8d
	movl	8(%rax), %ecx
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	pushq	(%r12)
	callq	_snprintf
	addq	$16, %rsp
	movl	(%r15), %eax
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movl	8(%rax), %edi
	movq	%r14, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%eax, %ebx
	jne	LBB0_23
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %eax
	cmpl	%eax, %ebx
	jne	LBB0_23
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_vdev_lookup_by_path
	testq	%rax, %rax
	jne	LBB0_23
## %bb.11:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	xorl	%r14d, %r14d
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	_SCL_VDEV@GOTPCREL(%rip), %r13
	movq	_FTAG@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_2:
	movq	8(%r15), %r14
	movl	(%r15), %edi
	callq	_ztest_random
	movq	(%r14,%rax,8), %rax
	movq	(%rax), %r14
LBB0_12:
	movl	(%r13), %esi
	movl	(%rbx), %edx
	movq	%r12, %rdi
	callq	_spa_config_exit
	testq	%r14, %r14
	je	LBB0_13
## %bb.16:
	movl	$2, %edi
	callq	_ztest_random
	testq	%rax, %rax
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_vdev_online
LBB0_18:
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spa_vdev_remove
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	jb	LBB0_21
## %bb.19:
	testl	%eax, %eax
	je	LBB0_21
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_fatal
	jmp	LBB0_21
LBB0_13:
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax,4), %edx
	leal	(%rax,%rax,4), %ecx
	addl	$3, %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	subq	$8, %rsp
	xorl	%edi, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$1
	pushq	$0
	pushq	$0
	callq	_make_vdev_root
	addq	$32, %rsp
	movq	%rax, %r14
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_spa_vdev_add
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_fatal
LBB0_15:
	movq	%r14, %rdi
	callq	_nvlist_free
LBB0_21:
	movq	_ztest_vdev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_exit
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ztest_shared,8,3               ## @ztest_shared
	.comm	_ztest_spa,8,3                  ## @ztest_spa
	.comm	_ZPOOL_CONFIG_SPARES,8,3        ## @ZPOOL_CONFIG_SPARES
	.comm	_ZPOOL_CONFIG_L2CACHE,8,3       ## @ZPOOL_CONFIG_L2CACHE
	.comm	_ztest_vdev_lock,4,2            ## @ztest_vdev_lock
	.comm	_SCL_VDEV,4,2                   ## @SCL_VDEV
	.comm	_FTAG,4,2                       ## @FTAG
	.comm	_RW_READER,4,2                  ## @RW_READER
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.comm	_ztest_aux_template,8,3         ## @ztest_aux_template
	.comm	_ztest_opts,12,2                ## @ztest_opts
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spa_vdev_add(%p) = %d"

	.comm	_B_FALSE,4,2                    ## @B_FALSE
L_.str.1:                               ## @.str.1
	.asciz	"spa_vdev_remove(%llu) = %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ztest_vdev_aux_add_remove      ; -- Begin function ztest_vdev_aux_add_remove
	.p2align	2
_ztest_vdev_aux_add_remove:             ; @ztest_vdev_aux_add_remove
	.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, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ztest_shared@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ztest_shared@GOTPAGEOFF]
	stur	x8, [x29, #-88]
Lloh5:
	ldr	x23, [x9]
Lloh6:
	adrp	x8, _ztest_spa@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ztest_spa@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
	ldr	x21, [x22, #32]
	mov	w0, #2
	bl	_ztest_random
	add	x8, x22, #16
	cmp	x0, #0
	csel	x27, x8, x22, eq
Lloh9:
	adrp	x8, _ZPOOL_CONFIG_SPARES@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ZPOOL_CONFIG_SPARES@GOTPAGEOFF]
Lloh11:
	adrp	x9, _ZPOOL_CONFIG_L2CACHE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ZPOOL_CONFIG_L2CACHE@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	x20, [x8]
Lloh13:
	adrp	x0, _ztest_vdev_lock@GOTPAGE
Lloh14:
	ldr	x0, [x0, _ztest_vdev_lock@GOTPAGEOFF]
	bl	_mutex_enter
Lloh15:
	adrp	x24, _SCL_VDEV@GOTPAGE
Lloh16:
	ldr	x24, [x24, _SCL_VDEV@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh17:
	adrp	x25, _FTAG@GOTPAGE
Lloh18:
	ldr	x25, [x25, _FTAG@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh19:
	adrp	x8, _RW_READER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _RW_READER@GOTPAGEOFF]
Lloh21:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_spa_config_enter
	ldr	w8, [x27]
Lloh22:
	adrp	x26, _ztest_opts@GOTPAGE
Lloh23:
	ldr	x26, [x26, _ztest_opts@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	mov	w0, #4
	bl	_ztest_random
	cbz	x0, LBB0_13
LBB0_2:
	stur	x22, [x29, #-96]                ; 8-byte Folded Spill
	str	xzr, [x23]
Lloh24:
	adrp	x28, _MAXPATHLEN@GOTPAGE
Lloh25:
	ldr	x28, [x28, _MAXPATHLEN@GOTPAGEOFF]
Lloh26:
	adrp	x24, _ztest_aux_template@GOTPAGE
Lloh27:
	ldr	x24, [x24, _ztest_aux_template@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23]
	add	x8, x8, #1
	str	x8, [x23]
	mov	sp, x25
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	mov	x25, sp
	ldr	w1, [x28]
	mov	x9, x1
Lloh28:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh29:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x1, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	ldr	x2, [x24]
	ldp	w4, w3, [x26, #4]
	ldr	x6, [x23]
	mov	x0, x22
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x5, x20
	bl	_snprintf
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x19, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x27, #8]
	ldr	x8, [x8, x19, lsl #3]
	ldr	w0, [x8, #8]
	mov	x1, x22
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x19, x19, #1
	ldrsw	x8, [x27]
	cmp	x19, x8
	b.lt	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w19, #0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w19, w8
	b.ne	LBB0_3
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	cmp	w19, w8
	b.ne	LBB0_3
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_vdev_lookup_by_path
	cbnz	x0, LBB0_3
; %bb.12:
	mov	sp, x25
	mov	x21, #0
	ldur	x22, [x29, #-96]                ; 8-byte Folded Reload
Lloh30:
	adrp	x24, _SCL_VDEV@GOTPAGE
Lloh31:
	ldr	x24, [x24, _SCL_VDEV@GOTPAGEOFF]
Lloh32:
	adrp	x25, _FTAG@GOTPAGE
Lloh33:
	ldr	x25, [x25, _FTAG@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
	ldr	x19, [x27, #8]
	ldr	w0, [x27]
	bl	_ztest_random
	ldr	x8, [x19, x0, lsl #3]
	ldr	x21, [x8]
LBB0_14:
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x22
	bl	_spa_config_exit
	cbz	x21, LBB0_19
; %bb.15:
	mov	w0, #2
	bl	_ztest_random
	cbnz	x0, LBB0_17
; %bb.16:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #0
	mov	x3, #0
	bl	_vdev_online
LBB0_17:
Lloh34:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x22
	mov	x1, x21
	bl	_spa_vdev_remove
	sub	w8, w0, #128
	cmp	w8, #3
	ccmp	w0, #0, #4, hs
	b.eq	LBB0_22
; %bb.18:
	mov	x3, x0
Lloh37:
	adrp	x1, l_.str.1@PAGE
Lloh38:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #0
	mov	x2, x21
	bl	_fatal
	b	LBB0_22
LBB0_19:
	ldr	w8, [x26]
	add	w8, w8, w8, lsl #2
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w3, w8, #2
	mov	w8, #1
	str	w8, [sp, #-16]!
	mov	x0, #0
	mov	x1, x20
	mov	x2, #0
	mov	w4, #0
	mov	w5, #0
	mov	w6, #0
	mov	w7, #0
	bl	_make_vdev_root
	add	sp, sp, #16
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_spa_vdev_add
	cbz	w0, LBB0_21
; %bb.20:
	mov	x3, x0
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #0
	mov	x2, x20
	bl	_fatal
LBB0_21:
	mov	x0, x20
	bl	_nvlist_free
LBB0_22:
Lloh41:
	adrp	x0, _ztest_vdev_lock@GOTPAGE
Lloh42:
	ldr	x0, [x0, _ztest_vdev_lock@GOTPAGEOFF]
	bl	_mutex_exit
	ldur	x8, [x29, #-88]
Lloh43:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh44:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	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_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_ztest_shared,8,3               ; @ztest_shared
	.comm	_ztest_spa,8,3                  ; @ztest_spa
	.comm	_ZPOOL_CONFIG_SPARES,8,3        ; @ZPOOL_CONFIG_SPARES
	.comm	_ZPOOL_CONFIG_L2CACHE,8,3       ; @ZPOOL_CONFIG_L2CACHE
	.comm	_ztest_vdev_lock,4,2            ; @ztest_vdev_lock
	.comm	_SCL_VDEV,4,2                   ; @SCL_VDEV
	.comm	_FTAG,4,2                       ; @FTAG
	.comm	_RW_READER,4,2                  ; @RW_READER
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.comm	_ztest_aux_template,8,3         ; @ztest_aux_template
	.comm	_ztest_opts,12,2                ; @ztest_opts
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spa_vdev_add(%p) = %d"

	.comm	_B_FALSE,4,2                    ; @B_FALSE
l_.str.1:                               ; @.str.1
	.asciz	"spa_vdev_remove(%llu) = %d"

.subsections_via_symbols
