	.file	"extr_ztest.c_ztest_split_pool.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"splitp"
.LC1:
	.string	"successful split - results:\n"
	.text
	.p2align 4
	.globl	ztest_split_pool
	.type	ztest_split_pool, @function
ztest_split_pool:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR ztest_opts[rip+8], 0
	je	.L24
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L25
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rax, QWORD PTR ztest_shared[rip]
	mov	rbp, QWORD PTR ztest_spa[rip]
	lea	rdi, ztest_vdev_lock[rip]
	mov	rbx, rax
	mov	QWORD PTR 16[rsp], rax
	mov	r12, QWORD PTR 8[rbp]
	call	mutex_enter@PLT
	cmp	DWORD PTR [rbx], 2
	jle	.L14
	cmp	DWORD PTR ztest_opts[rip], 1
	jle	.L4
.L14:
	lea	rdi, ztest_vdev_lock[rip]
	call	mutex_exit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rdi, .LC0[rip]
	call	spa_destroy@PLT
	mov	ecx, DWORD PTR RW_READER[rip]
	mov	edx, DWORD PTR FTAG[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR SCL_VDEV[rip]
	call	spa_config_enter@PLT
	mov	rdi, rbp
	call	mutex_enter@PLT
	mov	esi, DWORD PTR ZPOOL_CONFIG_VDEV_TREE[rip]
	mov	edi, DWORD PTR 4[rbp]
	lea	rdx, 32[rsp]
	call	nvlist_lookup_nvlist@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	rdi, rbp
	call	mutex_exit@PLT
	mov	esi, DWORD PTR ZPOOL_CONFIG_CHILDREN[rip]
	mov	rdi, QWORD PTR 32[rsp]
	lea	rcx, 48[rsp]
	lea	rdx, 40[rsp]
	call	nvlist_lookup_nvlist_array@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	eax, DWORD PTR [r12]
	lea	edi, 0[0+rax*8]
	call	malloc@PLT
	mov	rcx, QWORD PTR 48[rsp]
	mov	QWORD PTR 24[rsp], rax
	test	rcx, rcx
	je	.L5
	mov	rbx, rax
	xor	ecx, ecx
	lea	r15, 64[rsp]
	xor	r13d, r13d
	lea	r14, 56[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR 40[rsp]
	mov	esi, DWORD PTR ZPOOL_CONFIG_CHILDREN[rip]
	mov	rcx, r15
	mov	rdi, QWORD PTR [rax+rdx]
	mov	rdx, r14
	call	nvlist_lookup_nvlist_array@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	edx, edx
	mov	rsi, rbx
	mov	rdi, QWORD PTR [rax]
	call	nvlist_dup@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	add	rbx, 8
	call	VERIFY@PLT
	xor	ecx, ecx
	cmp	QWORD PTR 48[rsp], r13
	jbe	.L26
.L10:
	mov	rax, QWORD PTR 24[r12]
	lea	rdx, 0[0+r13*8]
	mov	r9, r13
	mov	rax, QWORD PTR [rax+r13*8]
	add	r13, 1
	cmp	QWORD PTR 16[rax], 0
	jne	.L6
	lea	rsi, vdev_hole_ops[rip]
	cmp	QWORD PTR 8[rax], rsi
	jne	.L7
.L6:
	mov	esi, DWORD PTR NV_UNIQUE_NAME[rip]
	xor	edx, edx
	mov	rdi, rbx
	mov	QWORD PTR 8[rsp], rcx
	mov	QWORD PTR [rsp], r9
	call	nvlist_alloc@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	edx, DWORD PTR VDEV_TYPE_HOLE[rip]
	mov	esi, DWORD PTR ZPOOL_CONFIG_TYPE[rip]
	mov	rdi, QWORD PTR [rbx]
	call	nvlist_add_string@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, DWORD PTR ZPOOL_CONFIG_IS_HOLE[rip]
	mov	edx, 1
	call	nvlist_add_uint64@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	rcx, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR [rsp]
	test	rcx, rcx
	cmove	rcx, r9
	add	rbx, 8
	cmp	QWORD PTR 48[rsp], r13
	ja	.L10
.L26:
	mov	esi, DWORD PTR NV_UNIQUE_NAME[rip]
	xor	edx, edx
	mov	rdi, r15
	mov	QWORD PTR [rsp], rcx
	call	nvlist_alloc@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	edx, DWORD PTR VDEV_TYPE_ROOT[rip]
	mov	esi, DWORD PTR ZPOOL_CONFIG_TYPE[rip]
	mov	rdi, QWORD PTR 64[rsp]
	call	nvlist_add_string@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	rcx, QWORD PTR [rsp]
	test	rcx, rcx
	cmove	rcx, r13
.L11:
	mov	rbx, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR ZPOOL_CONFIG_CHILDREN[rip]
	mov	rdi, QWORD PTR 64[rsp]
	mov	rdx, rbx
	lea	r12, [rbx+r13*8]
	call	nvlist_add_nvlist_array@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	esi, DWORD PTR NV_UNIQUE_NAME[rip]
	xor	edx, edx
	mov	rdi, r14
	call	nvlist_alloc@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	rdx, QWORD PTR 64[rsp]
	mov	esi, DWORD PTR ZPOOL_CONFIG_VDEV_TREE[rip]
	mov	rdi, QWORD PTR 56[rsp]
	call	nvlist_add_nvlist@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	test	r13, r13
	je	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR [rbx]
	add	rbx, 8
	call	nvlist_free@PLT
	cmp	r12, rbx
	jne	.L15
.L16:
	mov	rdi, QWORD PTR 24[rsp]
	call	free@PLT
	mov	rdi, QWORD PTR 64[rsp]
	call	nvlist_free@PLT
	mov	edx, DWORD PTR FTAG[rip]
	mov	esi, DWORD PTR SCL_VDEV[rip]
	mov	rdi, rbp
	call	spa_config_exit@PLT
	lea	rdi, ztest_name_lock[rip]
	call	pthread_rwlock_wrlock@PLT
	mov	rdx, QWORD PTR 56[rsp]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	r8d, DWORD PTR B_FALSE[rip]
	lea	rsi, .LC0[rip]
	call	spa_vdev_split_mirror@PLT
	lea	rdi, ztest_name_lock[rip]
	mov	ebx, eax
	call	pthread_rwlock_unlock@PLT
	mov	rdi, QWORD PTR 56[rsp]
	call	nvlist_free@PLT
	test	ebx, ebx
	jne	.L14
	lea	rdi, .LC1[rip]
	call	printf@PLT
	lea	rdi, spa_namespace_lock[rip]
	call	mutex_enter@PLT
	mov	rdi, rbp
	call	show_pool_stats@PLT
	lea	rdi, .LC0[rip]
	call	spa_lookup@PLT
	mov	rdi, rax
	call	show_pool_stats@PLT
	lea	rdi, spa_namespace_lock[rip]
	call	mutex_exit@PLT
	mov	rax, QWORD PTR 16[rsp]
	add	DWORD PTR 4[rax], 1
	sub	DWORD PTR [rax], 1
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L5:
	xor	edx, edx
	lea	rdi, 64[rsp]
	mov	QWORD PTR [rsp], rcx
	lea	r14, 56[rsp]
	mov	esi, DWORD PTR NV_UNIQUE_NAME[rip]
	call	nvlist_alloc@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	edx, DWORD PTR VDEV_TYPE_ROOT[rip]
	mov	esi, DWORD PTR ZPOOL_CONFIG_TYPE[rip]
	mov	rdi, QWORD PTR 64[rsp]
	call	nvlist_add_string@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	xor	r13d, r13d
	call	VERIFY@PLT
	mov	rcx, QWORD PTR [rsp]
	jmp	.L11
.L25:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ztest_split_pool, .-ztest_split_pool
	.comm	ztest_vdev_lock,4,4
	.comm	ztest_spa,8,8
	.comm	ztest_shared,8,8
	.comm	ztest_opts,16,16
	.comm	ztest_name_lock,4,4
	.comm	vdev_hole_ops,4,4
	.comm	spa_namespace_lock,4,4
	.comm	ZPOOL_CONFIG_VDEV_TREE,4,4
	.comm	ZPOOL_CONFIG_TYPE,4,4
	.comm	ZPOOL_CONFIG_IS_HOLE,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,4,4
	.comm	VDEV_TYPE_ROOT,4,4
	.comm	VDEV_TYPE_HOLE,4,4
	.comm	SCL_VDEV,4,4
	.comm	RW_READER,4,4
	.comm	NV_UNIQUE_NAME,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_split_pool.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"splitp\000"
	.align	2
.LC1:
	.ascii	"successful split - results:\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ztest_split_pool
	.syntax unified
	.arm
	.fpu softvfp
	.type	ztest_split_pool, %function
ztest_split_pool:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L26
	ldr	r3, .L26+4
	ldr	r4, [r5, #4]
	sub	sp, sp, #52
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	beq	.L23
.L1:
	ldr	r3, .L26+4
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r3, .L26+8
	ldr	r2, .L26+12
	ldr	r10, [r3]
	ldr	r8, [r2]
	ldr	r0, .L26+16
	ldr	r9, [r8, #8]
	bl	mutex_enter
	ldr	r3, [r10]
	cmp	r3, #2
	ble	.L14
	ldr	r3, [r5]
	cmp	r3, #1
	ble	.L4
.L14:
	ldr	r0, .L26+16
	bl	mutex_exit
	b	.L1
.L4:
	ldr	r0, .L26+20
	bl	spa_destroy
	ldr	r3, .L26+24
	ldr	r2, .L26+28
	ldr	r1, .L26+32
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	mov	r0, r8
	bl	spa_config_enter
	mov	r0, r8
	bl	mutex_enter
	ldr	r3, .L26+36
	add	r2, sp, #24
	ldr	r1, [r3]
	ldr	r0, [r8, #4]
	bl	nvlist_lookup_nvlist
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	mov	r0, r8
	bl	mutex_exit
	ldr	r3, .L26+40
	add	r2, sp, #28
	ldr	r1, [r3]
	ldr	r0, [sp, #24]
	add	r3, sp, #32
	bl	nvlist_lookup_nvlist_array
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r0, [r9]
	lsl	r0, r0, #2
	bl	malloc
	ldr	r7, [sp, #32]
	str	r0, [sp, #16]
	cmp	r7, #0
	beq	.L5
	ldr	r3, .L26+44
	mov	r7, r4
	mov	r5, r0
	str	r3, [sp, #12]
	add	fp, sp, #36
	str	r8, [sp, #20]
	b	.L10
.L7:
	ldr	r2, [sp, #28]
	add	r3, sp, #40
	ldr	r0, [r2, r1]
	ldr	r1, .L26+40
	mov	r2, fp
	ldr	r1, [r1]
	bl	nvlist_lookup_nvlist_array
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, [sp, #36]
	mov	r1, r5
	ldr	r0, [r3]
	mov	r2, r6
	bl	nvlist_dup
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, [sp, #32]
	mov	r7, r6
	cmp	r3, r4
	add	r5, r5, #4
	bls	.L25
.L10:
	ldr	r3, [r9, #12]
	mov	r8, r4
	ldr	r2, [r3, r4, lsl #2]
	lsl	r1, r4, #2
	ldr	r6, [r2, #8]
	add	r4, r4, #1
	cmp	r6, #0
	bne	.L6
	ldr	r2, [r2, #4]
	ldr	r3, .L26+48
	cmp	r2, r3
	bne	.L7
.L6:
	ldr	r3, [sp, #12]
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	nvlist_alloc
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L26+52
	ldr	r0, [r5]
	ldr	r2, [r3]
	ldr	r3, .L26+56
	add	r5, r5, #4
	ldr	r1, [r3]
	bl	nvlist_add_string
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L26+60
	mov	r2, #1
	ldr	r1, [r3]
	ldr	r0, [r5, #-4]
	bl	nvlist_add_uint64
	clz	r0, r0
	cmp	r7, #0
	lsr	r0, r0, #5
	moveq	r7, r8
	bl	VERIFY
	ldr	r3, [sp, #32]
	cmp	r3, r4
	bhi	.L10
.L25:
	ldr	r3, [sp, #12]
	mov	r2, #0
	ldr	r1, [r3]
	add	r0, sp, #40
	ldr	r8, [sp, #20]
	bl	nvlist_alloc
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L26+64
	ldr	r2, .L26+56
	ldr	r0, [sp, #40]
	ldr	r1, [r2]
	ldr	r2, [r3]
	bl	nvlist_add_string
	clz	r0, r0
	cmp	r7, #0
	lsr	r0, r0, #5
	moveq	r7, r4
	bl	VERIFY
	ldr	r3, .L26+40
	ldr	r0, [sp, #40]
	ldr	r1, [r3]
.L11:
	mov	r3, r7
	ldr	r2, [sp, #16]
	bl	nvlist_add_nvlist_array
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, [sp, #12]
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, fp
	bl	nvlist_alloc
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L26+36
	ldr	r2, [sp, #40]
	ldr	r1, [r3]
	ldr	r0, [sp, #36]
	bl	nvlist_add_nvlist
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	cmp	r4, #0
	beq	.L16
	ldr	r3, [sp, #16]
	sub	r5, r3, #4
	add	r4, r5, r4, lsl #2
.L15:
	ldr	r0, [r5, #4]!
	bl	nvlist_free
	cmp	r5, r4
	bne	.L15
.L16:
	ldr	r0, [sp, #16]
	bl	free
	ldr	r0, [sp, #40]
	bl	nvlist_free
	ldr	r3, .L26+28
	mov	r0, r8
	ldr	r2, [r3]
	ldr	r3, .L26+32
	ldr	r1, [r3]
	bl	spa_config_exit
	ldr	r0, .L26+68
	bl	pthread_rwlock_wrlock
	ldr	r2, .L26+72
	mov	r3, #0
	ldr	r1, [r2]
	mov	r0, r8
	ldr	r2, [sp, #36]
	str	r1, [sp]
	ldr	r1, .L26+20
	bl	spa_vdev_split_mirror
	mov	r4, r0
	ldr	r0, .L26+68
	bl	pthread_rwlock_unlock
	ldr	r0, [sp, #36]
	bl	nvlist_free
	cmp	r4, #0
	bne	.L14
	ldr	r0, .L26+76
	bl	printf
	ldr	r0, .L26+80
	bl	mutex_enter
	mov	r0, r8
	bl	show_pool_stats
	ldr	r0, .L26+20
	bl	spa_lookup
	bl	show_pool_stats
	ldr	r0, .L26+80
	bl	mutex_exit
	ldr	r2, [r10, #4]
	ldr	r3, [r10]
	add	r2, r2, #1
	sub	r3, r3, #1
	str	r2, [r10, #4]
	str	r3, [r10]
	b	.L14
.L5:
	ldr	r3, .L26+44
	mov	r2, r7
	ldr	r1, [r3]
	add	r0, sp, #40
	str	r3, [sp, #12]
	bl	nvlist_alloc
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L26+56
	ldr	r2, .L26+64
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [sp, #40]
	bl	nvlist_add_string
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L26+40
	mov	r4, r7
	ldr	r1, [r3]
	ldr	r0, [sp, #40]
	add	fp, sp, #36
	b	.L11
.L24:
	bl	__stack_chk_fail
.L27:
	.align	2
.L26:
	.word	ztest_opts
	.word	.LC2
	.word	ztest_shared
	.word	ztest_spa
	.word	ztest_vdev_lock
	.word	.LC0
	.word	RW_READER
	.word	FTAG
	.word	SCL_VDEV
	.word	ZPOOL_CONFIG_VDEV_TREE
	.word	ZPOOL_CONFIG_CHILDREN
	.word	NV_UNIQUE_NAME
	.word	vdev_hole_ops
	.word	VDEV_TYPE_HOLE
	.word	ZPOOL_CONFIG_TYPE
	.word	ZPOOL_CONFIG_IS_HOLE
	.word	VDEV_TYPE_ROOT
	.word	ztest_name_lock
	.word	B_FALSE
	.word	.LC1
	.word	spa_namespace_lock
	.size	ztest_split_pool, .-ztest_split_pool
	.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	vdev_hole_ops,4,4
	.comm	spa_namespace_lock,4,4
	.comm	ZPOOL_CONFIG_VDEV_TREE,4,4
	.comm	ZPOOL_CONFIG_TYPE,4,4
	.comm	ZPOOL_CONFIG_IS_HOLE,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,4,4
	.comm	VDEV_TYPE_ROOT,4,4
	.comm	VDEV_TYPE_HOLE,4,4
	.comm	SCL_VDEV,4,4
	.comm	RW_READER,4,4
	.comm	NV_UNIQUE_NAME,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
