	.file	"extr_ztest.c_ztest_vdev_class_add.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"spa_vdev_add"
.LC1:
	.string	"spa_vdev_add() = %d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Enabling special VDEV small blocks"
	.align 8
.LC3:
	.string	"Added a %s mirrored vdev (of %d)\n"
	.text
	.p2align 4
	.globl	ztest_vdev_class_add
	.type	ztest_vdev_class_add, @function
ztest_vdev_class_add:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, QWORD PTR ztest_shared[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, QWORD PTR ztest_spa[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, 2
	call	ztest_random@PLT
	mov	rsi, QWORD PTR VDEV_ALLOC_BIAS_SPECIAL[rip]
	test	rax, rax
	mov	rax, QWORD PTR ztest_opts[rip]
	cmovne	rsi, QWORD PTR VDEV_ALLOC_BIAS_DEDUP[rip]
	cmp	rax, QWORD PTR ZTEST_VDEV_CLASS_OFF[rip]
	je	.L1
	cmp	rax, QWORD PTR ZTEST_VDEV_CLASS_RND[rip]
	mov	rbp, rsi
	je	.L6
.L10:
	lea	rdi, ztest_vdev_lock[rip]
	call	mutex_enter@PLT
	cmp	DWORD PTR 0[r13], 1
	jle	.L7
	mov	esi, DWORD PTR SPA_FEATURE_ALLOCATION_CLASSES[rip]
	mov	rdi, r12
	call	spa_feature_is_enabled@PLT
	test	eax, eax
	je	.L7
	movsx	rdi, DWORD PTR 0[r13]
	mov	esi, 1
	add	rdi, QWORD PTR 8[r13]
	call	MAX@PLT
	imul	eax, DWORD PTR ztest_opts[rip+8]
	mov	rdi, r12
	mov	ecx, DWORD PTR RW_READER[rip]
	mov	edx, DWORD PTR FTAG[rip]
	mov	esi, DWORD PTR SCL_VDEV[rip]
	mov	r14d, eax
	call	spa_config_enter@PLT
	mov	rdi, r12
	call	spa_num_top_vdevs@PLT
	mov	rdx, QWORD PTR ztest_shared[rip]
	mov	esi, DWORD PTR SCL_VDEV[rip]
	mov	rdi, r12
	imul	eax, r14d
	mov	DWORD PTR 4[rdx], eax
	mov	edx, DWORD PTR FTAG[rip]
	call	spa_config_exit@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	r8d, r8d
	xor	edx, edx
	push	1
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 0[r13]
	mov	r9, rbp
	xor	esi, esi
	mov	ecx, DWORD PTR ztest_opts[rip+16]
	xor	edi, edi
	push	rax
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR ztest_opts[rip+8]
	push	rax
	.cfi_def_cfa_offset 80
	call	make_vdev_root@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rdi, r12
	mov	r14, rax
	mov	rsi, rax
	call	spa_vdev_add@PLT
	mov	rdi, r14
	mov	r13d, eax
	call	nvlist_free@PLT
	cmp	DWORD PTR ENOSPC[rip], r13d
	je	.L33
	test	r13d, r13d
	jne	.L34
.L12:
	mov	rdi, r12
	call	spa_special_class@PLT
	cmp	DWORD PTR [rax], 1
	je	.L35
.L13:
	lea	rdi, ztest_vdev_lock[rip]
	call	mutex_exit@PLT
	cmp	DWORD PTR ztest_opts[rip+12], 2
	jle	.L1
	mov	rsi, QWORD PTR VDEV_ALLOC_BIAS_SPECIAL[rip]
	mov	rdi, rbp
	call	strcmp@PLT
	mov	rdi, r12
	test	rax, rax
	jne	.L16
	call	spa_special_class@PLT
.L17:
	mov	edx, DWORD PTR [rax]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	lea	rdi, .LC3[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	printf@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, 2
	call	ztest_random@PLT
	test	rax, rax
	jne	.L10
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	lea	rdi, ztest_vdev_lock[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	mutex_exit@PLT
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	xor	edi, edi
	call	fatal@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L33:
	lea	rdi, .LC0[rip]
	call	ztest_record_enospc@PLT
	test	r13d, r13d
	jne	.L13
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L16:
	call	spa_dedup_class@PLT
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L35:
	mov	edi, 2
	call	ztest_random@PLT
	test	rax, rax
	jne	.L13
	cmp	DWORD PTR ztest_opts[rip+12], 2
	jg	.L36
.L15:
	mov	ecx, DWORD PTR B_FALSE[rip]
	mov	esi, DWORD PTR ZFS_PROP_SPECIAL_SMALL_BLOCKS[rip]
	mov	edx, 32768
	mov	edi, DWORD PTR [rbx]
	call	ztest_dsl_prop_set_uint64@PLT
	jmp	.L13
.L36:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	ztest_vdev_class_add, .-ztest_vdev_class_add
	.comm	ztest_vdev_lock,4,4
	.comm	ztest_spa,8,8
	.comm	ztest_shared,8,8
	.comm	ztest_opts,24,16
	.comm	ZTEST_VDEV_CLASS_RND,8,8
	.comm	ZTEST_VDEV_CLASS_OFF,8,8
	.comm	ZFS_PROP_SPECIAL_SMALL_BLOCKS,4,4
	.comm	VDEV_ALLOC_BIAS_SPECIAL,8,8
	.comm	VDEV_ALLOC_BIAS_DEDUP,8,8
	.comm	SPA_FEATURE_ALLOCATION_CLASSES,4,4
	.comm	SCL_VDEV,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	ENOSPC,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_class_add.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"spa_vdev_add\000"
	.align	2
.LC1:
	.ascii	"spa_vdev_add() = %d\000"
	.align	2
.LC2:
	.ascii	"Enabling special VDEV small blocks\000"
	.align	2
.LC3:
	.ascii	"Added a %s mirrored vdev (of %d)\012\000"
	.text
	.align	2
	.global	ztest_vdev_class_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	ztest_vdev_class_add, %function
ztest_vdev_class_add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L37
	ldr	r7, .L37+4
	sub	sp, sp, #36
	mov	r0, #2
	ldr	r5, [r3]
	str	r2, [sp, #28]
	ldr	r6, [r7]
	bl	ztest_random
	cmp	r0, #0
	ldreq	r3, .L37+8
	ldrne	r3, .L37+12
	ldr	r4, .L37+16
	ldr	r2, .L37+20
	ldr	r8, [r3]
	ldr	r2, [r2]
	ldr	r3, [r4]
	cmp	r3, r2
	beq	.L1
	ldr	r2, .L37+24
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L6
.L10:
	ldr	r0, .L37+28
	bl	mutex_enter
	ldr	r3, [r6]
	cmp	r3, #1
	ble	.L7
	ldr	r3, .L37+32
	mov	r0, r5
	ldr	r1, [r3]
	bl	spa_feature_is_enabled
	cmp	r0, #0
	beq	.L7
	ldr	r3, [r6, #8]
	ldr	r0, [r6]
	mov	r1, #1
	add	r0, r0, r3
	bl	MAX
	mov	r9, r0
	ldr	fp, .L37+36
	ldr	r10, .L37+40
	ldr	r3, .L37+44
	ldr	ip, [r4, #4]
	ldr	r3, [r3]
	ldr	r2, [fp]
	ldr	r1, [r10]
	mov	r0, r5
	mul	r9, ip, r9
	bl	spa_config_enter
	mov	r0, r5
	bl	spa_num_top_vdevs
	mul	r9, r0, r9
	ldr	r3, [r7]
	ldr	r2, [fp]
	str	r9, [r3, #4]
	ldr	r1, [r10]
	mov	r0, r5
	bl	spa_config_exit
	mov	r3, #1
	mov	r7, #0
	str	r3, [sp, #16]
	ldr	r2, [r6]
	ldr	r3, [r4, #4]
	mov	r1, r7
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	mov	r2, r7
	ldr	r3, [r4, #12]
	mov	r0, r7
	stm	sp, {r7, r8}
	bl	make_vdev_root
	mov	r9, r0
	mov	r0, r5
	mov	r1, r9
	bl	spa_vdev_add
	mov	r6, r0
	mov	r0, r9
	bl	nvlist_free
	ldr	r3, .L37+48
	ldr	r9, [r3]
	cmp	r9, r6
	beq	.L33
	cmp	r6, #0
	bne	.L34
.L12:
	mov	r0, r5
	bl	spa_special_class
	ldr	r3, [r0]
	cmp	r3, #1
	beq	.L35
.L13:
	ldr	r0, .L37+28
	bl	mutex_exit
	ldr	r3, [r4, #8]
	cmp	r3, #2
	ble	.L1
	ldr	r3, .L37+8
	mov	r0, r8
	ldr	r1, [r3]
	bl	strcmp
	cmp	r0, #0
	mov	r0, r5
	bne	.L16
	bl	spa_special_class
.L17:
	mov	r1, r8
	ldr	r2, [r0]
	ldr	r0, .L37+52
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	printf
.L7:
	ldr	r0, .L37+28
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	mutex_exit
.L6:
	mov	r0, #2
	bl	ztest_random
	cmp	r0, #0
	bne	.L10
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	mov	r2, r6
	mov	r0, r7
	ldr	r1, .L37+56
	bl	fatal
	b	.L13
.L33:
	ldr	r0, .L37+60
	bl	ztest_record_enospc
	cmp	r9, r7
	bne	.L13
	b	.L12
.L16:
	bl	spa_dedup_class
	b	.L17
.L35:
	mov	r0, #2
	bl	ztest_random
	cmp	r0, #0
	bne	.L13
	ldr	r3, [r4, #8]
	cmp	r3, #2
	bgt	.L36
.L15:
	ldr	r1, [sp, #28]
	ldr	r2, .L37+64
	ldr	r3, .L37+68
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r2, #32768
	bl	ztest_dsl_prop_set_uint64
	b	.L13
.L36:
	ldr	r0, .L37+72
	bl	puts
	b	.L15
.L38:
	.align	2
.L37:
	.word	ztest_spa
	.word	ztest_shared
	.word	VDEV_ALLOC_BIAS_SPECIAL
	.word	VDEV_ALLOC_BIAS_DEDUP
	.word	ztest_opts
	.word	ZTEST_VDEV_CLASS_OFF
	.word	ZTEST_VDEV_CLASS_RND
	.word	ztest_vdev_lock
	.word	SPA_FEATURE_ALLOCATION_CLASSES
	.word	FTAG
	.word	SCL_VDEV
	.word	RW_READER
	.word	ENOSPC
	.word	.LC3
	.word	.LC1
	.word	.LC0
	.word	ZFS_PROP_SPECIAL_SMALL_BLOCKS
	.word	B_FALSE
	.word	.LC2
	.size	ztest_vdev_class_add, .-ztest_vdev_class_add
	.comm	ztest_vdev_lock,4,4
	.comm	ztest_spa,4,4
	.comm	ztest_shared,4,4
	.comm	ztest_opts,16,4
	.comm	ZTEST_VDEV_CLASS_RND,4,4
	.comm	ZTEST_VDEV_CLASS_OFF,4,4
	.comm	ZFS_PROP_SPECIAL_SMALL_BLOCKS,4,4
	.comm	VDEV_ALLOC_BIAS_SPECIAL,4,4
	.comm	VDEV_ALLOC_BIAS_DEDUP,4,4
	.comm	SPA_FEATURE_ALLOCATION_CLASSES,4,4
	.comm	SCL_VDEV,4,4
	.comm	RW_READER,4,4
	.comm	FTAG,4,4
	.comm	ENOSPC,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
