	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ztest_vdev_add_remove          ## -- Begin function ztest_vdev_add_remove
	.p2align	4, 0x90
_ztest_vdev_add_remove:                 ## @ztest_vdev_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_ztest_shared@GOTPCREL(%rip), %r12
	movq	(%r12), %r15
	movq	_ztest_spa@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_ztest_vdev_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_enter
	movq	16(%r15), %rdi
	addq	8(%r15), %rdi
	movl	$1, %esi
	callq	_MAX
	movl	%eax, %ebx
	movq	_ztest_opts@GOTPCREL(%rip), %rax
	imull	(%rax), %ebx
	movq	_SCL_VDEV@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_RW_READER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	callq	_spa_config_enter
	movq	%r14, %rdi
	callq	_find_vdev_hole
	imull	%ebx, %eax
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	callq	_spa_has_slogs
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	$4, %edi
	callq	_ztest_random
	testq	%rax, %rax
	je	LBB0_2
LBB0_5:
	movl	(%r13), %esi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_spa_config_exit
	movq	_ztest_opts@GOTPCREL(%rip), %r12
	movl	4(%r12), %ebx
	movl	$4, %edi
	callq	_ztest_random
	xorl	%r9d, %r9d
	testq	%rax, %rax
	sete	%r9b
	movl	(%r12), %eax
	subq	$8, %rsp
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	pushq	$1
	pushq	8(%r15)
	pushq	%rax
	callq	_make_vdev_root
	addq	$32, %rsp
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_spa_vdev_add
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_nvlist_free
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.6:
	cmpl	$130, %r14d
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	callq	_ztest_record_enospc
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	xorl	%edi, %edi
	movl	%r14d, %edx
LBB0_9:
	callq	_fatal
	jmp	LBB0_10
LBB0_2:
	movq	%r14, %rdi
	callq	_spa_log_class
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	(%r13), %esi
	movq	_FTAG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_spa_config_exit
	movq	_RW_WRITER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ztest_name_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_rw_enter
	movq	_B_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_spa_vdev_remove
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_rw_exit
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_3
## %bb.11:
	cmpl	$2, %eax
	jne	LBB0_10
LBB0_3:
	testl	%ebx, %ebx
	jne	LBB0_4
LBB0_10:
	movq	_ztest_vdev_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_exit                     ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rsi
	xorl	%edi, %edi
	movl	%ebx, %edx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_ztest_shared,8,3               ## @ztest_shared
	.comm	_ztest_spa,8,3                  ## @ztest_spa
	.comm	_ztest_vdev_lock,4,2            ## @ztest_vdev_lock
	.comm	_ztest_opts,8,2                 ## @ztest_opts
	.comm	_SCL_VDEV,4,2                   ## @SCL_VDEV
	.comm	_FTAG,4,2                       ## @FTAG
	.comm	_RW_READER,4,2                  ## @RW_READER
	.comm	_ztest_name_lock,4,2            ## @ztest_name_lock
	.comm	_RW_WRITER,4,2                  ## @RW_WRITER
	.comm	_B_FALSE,4,2                    ## @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spa_vdev_remove() = %d"

L_.str.1:                               ## @.str.1
	.asciz	"spa_vdev_add"

L_.str.2:                               ## @.str.2
	.asciz	"spa_vdev_add() = %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ztest_vdev_add_remove          ; -- Begin function ztest_vdev_add_remove
	.p2align	2
_ztest_vdev_add_remove:                 ; @ztest_vdev_add_remove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x20, _ztest_shared@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ztest_shared@GOTPAGEOFF]
	ldr	x21, [x20]
Lloh2:
	adrp	x8, _ztest_spa@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ztest_spa@GOTPAGEOFF]
Lloh4:
	ldr	x19, [x8]
Lloh5:
	adrp	x0, _ztest_vdev_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _ztest_vdev_lock@GOTPAGEOFF]
	bl	_mutex_enter
	ldp	x8, x9, [x21, #8]
	add	x0, x9, x8
	mov	w22, #1
	mov	w1, #1
	bl	_MAX
Lloh7:
	adrp	x23, _ztest_opts@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ztest_opts@GOTPAGEOFF]
	ldr	w8, [x23]
	mul	w26, w8, w0
Lloh9:
	adrp	x24, _SCL_VDEV@GOTPAGE
Lloh10:
	ldr	x24, [x24, _SCL_VDEV@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh11:
	adrp	x25, _FTAG@GOTPAGE
Lloh12:
	ldr	x25, [x25, _FTAG@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh13:
	adrp	x8, _RW_READER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RW_READER@GOTPAGEOFF]
Lloh15:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_spa_config_enter
	mov	x0, x19
	bl	_find_vdev_hole
	mul	w8, w26, w0
	ldr	x9, [x20]
	str	w8, [x9]
	mov	x0, x19
	bl	_spa_has_slogs
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #4
	bl	_ztest_random
	cbz	x0, LBB0_7
LBB0_2:
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_spa_config_exit
	ldr	w20, [x23, #4]
	mov	w0, #4
	bl	_ztest_random
	cmp	x0, #0
	cset	w5, eq
	ldr	w6, [x23]
	ldr	x7, [x21, #8]
	str	w22, [sp]
	mov	x0, #0
	mov	x1, #0
	mov	x2, #0
	mov	x3, x20
	mov	w4, #0
	bl	_make_vdev_root
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spa_vdev_add
	mov	x19, x0
	mov	x0, x20
	bl	_nvlist_free
	cbz	w19, LBB0_8
; %bb.3:
	cmp	w19, #130
	b.ne	LBB0_5
; %bb.4:
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ztest_record_enospc
	b	LBB0_8
LBB0_5:
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
	mov	w0, #0
	mov	x2, x19
	bl	_fatal
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_spa_log_class
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w20, [x8]
	ldr	w1, [x24]
	ldr	w2, [x25]
	mov	x0, x19
	bl	_spa_config_exit
Lloh20:
	adrp	x8, _RW_WRITER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RW_WRITER@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x21, _ztest_name_lock@GOTPAGE
Lloh24:
	ldr	x21, [x21, _ztest_name_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_rw_enter
Lloh25:
	adrp	x8, _B_FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _B_FALSE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_spa_vdev_remove
	mov	x19, x0
	mov	x0, x21
	bl	_rw_exit
	sub	w8, w19, #128
	cmp	w8, #3
	ccmp	w8, #2, #4, ls
	ccmp	w19, #0, #4, eq
	b.ne	LBB0_9
LBB0_8:
Lloh28:
	adrp	x0, _ztest_vdev_lock@GOTPAGE
Lloh29:
	ldr	x0, [x0, _ztest_vdev_lock@GOTPAGEOFF]
	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
	add	sp, sp, #96
	b	_mutex_exit
LBB0_9:
Lloh30:
	adrp	x1, l_.str@PAGE
Lloh31:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ztest_shared,8,3               ; @ztest_shared
	.comm	_ztest_spa,8,3                  ; @ztest_spa
	.comm	_ztest_vdev_lock,4,2            ; @ztest_vdev_lock
	.comm	_ztest_opts,8,2                 ; @ztest_opts
	.comm	_SCL_VDEV,4,2                   ; @SCL_VDEV
	.comm	_FTAG,4,2                       ; @FTAG
	.comm	_RW_READER,4,2                  ; @RW_READER
	.comm	_ztest_name_lock,4,2            ; @ztest_name_lock
	.comm	_RW_WRITER,4,2                  ; @RW_WRITER
	.comm	_B_FALSE,4,2                    ; @B_FALSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spa_vdev_remove() = %d"

l_.str.1:                               ; @.str.1
	.asciz	"spa_vdev_add"

l_.str.2:                               ; @.str.2
	.asciz	"spa_vdev_add() = %d"

.subsections_via_symbols
