	.file	"extr_ztest.c_make_vdev_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"can't open %s"
.LC1:
	.string	"can't ftruncate %s"
	.text
	.p2align 4
	.type	make_vdev_file, @function
make_vdev_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rcx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR UMEM_NOFAIL[rip]
	mov	edi, DWORD PTR MAXPATHLEN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	umem_alloc@PLT
	mov	rbp, rax
	test	r12, r12
	je	.L19
	test	r13, r13
	je	.L20
.L3:
	test	r14, r14
	jne	.L21
.L7:
	mov	esi, DWORD PTR NV_UNIQUE_NAME[rip]
	xor	edx, edx
	mov	rdi, rsp
	call	nvlist_alloc@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	rdx, QWORD PTR VDEV_TYPE_FILE[rip]
	mov	esi, DWORD PTR ZPOOL_CONFIG_TYPE[rip]
	mov	rdi, QWORD PTR [rsp]
	call	nvlist_add_string@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	esi, DWORD PTR ZPOOL_CONFIG_PATH[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	rdx, r13
	call	nvlist_add_string@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	esi, DWORD PTR ZPOOL_CONFIG_ASHIFT[rip]
	mov	rdi, QWORD PTR [rsp]
	mov	rdx, r12
	call	nvlist_add_uint64@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	mov	esi, DWORD PTR MAXPATHLEN[rip]
	mov	rdi, rbp
	call	umem_free@PLT
	mov	rax, QWORD PTR [rsp]
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.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
.L19:
	.cfi_restore_state
	xor	eax, eax
	call	ztest_get_ashift@PLT
	mov	r12, rax
	test	r13, r13
	jne	.L3
.L20:
	mov	rax, QWORD PTR ztest_shared[rip]
	test	r15, r15
	je	.L4
	test	rbx, rbx
	mov	rdx, QWORD PTR ztest_aux_template[rip]
	mov	r9, r15
	mov	rdi, rbp
	mov	ecx, DWORD PTR ztest_opts[rip+8]
	cmove	rbx, QWORD PTR ztest_opts[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	push	QWORD PTR [rax]
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR MAXPATHLEN[rip]
	xor	eax, eax
	mov	r13, rbp
	mov	r8, rbx
	call	snprintf@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	test	r14, r14
	je	.L7
.L21:
	mov	esi, DWORD PTR O_RDWR[rip]
	mov	edx, 438
	mov	rdi, r13
	or	esi, DWORD PTR O_CREAT[rip]
	or	esi, DWORD PTR O_TRUNC[rip]
	call	open@PLT
	mov	r15d, eax
	cmp	eax, -1
	je	.L23
.L8:
	mov	rsi, r14
	mov	edi, r15d
	call	ftruncate@PLT
	test	rax, rax
	jne	.L24
.L9:
	mov	edi, r15d
	call	close@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdx, r13
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	fatal@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	movsx	r9, DWORD PTR 8[rax]
	test	rbx, rbx
	mov	ecx, DWORD PTR ztest_opts[rip+8]
	mov	rdi, rbp
	cmove	rbx, QWORD PTR ztest_opts[rip]
	mov	esi, DWORD PTR MAXPATHLEN[rip]
	mov	r13, rbp
	lea	edx, 1[r9]
	mov	DWORD PTR 8[rax], edx
	mov	rdx, QWORD PTR ztest_dev_template[rip]
	mov	r8, rbx
	xor	eax, eax
	call	snprintf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	fatal@PLT
	jmp	.L8
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	make_vdev_file, .-make_vdev_file
	.comm	ztest_shared,8,8
	.comm	ztest_opts,16,16
	.comm	ztest_dev_template,8,8
	.comm	ztest_aux_template,8,8
	.comm	ZPOOL_CONFIG_TYPE,4,4
	.comm	ZPOOL_CONFIG_PATH,4,4
	.comm	ZPOOL_CONFIG_ASHIFT,4,4
	.comm	VDEV_TYPE_FILE,8,8
	.comm	UMEM_NOFAIL,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	NV_UNIQUE_NAME,4,4
	.comm	MAXPATHLEN,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_make_vdev_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"can't open %s\000"
	.align	2
.LC1:
	.ascii	"can't ftruncate %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_vdev_file, %function
make_vdev_file:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r1
	ldr	r10, .L25
	ldr	r1, .L25+4
	mov	r6, r3
	ldr	r3, .L25+8
	sub	sp, sp, #24
	mov	r4, r0
	ldr	r1, [r1]
	ldr	r0, [r10]
	ldr	r7, [sp, #56]
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	umem_alloc
	cmp	r7, #0
	mov	r5, r0
	beq	.L19
	cmp	r4, #0
	beq	.L20
.L3:
	cmp	r6, #0
	bne	.L21
.L7:
	ldr	r3, .L25+12
	mov	r2, #0
	ldr	r1, [r3]
	add	r0, sp, #16
	bl	nvlist_alloc
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L25+16
	ldr	r2, .L25+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [sp, #16]
	bl	nvlist_add_string
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L25+24
	mov	r2, r4
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	nvlist_add_string
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	ldr	r3, .L25+28
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [sp, #16]
	bl	nvlist_add_uint64
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	mov	r0, r5
	ldr	r1, [r10]
	bl	umem_free
	ldr	r3, .L25+8
	ldr	r0, [sp, #16]
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L22
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L19:
	bl	ztest_get_ashift
	cmp	r4, #0
	mov	r7, r0
	bne	.L3
.L20:
	ldr	r3, .L25+32
	ldr	r0, .L25+36
	cmp	r9, #0
	ldr	r2, [r3]
	ldr	r1, [r10]
	ldr	r3, [r0, #4]
	beq	.L4
	cmp	r8, #0
	ldreq	r8, [r0]
	ldr	ip, [r2]
	ldr	lr, .L25+40
	mov	r0, r5
	ldr	r2, [lr]
	stm	sp, {r8, r9, ip}
	bl	snprintf
	cmp	r6, #0
	mov	r4, r5
	beq	.L7
.L21:
	ldr	r3, .L25+44
	ldr	r2, .L25+48
	ldr	r1, .L25+52
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r1]
	orr	r3, r3, r2
	mov	r0, r4
	ldr	r2, .L25+56
	orr	r1, r3, r1
	bl	open
	cmn	r0, #1
	mov	r8, r0
	beq	.L23
.L8:
	mov	r1, r6
	mov	r0, r8
	bl	ftruncate
	cmp	r0, #0
	bne	.L24
.L9:
	mov	r0, r8
	bl	close
	b	.L7
.L24:
	mov	r2, r4
	ldr	r1, .L25+60
	mov	r0, #1
	bl	fatal
	b	.L9
.L4:
	ldr	ip, [r2, #4]
	cmp	r8, #0
	ldreq	r8, [r0]
	ldr	lr, .L25+64
	add	r4, ip, #1
	str	r4, [r2, #4]
	mov	r0, r5
	ldr	r2, [lr]
	stm	sp, {r8, ip}
	bl	snprintf
	mov	r4, r5
	b	.L3
.L23:
	mov	r2, r4
	ldr	r1, .L25+68
	mov	r0, #1
	bl	fatal
	b	.L8
.L22:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	MAXPATHLEN
	.word	UMEM_NOFAIL
	.word	.LC2
	.word	NV_UNIQUE_NAME
	.word	ZPOOL_CONFIG_TYPE
	.word	VDEV_TYPE_FILE
	.word	ZPOOL_CONFIG_PATH
	.word	ZPOOL_CONFIG_ASHIFT
	.word	ztest_shared
	.word	ztest_opts
	.word	ztest_aux_template
	.word	O_RDWR
	.word	O_CREAT
	.word	O_TRUNC
	.word	438
	.word	.LC1
	.word	ztest_dev_template
	.word	.LC0
	.size	make_vdev_file, .-make_vdev_file
	.comm	ztest_shared,4,4
	.comm	ztest_opts,8,4
	.comm	ztest_dev_template,4,4
	.comm	ztest_aux_template,4,4
	.comm	ZPOOL_CONFIG_TYPE,4,4
	.comm	ZPOOL_CONFIG_PATH,4,4
	.comm	ZPOOL_CONFIG_ASHIFT,4,4
	.comm	VDEV_TYPE_FILE,4,4
	.comm	UMEM_NOFAIL,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	NV_UNIQUE_NAME,4,4
	.comm	MAXPATHLEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
