	.file	"extr_ztest.c_ztest_vdev_add_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"spa_vdev_remove() = %d"
.LC1:
	.string	"spa_vdev_add"
.LC2:
	.string	"spa_vdev_add() = %d"
	.text
	.p2align 4
	.globl	ztest_vdev_add_remove
	.type	ztest_vdev_add_remove, @function
ztest_vdev_add_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, QWORD PTR ztest_shared[rip]
	lea	rdi, ztest_vdev_lock[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, QWORD PTR ztest_spa[rip]
	call	mutex_enter@PLT
	mov	rdi, QWORD PTR 16[r13]
	mov	esi, 1
	add	rdi, QWORD PTR 8[r13]
	call	MAX@PLT
	imul	eax, DWORD PTR ztest_opts[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR FTAG[rip]
	mov	ecx, DWORD PTR RW_READER[rip]
	mov	esi, DWORD PTR SCL_VDEV[rip]
	mov	r12d, eax
	call	spa_config_enter@PLT
	mov	rdi, rbp
	call	find_vdev_hole@PLT
	mov	rdx, QWORD PTR ztest_shared[rip]
	mov	rdi, rbp
	imul	eax, r12d
	mov	DWORD PTR [rdx], eax
	call	spa_has_slogs@PLT
	test	rax, rax
	je	.L2
	mov	edi, 4
	call	ztest_random@PLT
	test	rax, rax
	je	.L19
.L2:
	mov	edx, DWORD PTR FTAG[rip]
	mov	esi, DWORD PTR SCL_VDEV[rip]
	mov	rdi, rbp
	call	spa_config_exit@PLT
	mov	edi, 4
	mov	r13, QWORD PTR 8[r13]
	mov	r12d, DWORD PTR ztest_opts[rip]
	call	ztest_random@PLT
	xor	r9d, r9d
	mov	ecx, DWORD PTR ztest_opts[rip+4]
	test	rax, rax
	sete	r9b
	sub	rsp, 8
	.cfi_def_cfa_offset 40
	xor	r8d, r8d
	xor	edx, edx
	push	1
	.cfi_def_cfa_offset 48
	xor	esi, esi
	xor	edi, edi
	push	r13
	.cfi_def_cfa_offset 56
	push	r12
	.cfi_def_cfa_offset 64
	call	make_vdev_root@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 32
	mov	rdi, rbp
	mov	rsi, rax
	mov	r13, rax
	call	spa_vdev_add@PLT
	mov	rdi, r13
	mov	r12d, eax
	call	nvlist_free@PLT
	test	r12d, r12d
	je	.L6
	cmp	r12d, 130
	je	.L20
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	xor	edi, edi
	call	fatal@PLT
.L6:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, ztest_vdev_lock[rip]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	mutex_exit@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	ztest_record_enospc@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	rdi, rbp
	call	spa_log_class@PLT
	mov	edx, DWORD PTR FTAG[rip]
	mov	esi, DWORD PTR SCL_VDEV[rip]
	mov	rdi, rbp
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	r12d, DWORD PTR [rax]
	call	spa_config_exit@PLT
	mov	esi, DWORD PTR RW_WRITER[rip]
	lea	rdi, ztest_name_lock[rip]
	call	rw_enter@PLT
	mov	edx, DWORD PTR B_FALSE[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	spa_vdev_remove@PLT
	lea	rdi, ztest_name_lock[rip]
	mov	r12d, eax
	call	rw_exit@PLT
	cmp	r12d, 129
	jg	.L3
	cmp	r12d, 127
	jg	.L6
	test	r12d, r12d
	je	.L6
.L5:
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	xor	edi, edi
	call	fatal@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	r12d, 131
	je	.L6
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	ztest_vdev_add_remove, .-ztest_vdev_add_remove
	.comm	ztest_vdev_lock,4,4
	.comm	ztest_spa,8,8
	.comm	ztest_shared,8,8
	.comm	ztest_opts,8,8
	.comm	ztest_name_lock,4,4
	.comm	SCL_VDEV,4,4
	.comm	RW_WRITER,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ztest.c_ztest_vdev_add_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"spa_vdev_remove() = %d\000"
	.align	2
.LC1:
	.ascii	"spa_vdev_add\000"
	.align	2
.LC2:
	.ascii	"spa_vdev_add() = %d\000"
	.text
	.align	2
	.global	ztest_vdev_add_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	ztest_vdev_add_remove, %function
ztest_vdev_add_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r9, .L21
	ldr	r3, .L21+4
	ldr	r6, [r9]
	sub	sp, sp, #24
	ldr	r0, .L21+8
	ldr	r4, [r3]
	bl	mutex_enter
	ldmib	r6, {r0, r3}
	mov	r1, #1
	add	r0, r0, r3
	bl	MAX
	mov	r10, r0
	ldr	r7, .L21+12
	ldr	r3, .L21+16
	ldr	r8, .L21+20
	ldr	r5, .L21+24
	ldr	ip, [r7]
	ldr	r3, [r3]
	ldr	r2, [r8]
	ldr	r1, [r5]
	mov	r0, r4
	mul	r10, ip, r10
	bl	spa_config_enter
	mov	r0, r4
	bl	find_vdev_hole
	mul	r3, r10, r0
	ldr	r2, [r9]
	mov	r0, r4
	str	r3, [r2]
	bl	spa_has_slogs
	cmp	r0, #0
	beq	.L2
	mov	r0, #4
	bl	ztest_random
	cmp	r0, #0
	beq	.L19
.L2:
	ldr	r2, [r8]
	ldr	r1, [r5]
	mov	r0, r4
	bl	spa_config_exit
	mov	r0, #4
	ldr	r8, [r7, #4]
	bl	ztest_random
	mov	r3, #1
	clz	r0, r0
	mov	r5, #0
	str	r3, [sp, #16]
	ldr	r1, [r6, #4]
	ldr	r2, [r7]
	lsr	r0, r0, #5
	mov	r3, r8
	str	r0, [sp, #4]
	str	r1, [sp, #12]
	str	r2, [sp, #8]
	mov	r1, r5
	mov	r2, r5
	mov	r0, r5
	str	r5, [sp]
	bl	make_vdev_root
	mov	r6, r0
	mov	r0, r4
	mov	r1, r6
	bl	spa_vdev_add
	mov	r4, r0
	mov	r0, r6
	bl	nvlist_free
	cmp	r4, r5
	beq	.L6
	cmp	r4, #130
	beq	.L20
	mov	r2, r4
	mov	r0, r5
	ldr	r1, .L21+28
	bl	fatal
.L6:
	ldr	r0, .L21+8
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mutex_exit
.L20:
	ldr	r0, .L21+32
	bl	ztest_record_enospc
	ldr	r0, .L21+8
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	mutex_exit
.L19:
	mov	r0, r4
	bl	spa_log_class
	ldr	r3, [r0]
	ldr	r2, [r8]
	ldr	r3, [r3]
	ldr	r1, [r5]
	mov	r0, r4
	ldr	r5, [r3]
	bl	spa_config_exit
	ldr	r3, .L21+36
	ldr	r0, .L21+40
	ldr	r1, [r3]
	bl	rw_enter
	ldr	r3, .L21+44
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [r3]
	bl	spa_vdev_remove
	mov	r4, r0
	ldr	r0, .L21+40
	bl	rw_exit
	cmp	r4, #129
	bgt	.L3
	cmp	r4, #127
	bgt	.L6
	cmp	r4, #0
	beq	.L6
.L5:
	mov	r2, r4
	ldr	r1, .L21+48
	mov	r0, #0
	bl	fatal
	b	.L6
.L3:
	cmp	r4, #131
	beq	.L6
	b	.L5
.L22:
	.align	2
.L21:
	.word	ztest_shared
	.word	ztest_spa
	.word	ztest_vdev_lock
	.word	ztest_opts
	.word	RW_READER
	.word	FTAG
	.word	SCL_VDEV
	.word	.LC2
	.word	.LC1
	.word	RW_WRITER
	.word	ztest_name_lock
	.word	B_FALSE
	.word	.LC0
	.size	ztest_vdev_add_remove, .-ztest_vdev_add_remove
	.comm	ztest_vdev_lock,4,4
	.comm	ztest_spa,4,4
	.comm	ztest_shared,4,4
	.comm	ztest_opts,8,4
	.comm	ztest_name_lock,4,4
	.comm	SCL_VDEV,4,4
	.comm	RW_WRITER,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
