	.file	"746008.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"I'm staying. Finishing my coffee. Enjoying my coffee."
	.section	.data.rel.local,"aw"
	.align 8
	.type	str, @object
	.size	str, 8
str:
	.quad	.LC0
	.section	.rodata
.LC1:
	.string	"/"
.LC2:
	.string	"open directory rdwr"
.LC3:
	.string	"open directory wr"
.LC4:
	.string	"open directory"
.LC5:
	.string	"open directory rd"
.LC6:
	.string	"read directory"
.LC7:
	.string	"write directory"
.LC8:
	.string	"hello"
.LC9:
	.string	"open file as directory"
.LC10:
	.string	"open"
.LC11:
	.string	"read"
.LC12:
	.string	"lseek"
.LC13:
	.string	"write"
	.align 8
.LC14:
	.string	"read #2 fail: expecting %ld bytes, rv: %ld\n"
	.align 8
.LC15:
	.string	"basic write fail: string mismatch"
.LC16:
	.string	"stat"
	.align 8
.LC17:
	.string	"invalid number of allocated blocks: %ld\n"
	.text
	.globl	basic_write_test
	.type	basic_write_test, @function
basic_write_test:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 448
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 2
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], -1
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 21
	je	.L3
.L2:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], -1
	jne	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 21
	je	.L5
.L4:
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	esi, 65536
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], 0
	jns	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 0
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], 0
	jns	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	cmp	rax, -1
	jne	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 21
	je	.L9
.L8:
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	rax, -1
	jne	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L11
.L10:
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 65538
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 20
	je	.L13
.L12:
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	esi, 2
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -436[rbp], eax
	cmp	DWORD PTR -436[rbp], 0
	jns	.L14
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jns	.L15
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L16
.L15:
	cmp	QWORD PTR -432[rbp], 255
	jle	.L17
	mov	QWORD PTR -432[rbp], 255
.L17:
	lea	rdx, -272[rbp]
	mov	rax, QWORD PTR -432[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jns	.L18
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L16
.L18:
	mov	rax, QWORD PTR str[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -424[rbp], rax
	mov	rdx, QWORD PTR -424[rbp]
	mov	rcx, QWORD PTR str[rip]
	mov	eax, DWORD PTR -436[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -432[rbp], rax
	mov	rax, QWORD PTR -432[rbp]
	cmp	rax, QWORD PTR -424[rbp]
	jge	.L19
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L16
.L19:
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jns	.L20
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L16
.L20:
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jns	.L21
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L16
.L21:
	mov	rax, QWORD PTR -432[rbp]
	cmp	rax, QWORD PTR -424[rbp]
	je	.L22
	mov	rdx, QWORD PTR -432[rbp]
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L22:
	mov	rax, QWORD PTR str[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR str[rip]
	lea	rcx, -272[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L23
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	lea	rdx, -416[rbp]
	mov	eax, DWORD PTR -436[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	cdqe
	mov	QWORD PTR -432[rbp], rax
	cmp	QWORD PTR -432[rbp], 0
	jns	.L24
	lea	rdi, .LC16[rip]
	call	perror@PLT
	jmp	.L16
.L24:
	mov	rax, QWORD PTR -352[rbp]
	test	rax, rax
	jg	.L25
	mov	rax, QWORD PTR -352[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L16
.L25:
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L28
	jmp	.L29
.L16:
	mov	eax, DWORD PTR -436[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	basic_write_test, .-basic_write_test
	.section	.rodata
.LC18:
	.string	"malloc of size %ld failed\n"
.LC19:
	.string	"scatter"
	.align 8
.LC20:
	.string	"scatter test fail: read content mismatch at offset %d\n"
	.text
	.globl	scatter_write_test
	.type	scatter_write_test, @function
scatter_write_test:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 352
	mov	QWORD PTR -344[rbp], rdi
	mov	DWORD PTR -348[rbp], esi
	mov	DWORD PTR -352[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -344[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L31
	mov	rax, QWORD PTR -344[rbp]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -344[rbp]
	mov	rdx, QWORD PTR -288[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	rdi, rcx
	call	memset@PLT
	mov	edx, 384
	mov	esi, 66
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -308[rbp], eax
	cmp	DWORD PTR -308[rbp], 0
	jns	.L32
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	rdx, QWORD PTR -344[rbp]
	mov	rcx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jns	.L33
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L34
.L33:
	mov	DWORD PTR -328[rbp], 0
	mov	DWORD PTR -324[rbp], 0
	jmp	.L35
.L48:
	call	random@PLT
	cqo
	xor	rax, rdx
	sub	rax, rdx
	cqo
	idiv	QWORD PTR -344[rbp]
	mov	rax, rdx
	mov	DWORD PTR -304[rbp], eax
	call	random@PLT
	cqo
	xor	rax, rdx
	sub	rax, rdx
	mov	edx, DWORD PTR -352[rbp]
	movsx	rcx, edx
	cqo
	idiv	rcx
	mov	rax, rdx
	mov	DWORD PTR -300[rbp], eax
	mov	eax, DWORD PTR -304[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -344[rbp]
	sub	rax, rcx
	mov	rdx, rax
	mov	eax, DWORD PTR -300[rbp]
	cdqe
	cmp	rdx, rax
	cmovle	rax, rdx
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	jne	.L36
	mov	QWORD PTR -296[rbp], 1
.L36:
	mov	eax, DWORD PTR -304[rbp]
	mov	DWORD PTR -320[rbp], eax
	jmp	.L37
.L38:
	call	random@PLT
	cqo
	xor	rax, rdx
	mov	rcx, rax
	sub	rcx, rdx
	movabs	rdx, -9187201950435737471
	mov	rax, rcx
	imul	rdx
	lea	rax, [rdx+rcx]
	sar	rax, 7
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	sal	rax, 8
	sub	rax, rdx
	sub	rcx, rax
	mov	rdx, rcx
	mov	eax, DWORD PTR -320[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rcx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -320[rbp], 1
.L37:
	mov	eax, DWORD PTR -320[rbp]
	cdqe
	mov	edx, DWORD PTR -304[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -296[rbp]
	add	rdx, rcx
	cmp	rax, rdx
	jl	.L38
	mov	eax, DWORD PTR -304[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -308[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jns	.L39
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L34
.L39:
	mov	rdx, QWORD PTR -296[rbp]
	mov	eax, DWORD PTR -304[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -288[rbp]
	add	rcx, rax
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	cmp	rax, QWORD PTR -296[rbp]
	jge	.L40
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L34
.L40:
	mov	eax, DWORD PTR -304[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -296[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -328[rbp]
	cdqe
	cmp	rdx, rax
	jle	.L41
	mov	rax, QWORD PTR -296[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -304[rbp]
	add	eax, edx
	mov	DWORD PTR -328[rbp], eax
.L41:
	mov	eax, DWORD PTR -308[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jns	.L42
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L34
.L42:
	mov	DWORD PTR -316[rbp], 0
.L47:
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 32
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	eax, DWORD PTR -328[rbp]
	sub	eax, DWORD PTR -316[rbp]
	mov	edx, 256
	cmp	eax, 256
	cmovg	eax, edx
	movsx	rdx, eax
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -308[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jns	.L43
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L34
.L43:
	mov	DWORD PTR -312[rbp], 0
	jmp	.L44
.L46:
	mov	eax, DWORD PTR -312[rbp]
	cdqe
	movzx	edx, BYTE PTR -272[rbp+rax]
	mov	ecx, DWORD PTR -316[rbp]
	mov	eax, DWORD PTR -312[rbp]
	add	eax, ecx
	movsx	rcx, eax
	mov	rax, QWORD PTR -288[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L45
	mov	edx, DWORD PTR -316[rbp]
	mov	eax, DWORD PTR -312[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L45:
	add	DWORD PTR -312[rbp], 1
.L44:
	mov	eax, DWORD PTR -312[rbp]
	cdqe
	cmp	QWORD PTR -280[rbp], rax
	jg	.L46
	mov	rax, QWORD PTR -280[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -316[rbp]
	add	eax, edx
	mov	DWORD PTR -316[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	cmp	eax, DWORD PTR -328[rbp]
	jl	.L47
	add	DWORD PTR -324[rbp], 1
.L35:
	mov	eax, DWORD PTR -324[rbp]
	cmp	eax, DWORD PTR -348[rbp]
	jl	.L48
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L51
	jmp	.L52
.L34:
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L52:
	call	__stack_chk_fail@PLT
.L51:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	scatter_write_test, .-scatter_write_test
	.section	.rodata
.LC21:
	.string	"append"
	.text
	.globl	append_write_test
	.type	append_write_test, @function
append_write_test:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 384
	mov	esi, 66
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 0
	jns	.L54
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jns	.L55
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L56
.L55:
	cmp	QWORD PTR -288[rbp], 0
	jg	.L54
	call	random@PLT
	cqo
	xor	rax, rdx
	sub	rax, rdx
	and	eax, 63
	mov	QWORD PTR -280[rbp], rax
	mov	DWORD PTR -296[rbp], 0
	jmp	.L57
.L58:
	call	random@PLT
	cqo
	xor	rax, rdx
	mov	rcx, rax
	sub	rcx, rdx
	movabs	rdx, 5675921253449092805
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 3
	mov	rsi, rcx
	sar	rsi, 63
	sub	rax, rsi
	mov	rdx, rax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	sub	rcx, rax
	mov	rdx, rcx
	mov	eax, edx
	lea	edx, 97[rax]
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -296[rbp], 1
.L57:
	mov	eax, DWORD PTR -296[rbp]
	cdqe
	cmp	QWORD PTR -280[rbp], rax
	jg	.L58
	mov	rdx, QWORD PTR -280[rbp]
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	cmp	rax, QWORD PTR -280[rbp]
	jge	.L59
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L56
.L59:
	mov	eax, DWORD PTR -292[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L62
	jmp	.L63
.L56:
	mov	eax, DWORD PTR -292[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L63:
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	append_write_test, .-append_write_test
	.section	.rodata
.LC22:
	.string	"new_file"
.LC23:
	.string	"ftruncate to BUFLEN / 2"
.LC24:
	.string	"unexpected file size %ld\n"
.LC25:
	.string	"read %ld bytes, expected %d\n"
	.align 8
.LC26:
	.string	"unexpected data 0x%02x at offset %d\n"
	.align 8
.LC27:
	.string	"ftruncate to same length as current length"
	.align 8
.LC28:
	.string	"negative length truncate test failed"
.LC29:
	.string	"ftruncate to BUFLEN / 4"
	.align 8
.LC30:
	.string	"read-only file truncate test failed"
	.align 8
.LC31:
	.string	"bad file descriptor truncate test failed"
.LC32:
	.string	"my_dir"
.LC33:
	.string	"mkdir"
	.align 8
.LC34:
	.string	"directory truncate test failed"
.LC35:
	.string	"nonexisting"
	.align 8
.LC36:
	.string	"non-existing file truncate test failed"
.LC37:
	.string	"eventfd"
	.align 8
.LC38:
	.string	"non-regular file truncate test failed"
	.align 8
.LC39:
	.string	"Could truncate program executable file"
	.text
	.globl	truncate_test
	.type	truncate_test, @function
truncate_test:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 464
	mov	QWORD PTR -456[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 384
	mov	esi, 66
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], 0
	jns	.L65
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L65:
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 128
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	jns	.L66
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L66:
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jns	.L67
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L67:
	cmp	QWORD PTR -424[rbp], 128
	je	.L68
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L68:
	mov	eax, DWORD PTR -440[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rax, -416[rbp]
	mov	rsi, rax
	lea	rdi, .LC22[rip]
	call	stat@PLT
	cdqe
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jns	.L69
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L69:
	mov	rax, QWORD PTR -368[rbp]
	cmp	rax, 128
	je	.L70
	mov	rax, QWORD PTR -368[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L70:
	mov	esi, 2
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], 0
	jns	.L71
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L71:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jns	.L72
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L73
.L72:
	cmp	QWORD PTR -424[rbp], 128
	je	.L74
	mov	rax, QWORD PTR -424[rbp]
	mov	edx, 128
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L74:
	mov	DWORD PTR -436[rbp], 0
	jmp	.L75
.L77:
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	test	al, al
	je	.L76
	mov	eax, DWORD PTR -436[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	mov	edx, DWORD PTR -436[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L76:
	add	DWORD PTR -436[rbp], 1
.L75:
	cmp	DWORD PTR -436[rbp], 127
	jle	.L77
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 128
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	jns	.L78
	lea	rdi, .LC27[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L78:
	mov	eax, DWORD PTR -440[rbp]
	mov	rsi, -1
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	je	.L79
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L80
.L79:
	lea	rdi, .LC28[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L80:
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jns	.L81
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L73
.L81:
	mov	DWORD PTR -432[rbp], 0
	jmp	.L82
.L83:
	mov	eax, DWORD PTR -432[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -432[rbp]
	cdqe
	mov	BYTE PTR -272[rbp+rax], dl
	add	DWORD PTR -432[rbp], 1
.L82:
	cmp	DWORD PTR -432[rbp], 127
	jle	.L83
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, 128
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 127
	jg	.L84
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L73
.L84:
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 64
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	jns	.L85
	lea	rdi, .LC29[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L85:
	mov	eax, DWORD PTR -440[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 2
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], 0
	jns	.L86
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L86:
	lea	rcx, -272[rbp]
	mov	eax, DWORD PTR -440[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -424[rbp], rax
	cmp	QWORD PTR -424[rbp], 0
	jns	.L87
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L73
.L87:
	cmp	QWORD PTR -424[rbp], 64
	je	.L88
	mov	rax, QWORD PTR -424[rbp]
	mov	edx, 64
	mov	rsi, rax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L88:
	mov	DWORD PTR -428[rbp], 0
	jmp	.L89
.L91:
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	cmp	DWORD PTR -428[rbp], eax
	je	.L90
	mov	eax, DWORD PTR -428[rbp]
	cdqe
	movzx	eax, BYTE PTR -272[rbp+rax]
	movzx	eax, al
	mov	edx, DWORD PTR -428[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L90:
	add	DWORD PTR -428[rbp], 1
.L89:
	cmp	DWORD PTR -428[rbp], 63
	jle	.L91
	mov	eax, DWORD PTR -440[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 0
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], 0
	jns	.L92
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L92:
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 0
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	je	.L93
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L94
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L94
.L93:
	lea	rdi, .LC30[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L94:
	mov	eax, DWORD PTR -440[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 0
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	je	.L95
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 9
	je	.L96
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L96
.L95:
	lea	rdi, .LC31[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L96:
	mov	esi, 384
	lea	rdi, .LC32[rip]
	call	mkdir@PLT
	test	eax, eax
	jns	.L97
	lea	rdi, .LC33[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L97:
	mov	esi, 0
	lea	rdi, .LC32[rip]
	call	truncate@PLT
	test	eax, eax
	je	.L98
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 21
	je	.L99
.L98:
	lea	rdi, .LC34[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L99:
	mov	esi, 0
	lea	rdi, .LC35[rip]
	call	truncate@PLT
	test	eax, eax
	je	.L100
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L101
.L100:
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L101:
	mov	esi, 0
	mov	edi, 0
	call	eventfd@PLT
	mov	DWORD PTR -440[rbp], eax
	cmp	DWORD PTR -440[rbp], 0
	jns	.L102
	lea	rdi, .LC37[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L102:
	mov	eax, DWORD PTR -440[rbp]
	mov	esi, 0
	mov	edi, eax
	call	ftruncate@PLT
	test	eax, eax
	je	.L103
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 22
	je	.L104
.L103:
	lea	rdi, .LC38[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L104:
	mov	eax, DWORD PTR -440[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -456[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	truncate@PLT
	test	eax, eax
	jne	.L109
	lea	rdi, .LC39[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L73:
	mov	eax, DWORD PTR -440[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L109:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L108
	call	__stack_chk_fail@PLT
.L108:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	truncate_test, .-truncate_test
	.section	.rodata
	.align 8
.LC40:
	.string	"Could access program executable file in write mode"
	.align 8
.LC41:
	.string	"Unexpected error from access(prog, W_OK)"
	.align 8
.LC42:
	.string	"Could open program executable file for writing"
	.align 8
.LC43:
	.string	"Could open program executable file in write-only mode"
	.text
	.type	write_exec_test, @function
write_exec_test:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	access@PLT
	test	eax, eax
	jne	.L111
	lea	rdi, .LC40[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L111:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	je	.L112
	lea	rdi, .LC41[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L112:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L113
	lea	rdi, .LC42[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L113:
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L115
	lea	rdi, .LC43[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L115:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	write_exec_test, .-write_exec_test
	.type	timerspec_sub, @function
timerspec_sub:
.LFB11:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jge	.L118
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 1000000000
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
.L118:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	timerspec_sub, .-timerspec_sub
	.section	.rodata
.LC44:
	.string	"   %5s   %ld.%.9lds"
.LC45:
	.string	" (%lld KB/s)\n"
	.text
	.type	print_op_stats, @function
print_op_stats:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -32[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	timerspec_sub
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	QWORD PTR -80[rbp], 0
	je	.L120
	mov	rax, QWORD PTR -32[rbp]
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	imul	rax, rax, 976562
	mov	edx, 0
	div	QWORD PTR -48[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L123
.L120:
	mov	edi, 10
	call	putchar@PLT
.L123:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L122
	call	__stack_chk_fail@PLT
.L122:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	print_op_stats, .-print_op_stats
	.section	.rodata
.LC46:
	.string	"new_file_2"
.LC47:
	.string	"bulk_write_test: open"
	.align 8
.LC48:
	.string	"bulk_write_test: clock_gettime"
.LC49:
	.string	"bulk_write_test: write"
	.align 8
.LC50:
	.string	"bulk write test, size %llu KB:\n"
.LC51:
	.string	"bulk_write_test: fsync"
.LC52:
	.string	"fsync"
.LC53:
	.string	"bulk_write_test: read"
	.align 8
.LC54:
	.string	"premature EOF during read at offset %lld\n"
	.align 8
.LC55:
	.string	"read validate mismatch at offset %lld\n"
.LC56:
	.string	"total"
	.text
	.globl	bulk_write_test
	.type	bulk_write_test, @function
bulk_write_test:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -131072[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 160
	mov	QWORD PTR -131224[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -131224[rbp], 0
	je	.L149
	mov	edx, 384
	mov	esi, 66
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -131196[rbp], eax
	cmp	DWORD PTR -131196[rbp], 0
	jns	.L127
	lea	rdi, .LC47[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L127:
	lea	rax, -131152[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	jns	.L128
	lea	rdi, .LC48[rip]
	call	perror@PLT
	jmp	.L129
.L128:
	mov	DWORD PTR -131212[rbp], 0
	jmp	.L130
.L131:
	mov	eax, DWORD PTR -131212[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -131212[rbp]
	cdqe
	mov	BYTE PTR -131088[rbp+rax], dl
	add	DWORD PTR -131212[rbp], 1
.L130:
	cmp	DWORD PTR -131212[rbp], 65535
	jle	.L131
	mov	rax, QWORD PTR -131224[rbp]
	mov	QWORD PTR -131176[rbp], rax
.L134:
	mov	eax, 65536
	cmp	QWORD PTR -131176[rbp], 65536
	cmovbe	rax, QWORD PTR -131176[rbp]
	mov	DWORD PTR -131208[rbp], eax
	lea	rax, -131088[rbp]
	mov	QWORD PTR -131168[rbp], rax
.L133:
	mov	eax, DWORD PTR -131208[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -131168[rbp]
	mov	eax, DWORD PTR -131196[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -131192[rbp], eax
	cmp	DWORD PTR -131192[rbp], 0
	jns	.L132
	lea	rdi, .LC49[rip]
	call	perror@PLT
	jmp	.L129
.L132:
	mov	eax, DWORD PTR -131192[rbp]
	sub	DWORD PTR -131208[rbp], eax
	mov	eax, DWORD PTR -131192[rbp]
	cdqe
	sub	QWORD PTR -131176[rbp], rax
	mov	eax, DWORD PTR -131192[rbp]
	cdqe
	add	QWORD PTR -131168[rbp], rax
	cmp	DWORD PTR -131208[rbp], 0
	jg	.L133
	cmp	QWORD PTR -131176[rbp], 0
	jne	.L134
	lea	rax, -131136[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	jns	.L135
	lea	rdi, .LC48[rip]
	call	perror@PLT
	jmp	.L129
.L135:
	mov	rax, QWORD PTR -131224[rbp]
	shr	rax, 10
	mov	rsi, rax
	lea	rdi, .LC50[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -131136[rbp]
	lea	rax, -131152[rbp]
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	print_op_stats
	mov	eax, DWORD PTR -131196[rbp]
	mov	edi, eax
	call	fsync@PLT
	test	eax, eax
	jns	.L136
	lea	rdi, .LC51[rip]
	call	perror@PLT
	jmp	.L129
.L136:
	lea	rax, -131120[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	jns	.L137
	lea	rdi, .LC48[rip]
	call	perror@PLT
	jmp	.L129
.L137:
	lea	rdx, -131120[rbp]
	lea	rax, -131136[rbp]
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	call	print_op_stats
	mov	eax, DWORD PTR -131196[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -131188[rbp], eax
	cmp	DWORD PTR -131188[rbp], 0
	jns	.L138
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L129
.L138:
	mov	rax, QWORD PTR -131224[rbp]
	mov	QWORD PTR -131176[rbp], rax
.L145:
	mov	eax, 65536
	cmp	QWORD PTR -131176[rbp], 65536
	cmovbe	rax, QWORD PTR -131176[rbp]
	mov	DWORD PTR -131184[rbp], eax
	mov	eax, DWORD PTR -131184[rbp]
	mov	DWORD PTR -131204[rbp], eax
	lea	rax, -65552[rbp]
	mov	QWORD PTR -131160[rbp], rax
.L141:
	mov	eax, DWORD PTR -131204[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -131160[rbp]
	mov	eax, DWORD PTR -131196[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -131180[rbp], eax
	cmp	DWORD PTR -131180[rbp], 0
	jns	.L139
	lea	rdi, .LC53[rip]
	call	perror@PLT
	jmp	.L129
.L139:
	cmp	DWORD PTR -131180[rbp], 0
	jne	.L140
	mov	rax, QWORD PTR -131224[rbp]
	sub	rax, QWORD PTR -131176[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -131184[rbp]
	sub	eax, DWORD PTR -131204[rbp]
	cdqe
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC54[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L129
.L140:
	mov	eax, DWORD PTR -131180[rbp]
	sub	DWORD PTR -131204[rbp], eax
	mov	eax, DWORD PTR -131180[rbp]
	cdqe
	add	QWORD PTR -131160[rbp], rax
	cmp	DWORD PTR -131204[rbp], 0
	jg	.L141
	mov	DWORD PTR -131200[rbp], 0
	jmp	.L142
.L144:
	mov	eax, DWORD PTR -131200[rbp]
	cdqe
	movzx	edx, BYTE PTR -65552[rbp+rax]
	mov	eax, DWORD PTR -131200[rbp]
	cdqe
	movzx	eax, BYTE PTR -131088[rbp+rax]
	cmp	dl, al
	je	.L143
	mov	rax, QWORD PTR -131224[rbp]
	sub	rax, QWORD PTR -131176[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -131200[rbp]
	cdqe
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC55[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L129
.L143:
	add	DWORD PTR -131200[rbp], 1
.L142:
	mov	eax, DWORD PTR -131200[rbp]
	cmp	eax, DWORD PTR -131184[rbp]
	jl	.L144
	mov	eax, DWORD PTR -131184[rbp]
	cdqe
	sub	QWORD PTR -131176[rbp], rax
	cmp	QWORD PTR -131176[rbp], 0
	jne	.L145
	lea	rax, -131104[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	jns	.L146
	lea	rdi, .LC48[rip]
	call	perror@PLT
	jmp	.L129
.L146:
	lea	rdx, -131104[rbp]
	lea	rax, -131120[rbp]
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	call	print_op_stats
	mov	rcx, QWORD PTR -131224[rbp]
	lea	rdx, -131104[rbp]
	lea	rax, -131152[rbp]
	mov	rsi, rax
	lea	rdi, .LC56[rip]
	call	print_op_stats
	mov	eax, DWORD PTR -131196[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L124
.L129:
	mov	eax, DWORD PTR -131196[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L149:
	nop
.L124:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L148
	call	__stack_chk_fail@PLT
.L148:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	bulk_write_test, .-bulk_write_test
	.section	.rodata
.LC57:
	.string	"persistence_test_file"
.LC58:
	.string	"persistence test: "
.LC59:
	.string	"creating file"
.LC60:
	.string	"fallocate"
.LC61:
	.string	"short write, length %d\n"
.LC62:
	.string	"file found; second pass"
.LC63:
	.string	"invalid size %ld\n"
.LC64:
	.string	"short read, length %d\n"
	.align 8
.LC65:
	.string	"mismatch at index %d, expect 0x%.2x, read 0x%.2x\n"
	.text
	.globl	persistence_write_test
	.type	persistence_write_test, @function
persistence_write_test:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 208
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC57[rip]
	mov	QWORD PTR -8360[rbp], rax
	lea	rdi, .LC58[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -8388[rbp], -1
	lea	rdx, -8352[rbp]
	mov	rax, QWORD PTR -8360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	jns	.L151
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	je	.L152
	lea	rax, .LC16[rip]
	mov	QWORD PTR -8368[rbp], rax
	jmp	.L163
.L152:
	lea	rdi, .LC59[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8360[rbp]
	mov	edx, 384
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8388[rbp], eax
	cmp	DWORD PTR -8388[rbp], 0
	jns	.L154
	lea	rax, .LC10[rip]
	mov	QWORD PTR -8368[rbp], rax
	jmp	.L163
.L154:
	mov	eax, DWORD PTR -8388[rbp]
	mov	ecx, 8192
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	fallocate@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	jns	.L155
	lea	rax, .LC60[rip]
	mov	QWORD PTR -8368[rbp], rax
	jmp	.L163
.L155:
	mov	eax, DWORD PTR -8388[rbp]
	mov	edx, 0
	mov	esi, 701
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	jns	.L156
	lea	rax, .LC12[rip]
	mov	QWORD PTR -8368[rbp], rax
	jmp	.L163
.L156:
	mov	DWORD PTR -8384[rbp], 0
	jmp	.L157
.L158:
	mov	eax, DWORD PTR -8384[rbp]
	cdqe
	mov	BYTE PTR -8208[rbp+rax], -1
	add	DWORD PTR -8384[rbp], 1
.L157:
	cmp	DWORD PTR -8384[rbp], 2047
	jle	.L158
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8388[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	jns	.L159
	lea	rax, .LC13[rip]
	mov	QWORD PTR -8368[rbp], rax
	jmp	.L163
.L159:
	cmp	DWORD PTR -8376[rbp], 2047
	jg	.L160
	mov	eax, DWORD PTR -8376[rbp]
	mov	esi, eax
	lea	rdi, .LC61[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L161
.L160:
	mov	eax, DWORD PTR -8388[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L150
.L151:
	lea	rdi, .LC62[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8304[rbp]
	cmp	rax, 8192
	je	.L164
	mov	rax, QWORD PTR -8304[rbp]
	mov	rsi, rax
	lea	rdi, .LC63[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L161
.L164:
	mov	rax, QWORD PTR -8360[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8388[rbp], eax
	cmp	DWORD PTR -8388[rbp], 0
	jns	.L165
	lea	rax, .LC10[rip]
	mov	QWORD PTR -8368[rbp], rax
	jmp	.L163
.L165:
	lea	rcx, -8208[rbp]
	mov	eax, DWORD PTR -8388[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8376[rbp], eax
	cmp	DWORD PTR -8376[rbp], 0
	jns	.L166
	lea	rax, .LC11[rip]
	mov	QWORD PTR -8368[rbp], rax
	jmp	.L163
.L166:
	cmp	DWORD PTR -8376[rbp], 8192
	je	.L167
	mov	eax, DWORD PTR -8376[rbp]
	mov	esi, eax
	lea	rdi, .LC64[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L161
.L167:
	mov	eax, DWORD PTR -8388[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -8380[rbp], 0
	jmp	.L168
.L177:
	cmp	DWORD PTR -8380[rbp], 700
	jle	.L169
	cmp	DWORD PTR -8380[rbp], 2748
	jle	.L170
.L169:
	mov	eax, 1
	jmp	.L171
.L170:
	mov	eax, 0
.L171:
	mov	DWORD PTR -8372[rbp], eax
	cmp	DWORD PTR -8372[rbp], 0
	je	.L172
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movzx	eax, BYTE PTR -8208[rbp+rax]
	test	al, al
	jne	.L173
.L172:
	cmp	DWORD PTR -8372[rbp], 0
	jne	.L174
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movzx	eax, BYTE PTR -8208[rbp+rax]
	cmp	al, -1
	je	.L174
.L173:
	mov	eax, DWORD PTR -8380[rbp]
	cdqe
	movzx	eax, BYTE PTR -8208[rbp+rax]
	movzx	edx, al
	cmp	DWORD PTR -8372[rbp], 0
	je	.L175
	mov	esi, 0
	jmp	.L176
.L175:
	mov	esi, 255
.L176:
	mov	eax, DWORD PTR -8380[rbp]
	mov	ecx, edx
	mov	edx, esi
	mov	esi, eax
	lea	rdi, .LC65[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L161
.L174:
	add	DWORD PTR -8380[rbp], 1
.L168:
	cmp	DWORD PTR -8380[rbp], 8191
	jle	.L177
	jmp	.L150
.L163:
	mov	rax, QWORD PTR -8368[rbp]
	mov	rdi, rax
	call	perror@PLT
.L161:
	cmp	DWORD PTR -8388[rbp], 0
	js	.L178
	mov	eax, DWORD PTR -8388[rbp]
	mov	edi, eax
	call	close@PLT
.L178:
	mov	edi, 1
	call	exit@PLT
.L150:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L180
	call	__stack_chk_fail@PLT
.L180:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	persistence_write_test, .-persistence_write_test
	.section	.rodata
	.align 8
.LC66:
	.string	"Usage: %s [-b file-size]\n\n-b - run basic tests only (no bulk / performance tests)\n-p - run persistence test only\n-w - run bulk data write test only\n-s - set bulk data size; size may be expressed by suffix\n     (k or K for KB, m or M for MB, g or G for GB)\n"
	.text
	.type	usage, @function
usage:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L182
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	jmp	.L183
.L182:
	mov	rax, QWORD PTR -24[rbp]
.L183:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC66[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	usage, .-usage
	.section	.rodata
.LC67:
	.string	"fs_stress_test: clock_gettime"
.LC68:
	.string	"fs_stress_test_%d"
.LC69:
	.string	"fs stress test"
.LC70:
	.string	"file remove unsucessful"
.LC71:
	.string	"delete"
	.text
	.type	fs_stress_test, @function
fs_stress_test:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 384
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	DWORD PTR -392[rbp], 1000
	mov	eax, DWORD PTR -392[rbp]
	movsx	rdx, eax
	sub	rdx, 1
	mov	QWORD PTR -384[rbp], rdx
	movsx	rdx, eax
	mov	r10, rdx
	mov	r11d, 0
	movsx	rdx, eax
	mov	r8, rdx
	mov	r9d, 0
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	r11d, 16
	mov	edx, 0
	div	r11
	imul	rax, rax, 16
	mov	r8, rax
	and	r8, -4096
	mov	rdx, rsp
	sub	rdx, r8
.L185:
	cmp	rsp, rdx
	je	.L186
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L185
.L186:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L187
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L187:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -376[rbp], rax
	mov	r8d, DWORD PTR -392[rbp]
	movsx	rax, r8d
	sub	rax, 1
	mov	QWORD PTR -368[rbp], rax
	movsx	rax, r8d
	mov	rsi, rax
	mov	edi, 0
	imul	rdx, rdi, 400
	imul	rax, rsi, 0
	lea	r9, [rdx+rax]
	mov	eax, 400
	mul	rsi
	lea	rsi, [r9+rdx]
	mov	rdx, rsi
	movsx	rdx, r8d
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	movsx	rax, r8d
	mov	rcx, rax
	mov	ebx, 0
	imul	rdx, rbx, 400
	imul	rax, rcx, 0
	lea	rsi, [rdx+rax]
	mov	eax, 400
	mul	rcx
	lea	rcx, [rsi+rdx]
	mov	rdx, rcx
	movsx	rdx, r8d
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L188:
	cmp	rsp, rdx
	je	.L189
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L188
.L189:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L190
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L190:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -360[rbp], rax
	lea	rax, -336[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	jns	.L191
	lea	rdi, .LC67[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L191:
	mov	DWORD PTR -396[rbp], 0
	jmp	.L192
.L199:
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -360[rbp]
	lea	rcx, [rax+rdx]
	mov	eax, DWORD PTR -396[rbp]
	mov	edx, eax
	lea	rsi, .LC68[rip]
	mov	rdi, rcx
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -360[rbp]
	add	rax, rdx
	mov	edx, 384
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -388[rbp], eax
	mov	rax, QWORD PTR -376[rbp]
	mov	edx, DWORD PTR -396[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -388[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	cmp	DWORD PTR -388[rbp], 0
	jns	.L193
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L193:
	lea	rcx, -288[rbp]
	mov	eax, DWORD PTR -388[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	QWORD PTR -352[rbp], 0
	jns	.L194
	lea	rdi, .LC11[rip]
	call	perror@PLT
	jmp	.L198
.L194:
	mov	eax, DWORD PTR -388[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -352[rbp], rax
	cmp	QWORD PTR -352[rbp], 0
	jns	.L196
	lea	rdi, .LC12[rip]
	call	perror@PLT
	jmp	.L198
.L196:
	mov	rax, QWORD PTR str[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -344[rbp], rax
	mov	rdx, QWORD PTR -344[rbp]
	mov	rcx, QWORD PTR str[rip]
	mov	eax, DWORD PTR -388[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -352[rbp], rax
	mov	rax, QWORD PTR -352[rbp]
	cmp	rax, QWORD PTR -344[rbp]
	jge	.L197
	lea	rdi, .LC13[rip]
	call	perror@PLT
	jmp	.L198
.L197:
	add	DWORD PTR -396[rbp], 1
.L192:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -392[rbp]
	jl	.L199
	call	sync@PLT
	lea	rax, -320[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	jns	.L200
	lea	rdi, .LC67[rip]
	call	perror@PLT
	jmp	.L198
.L200:
	lea	rdi, .LC69[rip]
	call	puts@PLT
	lea	rdx, -320[rbp]
	lea	rax, -336[rbp]
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	print_op_stats
	mov	DWORD PTR -396[rbp], 0
	jmp	.L201
.L203:
	mov	rax, QWORD PTR -376[rbp]
	mov	edx, DWORD PTR -396[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -396[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rax
	mov	rdx, QWORD PTR -360[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	remove@PLT
	test	eax, eax
	je	.L202
	lea	rdi, .LC70[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L202:
	add	DWORD PTR -396[rbp], 1
.L201:
	mov	eax, DWORD PTR -396[rbp]
	cmp	eax, DWORD PTR -392[rbp]
	jl	.L203
	call	sync@PLT
	lea	rax, -304[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	test	eax, eax
	jns	.L204
	lea	rdi, .LC67[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L204:
	lea	rdx, -304[rbp]
	lea	rax, -320[rbp]
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, .LC71[rip]
	call	print_op_stats
	lea	rdx, -304[rbp]
	lea	rax, -336[rbp]
	mov	ecx, 0
	mov	rsi, rax
	lea	rdi, .LC56[rip]
	call	print_op_stats
	nop
	mov	rsp, r12
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L209
	jmp	.L210
.L198:
	mov	DWORD PTR -400[rbp], 0
	jmp	.L206
.L207:
	mov	rax, QWORD PTR -376[rbp]
	mov	edx, DWORD PTR -400[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -400[rbp], 1
.L206:
	mov	eax, DWORD PTR -400[rbp]
	cmp	eax, DWORD PTR -396[rbp]
	jle	.L207
	mov	edi, 1
	call	exit@PLT
.L210:
	call	__stack_chk_fail@PLT
.L209:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	fs_stress_test, .-fs_stress_test
	.section	.rodata
.LC72:
	.string	"invalid write file size %lld\n"
	.align 8
.LC73:
	.string	"invalid write file size suffix '%s'\n"
.LC74:
	.string	"hbws:p"
.LC75:
	.string	"write test passed"
	.text
	.globl	main
	.type	main, @function
main:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	mov	QWORD PTR -16[rbp], 20971520
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	jmp	.L212
.L228:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 98
	cmp	eax, 21
	ja	.L213
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L215[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L215[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L215:
	.long	.L219-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L218-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L217-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L216-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L213-.L215
	.long	.L214-.L215
	.text
.L218:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	jmp	.L212
.L219:
	mov	DWORD PTR -32[rbp], 1
	jmp	.L212
.L214:
	mov	DWORD PTR -32[rbp], 2
	jmp	.L212
.L217:
	mov	DWORD PTR -32[rbp], 3
	jmp	.L212
.L216:
	mov	rax, QWORD PTR optarg[rip]
	lea	rcx, -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jg	.L220
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC72[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	edi, 1
	call	exit@PLT
.L220:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	test	eax, eax
	je	.L236
	test	eax, eax
	js	.L222
	cmp	eax, 109
	jg	.L222
	cmp	eax, 71
	jl	.L222
	sub	eax, 71
	cmp	eax, 38
	ja	.L222
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L224[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L224[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L224:
	.long	.L226-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L225-.L224
	.long	.L222-.L224
	.long	.L223-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L226-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L222-.L224
	.long	.L225-.L224
	.long	.L222-.L224
	.long	.L223-.L224
	.text
.L225:
	sal	QWORD PTR -16[rbp], 10
	jmp	.L227
.L223:
	sal	QWORD PTR -16[rbp], 20
	jmp	.L227
.L226:
	sal	QWORD PTR -16[rbp], 30
	jmp	.L227
.L222:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC73[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	edi, 1
	call	exit@PLT
.L236:
	nop
.L227:
	jmp	.L212
.L213:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	nop
.L212:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC74[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L228
	cmp	DWORD PTR -32[rbp], 0
	je	.L229
	cmp	DWORD PTR -32[rbp], 1
	jne	.L230
.L229:
	mov	eax, 0
	call	basic_write_test
	mov	edx, 4096
	mov	esi, 64
	mov	edi, 262144
	call	scatter_write_test
	mov	eax, 0
	call	append_write_test
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	truncate_test
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	write_exec_test
	mov	eax, 0
	call	fs_stress_test
.L230:
	cmp	DWORD PTR -32[rbp], 0
	je	.L231
	cmp	DWORD PTR -32[rbp], 2
	jne	.L232
.L231:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	bulk_write_test
.L232:
	cmp	DWORD PTR -32[rbp], 3
	jne	.L233
	call	persistence_write_test
.L233:
	lea	rdi, .LC75[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L235
	call	__stack_chk_fail@PLT
.L235:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"746008.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"I'm staying. Finishing my coffee. Enjoying my coffe"
	.ascii	"e.\000"
	.data
	.align	2
	.type	str, %object
	.size	str, 4
str:
	.word	.LC0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/\000"
	.align	2
.LC2:
	.ascii	"open directory rdwr\000"
	.align	2
.LC3:
	.ascii	"open directory wr\000"
	.align	2
.LC4:
	.ascii	"open directory\000"
	.align	2
.LC5:
	.ascii	"open directory rd\000"
	.align	2
.LC6:
	.ascii	"read directory\000"
	.align	2
.LC7:
	.ascii	"write directory\000"
	.align	2
.LC8:
	.ascii	"hello\000"
	.align	2
.LC9:
	.ascii	"open file as directory\000"
	.align	2
.LC10:
	.ascii	"open\000"
	.align	2
.LC11:
	.ascii	"read\000"
	.align	2
.LC12:
	.ascii	"lseek\000"
	.align	2
.LC13:
	.ascii	"write\000"
	.align	2
.LC14:
	.ascii	"read #2 fail: expecting %ld bytes, rv: %ld\012\000"
	.align	2
.LC15:
	.ascii	"basic write fail: string mismatch\000"
	.align	2
.LC16:
	.ascii	"stat\000"
	.align	2
.LC17:
	.ascii	"invalid number of allocated blocks: %ld\012\000"
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	basic_write_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	basic_write_test, %function
basic_write_test:
	@ args = 0, pretend = 0, frame = 368
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #372
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #2
	ldr	r0, .L30+4
	bl	open
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmn	r3, #1
	bne	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #21
	beq	.L3
.L2:
	ldr	r0, .L30+8
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	mov	r1, #1
	ldr	r0, .L30+4
	bl	open
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmn	r3, #1
	bne	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #21
	beq	.L5
.L4:
	ldr	r0, .L30+12
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	mov	r1, #16384
	ldr	r0, .L30+4
	bl	open
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L30+16
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, [fp, #-372]
	bl	close
	mov	r1, #0
	ldr	r0, .L30+4
	bl	open
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L7
	ldr	r0, .L30+20
	bl	perror
	mov	r0, #1
	bl	exit
.L7:
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-372]
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #21
	beq	.L9
.L8:
	ldr	r0, .L30+24
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-372]
	bl	write
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L11
.L10:
	ldr	r0, .L30+28
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r0, [fp, #-372]
	bl	close
	ldr	r1, .L30+32
	ldr	r0, .L30+36
	bl	open
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmn	r3, #1
	bne	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #20
	beq	.L13
.L12:
	ldr	r0, .L30+40
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	mov	r1, #2
	ldr	r0, .L30+36
	bl	open
	str	r0, [fp, #-372]
	ldr	r3, [fp, #-372]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L30+44
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-372]
	bl	read
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L30+48
	bl	perror
	b	.L16
.L15:
	ldr	r3, [fp, #-376]
	cmp	r3, #255
	ble	.L17
	mov	r3, #255
	str	r3, [fp, #-376]
.L17:
	sub	r2, fp, #272
	ldr	r3, [fp, #-376]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-372]
	bl	lseek
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L30+52
	bl	perror
	b	.L16
.L18:
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-368]
	ldr	r3, .L30+56
	ldr	r3, [r3]
	ldr	r2, [fp, #-368]
	mov	r1, r3
	ldr	r0, [fp, #-372]
	bl	write
	str	r0, [fp, #-376]
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-368]
	cmp	r2, r3
	bge	.L19
	ldr	r0, .L30+60
	bl	perror
	b	.L16
.L19:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-372]
	bl	lseek
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L30+52
	bl	perror
	b	.L16
.L20:
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #272
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-372]
	bl	read
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L30+48
	bl	perror
	b	.L16
.L21:
	ldr	r2, [fp, #-376]
	ldr	r3, [fp, #-368]
	cmp	r2, r3
	beq	.L22
	ldr	r2, [fp, #-376]
	ldr	r1, [fp, #-368]
	ldr	r0, .L30+64
	bl	printf
	b	.L16
.L22:
	ldr	r3, .L30+56
	ldr	r4, [r3]
	ldr	r3, .L30+56
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, r4
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L30+68
	bl	puts
	mov	r0, #1
	bl	exit
.L23:
	sub	r3, fp, #364
	mov	r1, r3
	ldr	r0, [fp, #-372]
	bl	fstat
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L30+72
	bl	perror
	b	.L16
.L24:
	ldr	r3, [fp, #-312]
	cmp	r3, #0
	bgt	.L25
	ldr	r3, [fp, #-312]
	mov	r1, r3
	ldr	r0, .L30+76
	bl	printf
	b	.L16
.L25:
	ldr	r0, [fp, #-372]
	bl	close
	nop
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L28
	b	.L29
.L16:
	ldr	r0, [fp, #-372]
	bl	close
	mov	r0, #1
	bl	exit
.L29:
	bl	__stack_chk_fail
.L28:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC18
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	16386
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	str
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.size	basic_write_test, .-basic_write_test
	.section	.rodata
	.align	2
.LC19:
	.ascii	"malloc of size %ld failed\012\000"
	.align	2
.LC20:
	.ascii	"scatter\000"
	.global	__aeabi_idivmod
	.align	2
.LC21:
	.ascii	"scatter test fail: read content mismatch at offset "
	.ascii	"%d\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	scatter_write_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	scatter_write_test, %function
scatter_write_test:
	@ args = 0, pretend = 0, frame = 320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #320
	str	r0, [fp, #-312]
	str	r1, [fp, #-316]
	str	r2, [fp, #-320]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-312]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-284]
	cmp	r3, #0
	bne	.L33
	ldr	r1, [fp, #-312]
	ldr	r0, .L55+4
	bl	printf
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, [fp, #-312]
	ldr	r2, [fp, #-284]
	mov	r0, r2
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r2, #384
	mov	r1, #66
	ldr	r0, .L55+8
	bl	open
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	bge	.L34
	ldr	r0, .L55+12
	bl	perror
	mov	r0, #1
	bl	exit
.L34:
	ldr	r3, [fp, #-312]
	mov	r2, r3
	ldr	r1, [fp, #-284]
	ldr	r0, [fp, #-280]
	bl	read
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L35
	ldr	r0, .L55+16
	bl	perror
	b	.L36
.L35:
	mov	r3, #0
	str	r3, [fp, #-308]
	mov	r3, #0
	str	r3, [fp, #-304]
	b	.L37
.L50:
	bl	random
	mov	r3, r0
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r1, [fp, #-312]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-272]
	bl	random
	mov	r3, r0
	cmp	r3, #0
	rsblt	r3, r3, #0
	ldr	r1, [fp, #-320]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	str	r3, [fp, #-268]
	ldr	r2, [fp, #-312]
	ldr	r3, [fp, #-272]
	sub	r3, r2, r3
	ldr	r2, [fp, #-268]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	str	r3, [fp, #-300]
	ldr	r3, [fp, #-300]
	cmp	r3, #0
	bne	.L38
	mov	r3, #1
	str	r3, [fp, #-300]
.L38:
	ldr	r3, [fp, #-272]
	str	r3, [fp, #-296]
	b	.L39
.L40:
	bl	random
	mov	r3, r0
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, .L55+20
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #7
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #8
	sub	r3, r3, r1
	sub	r1, r2, r3
	ldr	r3, [fp, #-296]
	ldr	r2, [fp, #-284]
	add	r3, r2, r3
	and	r2, r1, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-296]
	add	r3, r3, #1
	str	r3, [fp, #-296]
.L39:
	ldr	r2, [fp, #-272]
	ldr	r3, [fp, #-300]
	add	r3, r2, r3
	ldr	r2, [fp, #-296]
	cmp	r2, r3
	blt	.L40
	mov	r2, #0
	ldr	r1, [fp, #-272]
	ldr	r0, [fp, #-280]
	bl	lseek
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L55+24
	bl	perror
	b	.L36
.L41:
	ldr	r3, [fp, #-272]
	ldr	r2, [fp, #-284]
	add	r3, r2, r3
	ldr	r2, [fp, #-300]
	mov	r1, r3
	ldr	r0, [fp, #-280]
	bl	write
	str	r0, [fp, #-276]
	ldr	r2, [fp, #-276]
	ldr	r3, [fp, #-300]
	cmp	r2, r3
	bge	.L42
	ldr	r0, .L55+28
	bl	perror
	b	.L36
.L42:
	ldr	r2, [fp, #-272]
	ldr	r3, [fp, #-300]
	add	r3, r2, r3
	ldr	r2, [fp, #-308]
	cmp	r2, r3
	bge	.L43
	ldr	r2, [fp, #-272]
	ldr	r3, [fp, #-300]
	add	r3, r2, r3
	str	r3, [fp, #-308]
.L43:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-280]
	bl	lseek
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L44
	ldr	r0, .L55+24
	bl	perror
	b	.L36
.L44:
	mov	r3, #0
	str	r3, [fp, #-292]
.L49:
	sub	r3, fp, #264
	mov	r0, r3
	mov	r3, #256
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r2, [fp, #-308]
	ldr	r3, [fp, #-292]
	sub	r3, r2, r3
	cmp	r3, #256
	movlt	r3, r3
	movge	r3, #256
	mov	r2, r3
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-280]
	bl	read
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L55+16
	bl	perror
	b	.L36
.L45:
	mov	r3, #0
	str	r3, [fp, #-288]
	b	.L46
.L48:
	sub	r2, fp, #264
	ldr	r3, [fp, #-288]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-292]
	ldr	r3, [fp, #-288]
	add	r3, r1, r3
	mov	r1, r3
	ldr	r3, [fp, #-284]
	add	r3, r3, r1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L47
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-288]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L55+32
	bl	printf
	mov	r0, #1
	bl	exit
.L47:
	ldr	r3, [fp, #-288]
	add	r3, r3, #1
	str	r3, [fp, #-288]
.L46:
	ldr	r2, [fp, #-288]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	blt	.L48
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-276]
	add	r3, r2, r3
	str	r3, [fp, #-292]
	ldr	r2, [fp, #-292]
	ldr	r3, [fp, #-308]
	cmp	r2, r3
	blt	.L49
	ldr	r3, [fp, #-304]
	add	r3, r3, #1
	str	r3, [fp, #-304]
.L37:
	ldr	r2, [fp, #-304]
	ldr	r3, [fp, #-316]
	cmp	r2, r3
	blt	.L50
	ldr	r0, [fp, #-280]
	bl	close
	nop
	ldr	r3, .L55
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L53
	b	.L54
.L36:
	ldr	r0, [fp, #-280]
	bl	close
	mov	r0, #1
	bl	exit
.L54:
	bl	__stack_chk_fail
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC22
	.word	.LC19
	.word	.LC20
	.word	.LC10
	.word	.LC11
	.word	-2139062143
	.word	.LC12
	.word	.LC13
	.word	.LC21
	.size	scatter_write_test, .-scatter_write_test
	.section	.rodata
	.align	2
.LC23:
	.ascii	"append\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	append_write_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	append_write_test, %function
append_write_test:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #384
	mov	r1, #66
	ldr	r0, .L68+4
	bl	open
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bge	.L58
	ldr	r0, .L68+8
	bl	perror
	mov	r0, #1
	bl	exit
.L58:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	read
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bge	.L59
	ldr	r0, .L68+12
	bl	perror
	b	.L60
.L59:
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bgt	.L58
	bl	random
	mov	r3, r0
	cmp	r3, #0
	rsblt	r3, r3, #0
	and	r3, r3, #63
	str	r3, [fp, #-268]
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L61
.L62:
	bl	random
	mov	r3, r0
	eor	r1, r3, r3, asr #31
	sub	r1, r1, r3, asr #31
	ldr	r3, .L68+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #3
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #97
	and	r1, r3, #255
	sub	r2, fp, #264
	ldr	r3, [fp, #-280]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L61:
	ldr	r2, [fp, #-280]
	ldr	r3, [fp, #-268]
	cmp	r2, r3
	blt	.L62
	ldr	r2, [fp, #-268]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	write
	str	r0, [fp, #-272]
	ldr	r2, [fp, #-272]
	ldr	r3, [fp, #-268]
	cmp	r2, r3
	bge	.L63
	ldr	r0, .L68+20
	bl	perror
	b	.L60
.L63:
	ldr	r0, [fp, #-276]
	bl	close
	nop
	ldr	r3, .L68
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L66
	b	.L67
.L60:
	ldr	r0, [fp, #-276]
	bl	close
	mov	r0, #1
	bl	exit
.L67:
	bl	__stack_chk_fail
.L66:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC24
	.word	.LC23
	.word	.LC10
	.word	.LC11
	.word	1321528399
	.word	.LC13
	.size	append_write_test, .-append_write_test
	.section	.rodata
	.align	2
.LC25:
	.ascii	"new_file\000"
	.align	2
.LC26:
	.ascii	"ftruncate to BUFLEN / 2\000"
	.align	2
.LC27:
	.ascii	"unexpected file size %ld\012\000"
	.align	2
.LC28:
	.ascii	"read %ld bytes, expected %d\012\000"
	.align	2
.LC29:
	.ascii	"unexpected data 0x%02x at offset %d\012\000"
	.align	2
.LC30:
	.ascii	"ftruncate to same length as current length\000"
	.align	2
.LC31:
	.ascii	"negative length truncate test failed\000"
	.align	2
.LC32:
	.ascii	"ftruncate to BUFLEN / 4\000"
	.align	2
.LC33:
	.ascii	"read-only file truncate test failed\000"
	.align	2
.LC34:
	.ascii	"bad file descriptor truncate test failed\000"
	.align	2
.LC35:
	.ascii	"my_dir\000"
	.align	2
.LC36:
	.ascii	"mkdir\000"
	.align	2
.LC37:
	.ascii	"directory truncate test failed\000"
	.align	2
.LC38:
	.ascii	"nonexisting\000"
	.align	2
.LC39:
	.ascii	"non-existing file truncate test failed\000"
	.align	2
.LC40:
	.ascii	"eventfd\000"
	.align	2
.LC41:
	.ascii	"non-regular file truncate test failed\000"
	.align	2
.LC42:
	.ascii	"Could truncate program executable file\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	truncate_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	truncate_test, %function
truncate_test:
	@ args = 0, pretend = 0, frame = 384
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #384
	str	r0, [fp, #-384]
	ldr	r3, .L116
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #384
	mov	r1, #66
	ldr	r0, .L116+4
	bl	open
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L71
	ldr	r0, .L116+8
	bl	perror
	mov	r0, #1
	bl	exit
.L71:
	mov	r1, #128
	ldr	r0, [fp, #-376]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	bge	.L72
	ldr	r0, .L116+12
	bl	perror
	mov	r0, #1
	bl	exit
.L72:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-376]
	bl	lseek
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bge	.L73
	ldr	r0, .L116+16
	bl	perror
	mov	r0, #1
	bl	exit
.L73:
	ldr	r3, [fp, #-360]
	cmp	r3, #128
	beq	.L74
	ldr	r1, [fp, #-360]
	ldr	r0, .L116+20
	bl	printf
	mov	r0, #1
	bl	exit
.L74:
	ldr	r0, [fp, #-376]
	bl	close
	sub	r3, fp, #356
	mov	r1, r3
	ldr	r0, .L116+4
	bl	stat
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bge	.L75
	ldr	r0, .L116+24
	bl	perror
	mov	r0, #1
	bl	exit
.L75:
	ldr	r3, [fp, #-312]
	cmp	r3, #128
	beq	.L76
	ldr	r3, [fp, #-312]
	mov	r1, r3
	ldr	r0, .L116+20
	bl	printf
	mov	r0, #1
	bl	exit
.L76:
	mov	r1, #2
	ldr	r0, .L116+4
	bl	open
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L77
	ldr	r0, .L116+8
	bl	perror
	mov	r0, #1
	bl	exit
.L77:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-376]
	bl	read
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bge	.L78
	ldr	r0, .L116+28
	bl	perror
	b	.L79
.L78:
	ldr	r3, [fp, #-360]
	cmp	r3, #128
	beq	.L80
	mov	r2, #128
	ldr	r1, [fp, #-360]
	ldr	r0, .L116+32
	bl	printf
	mov	r0, #1
	bl	exit
.L80:
	mov	r3, #0
	str	r3, [fp, #-372]
	b	.L81
.L83:
	sub	r2, fp, #264
	ldr	r3, [fp, #-372]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L82
	sub	r2, fp, #264
	ldr	r3, [fp, #-372]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-372]
	mov	r1, r3
	ldr	r0, .L116+36
	bl	printf
	mov	r0, #1
	bl	exit
.L82:
	ldr	r3, [fp, #-372]
	add	r3, r3, #1
	str	r3, [fp, #-372]
.L81:
	ldr	r3, [fp, #-372]
	cmp	r3, #127
	ble	.L83
	mov	r1, #128
	ldr	r0, [fp, #-376]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	bge	.L84
	ldr	r0, .L116+40
	bl	perror
	mov	r0, #1
	bl	exit
.L84:
	mvn	r1, #0
	ldr	r0, [fp, #-376]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L85
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L86
.L85:
	ldr	r0, .L116+44
	bl	puts
	mov	r0, #1
	bl	exit
.L86:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-376]
	bl	lseek
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bge	.L87
	ldr	r0, .L116+16
	bl	perror
	b	.L79
.L87:
	mov	r3, #0
	str	r3, [fp, #-368]
	b	.L88
.L89:
	ldr	r3, [fp, #-368]
	and	r1, r3, #255
	sub	r2, fp, #264
	ldr	r3, [fp, #-368]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-368]
	add	r3, r3, #1
	str	r3, [fp, #-368]
.L88:
	ldr	r3, [fp, #-368]
	cmp	r3, #127
	ble	.L89
	sub	r3, fp, #264
	mov	r2, #128
	mov	r1, r3
	ldr	r0, [fp, #-376]
	bl	write
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #127
	bgt	.L90
	ldr	r0, .L116+48
	bl	perror
	b	.L79
.L90:
	mov	r1, #64
	ldr	r0, [fp, #-376]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	bge	.L91
	ldr	r0, .L116+52
	bl	perror
	mov	r0, #1
	bl	exit
.L91:
	ldr	r0, [fp, #-376]
	bl	close
	mov	r1, #2
	ldr	r0, .L116+4
	bl	open
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L92
	ldr	r0, .L116+8
	bl	perror
	mov	r0, #1
	bl	exit
.L92:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-376]
	bl	read
	str	r0, [fp, #-360]
	ldr	r3, [fp, #-360]
	cmp	r3, #0
	bge	.L93
	ldr	r0, .L116+28
	bl	perror
	b	.L79
.L93:
	ldr	r3, [fp, #-360]
	cmp	r3, #64
	beq	.L94
	mov	r2, #64
	ldr	r1, [fp, #-360]
	ldr	r0, .L116+32
	bl	printf
	mov	r0, #1
	bl	exit
.L94:
	mov	r3, #0
	str	r3, [fp, #-364]
	b	.L95
.L97:
	sub	r2, fp, #264
	ldr	r3, [fp, #-364]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-364]
	cmp	r3, r2
	beq	.L96
	sub	r2, fp, #264
	ldr	r3, [fp, #-364]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-364]
	mov	r1, r3
	ldr	r0, .L116+36
	bl	printf
	mov	r0, #1
	bl	exit
.L96:
	ldr	r3, [fp, #-364]
	add	r3, r3, #1
	str	r3, [fp, #-364]
.L95:
	ldr	r3, [fp, #-364]
	cmp	r3, #63
	ble	.L97
	ldr	r0, [fp, #-376]
	bl	close
	mov	r1, #0
	ldr	r0, .L116+4
	bl	open
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L98
	ldr	r0, .L116+8
	bl	perror
	mov	r0, #1
	bl	exit
.L98:
	mov	r1, #0
	ldr	r0, [fp, #-376]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L99
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L100
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L100
.L99:
	ldr	r0, .L116+56
	bl	puts
	mov	r0, #1
	bl	exit
.L100:
	ldr	r0, [fp, #-376]
	bl	close
	mov	r1, #0
	ldr	r0, [fp, #-376]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L101
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L102
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L102
.L101:
	ldr	r0, .L116+60
	bl	puts
	mov	r0, #1
	bl	exit
.L102:
	mov	r1, #384
	ldr	r0, .L116+64
	bl	mkdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L103
	ldr	r0, .L116+68
	bl	perror
	mov	r0, #1
	bl	exit
.L103:
	mov	r1, #0
	ldr	r0, .L116+64
	bl	truncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L104
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #21
	beq	.L105
.L104:
	ldr	r0, .L116+72
	bl	puts
	mov	r0, #1
	bl	exit
.L105:
	mov	r1, #0
	ldr	r0, .L116+76
	bl	truncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L106
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L107
.L106:
	ldr	r0, .L116+80
	bl	puts
	mov	r0, #1
	bl	exit
.L107:
	mov	r1, #0
	mov	r0, #0
	bl	eventfd
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmp	r3, #0
	bge	.L108
	ldr	r0, .L116+84
	bl	perror
	mov	r0, #1
	bl	exit
.L108:
	mov	r1, #0
	ldr	r0, [fp, #-376]
	bl	ftruncate
	mov	r3, r0
	cmp	r3, #0
	beq	.L109
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #22
	beq	.L110
.L109:
	ldr	r0, .L116+88
	bl	puts
	mov	r0, #1
	bl	exit
.L110:
	ldr	r0, [fp, #-376]
	bl	close
	mov	r1, #0
	ldr	r0, [fp, #-384]
	bl	truncate
	mov	r3, r0
	cmp	r3, #0
	bne	.L115
	ldr	r0, .L116+92
	bl	puts
	mov	r0, #1
	bl	exit
.L79:
	ldr	r0, [fp, #-376]
	bl	close
	mov	r0, #1
	bl	exit
.L115:
	nop
	ldr	r3, .L116
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L114
	bl	__stack_chk_fail
.L114:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L117:
	.align	2
.L116:
	.word	.LC43
	.word	.LC25
	.word	.LC10
	.word	.LC26
	.word	.LC12
	.word	.LC27
	.word	.LC16
	.word	.LC11
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC13
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.size	truncate_test, .-truncate_test
	.section	.rodata
	.align	2
.LC44:
	.ascii	"Could access program executable file in write mode\000"
	.align	2
.LC45:
	.ascii	"Unexpected error from access(prog, W_OK)\000"
	.align	2
.LC46:
	.ascii	"Could open program executable file for writing\000"
	.align	2
.LC47:
	.ascii	"Could open program executable file in write-only mo"
	.ascii	"de\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_exec_test, %function
write_exec_test:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	access
	mov	r3, r0
	cmp	r3, #0
	bne	.L119
	ldr	r0, .L124
	bl	puts
	mov	r0, #1
	bl	exit
.L119:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	beq	.L120
	ldr	r0, .L124+4
	bl	perror
	mov	r0, #1
	bl	exit
.L120:
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L121
	ldr	r0, .L124+8
	bl	puts
	mov	r0, #1
	bl	exit
.L121:
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L123
	ldr	r0, .L124+12
	bl	puts
	mov	r0, #1
	bl	exit
.L123:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.size	write_exec_test, .-write_exec_test
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timerspec_sub, %function
timerspec_sub:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bge	.L128
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, .L129
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L128:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L130:
	.align	2
.L129:
	.word	1000000000
	.size	timerspec_sub, .-timerspec_sub
	.section	.rodata
	.align	2
.LC48:
	.ascii	"   %5s   %ld.%.9lds\000"
	.global	__aeabi_uldivmod
	.align	2
.LC49:
	.ascii	" (%lld KB/s)\012\000"
	.align	2
.LC50:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_op_stats, %function
print_op_stats:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L136
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-56]
	bl	timerspec_sub
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-48]
	ldr	r0, .L136+4
	bl	printf
	ldmib	fp, {r2-r3}
	orrs	r3, r2, r3
	beq	.L132
	ldr	r3, [fp, #-24]
	mov	r0, r3
	asr	r1, r0, #31
	ldr	r3, .L136+8
	mul	r2, r3, r1
	mov	r3, #0
	mul	r3, r0, r3
	add	ip, r2, r3
	ldr	lr, .L136+8
	umull	r2, r3, r0, lr
	add	r1, ip, r3
	mov	r3, r1
	ldr	r1, [fp, #-20]
	mov	r0, r1
	asr	r1, r0, #31
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
	ldr	r3, [fp, #8]
	ldr	r2, .L136+12
	mul	r2, r3, r2
	ldr	r3, [fp, #4]
	mov	r1, #0
	mul	r3, r1, r3
	add	r3, r2, r3
	ldr	r2, [fp, #4]
	ldr	ip, .L136+12
	umull	r0, r1, r2, ip
	add	r3, r3, r1
	mov	r1, r3
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L136+16
	bl	printf
	b	.L135
.L132:
	mov	r0, #10
	bl	putchar
.L135:
	nop
	ldr	r3, .L136
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L134
	bl	__stack_chk_fail
.L134:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L137:
	.align	2
.L136:
	.word	.LC50
	.word	.LC48
	.word	1000000000
	.word	976562
	.word	.LC49
	.size	print_op_stats, .-print_op_stats
	.section	.rodata
	.align	2
.LC51:
	.ascii	"new_file_2\000"
	.align	2
.LC52:
	.ascii	"bulk_write_test: open\000"
	.align	2
.LC53:
	.ascii	"bulk_write_test: clock_gettime\000"
	.align	2
.LC54:
	.ascii	"bulk_write_test: write\000"
	.align	2
.LC55:
	.ascii	"bulk write test, size %llu KB:\012\000"
	.align	2
.LC56:
	.ascii	"bulk_write_test: fsync\000"
	.align	2
.LC57:
	.ascii	"fsync\000"
	.align	2
.LC58:
	.ascii	"bulk_write_test: read\000"
	.align	2
.LC59:
	.ascii	"premature EOF during read at offset %lld\012\000"
	.align	2
.LC60:
	.ascii	"read validate mismatch at offset %lld\012\000"
	.align	2
.LC61:
	.ascii	"total\000"
	.align	2
.LC62:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bulk_write_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	bulk_write_test, %function
bulk_write_test:
	@ args = 0, pretend = 0, frame = 131208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #131072
	sub	sp, sp, #148
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #96
	stmdb	r3, {r0-r1}
	ldr	r3, .L166
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #96
	ldmdb	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L165
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r4, r3
	mov	r2, #384
	mov	r1, #66
	ldr	r0, .L166+4
	bl	open
	str	r0, [r4, #-68]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-68]
	cmp	r3, #0
	bge	.L141
	ldr	r0, .L166+8
	bl	perror
	mov	r0, #1
	bl	exit
.L141:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #36
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	bge	.L142
	ldr	r0, .L166+12
	bl	perror
	b	.L143
.L142:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-92]
	b	.L144
.L145:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-92]
	and	r1, r3, #255
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-92]
	add	r3, r2, r3
	sub	r2, r3, #4
	mov	r3, r1
	strb	r3, [r2]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-92]
	add	r3, r3, #1
	str	r3, [r2, #-92]
.L144:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-92]
	cmp	r3, #65536
	blt	.L145
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #96
	ldmdb	r3, {r2-r3}
	stm	r1, {r2-r3}
.L149:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #65536
	bls	.L146
	mov	r2, #65536
	mov	r3, #0
.L146:
	sub	r1, fp, #131072
	sub	r1, r1, #28
	mov	r3, r2
	str	r3, [r1, #-88]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #4
	str	r3, [r2, #-84]
.L148:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r2, [r3, #-88]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r4, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r1, [r1, #-84]
	ldr	r0, [r3, #-68]
	bl	write
	str	r0, [r4, #-64]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-64]
	cmp	r3, #0
	bge	.L147
	ldr	r0, .L166+16
	bl	perror
	b	.L143
.L147:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r2, [r2, #-88]
	ldr	r3, [r3, #-64]
	sub	r3, r2, r3
	str	r3, [r1, #-88]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-64]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	ip, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	subs	lr, r2, r0
	sub	r4, fp, #131072
	sub	r4, r4, #156
	str	lr, [r4]
	sbc	r3, r3, r1
	sub	r2, fp, #131072
	sub	r2, r2, #152
	str	r3, [r2]
	sub	r3, fp, #131072
	sub	r3, r3, #156
	ldmia	r3, {r3-r4}
	stm	ip, {r3-r4}
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r2, [r3, #-64]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-84]
	add	r3, r3, r2
	str	r3, [r1, #-84]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-88]
	cmp	r3, #0
	bgt	.L148
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L149
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #28
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	bge	.L150
	ldr	r0, .L166+12
	bl	perror
	b	.L143
.L150:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #96
	ldmdb	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #10
	orr	r2, r2, r1, lsl #22
	lsr	r3, r1, #10
	ldr	r0, .L166+20
	bl	printf
	sub	r2, fp, #131072
	sub	r2, r2, #28
	sub	r2, r2, #28
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #36
	mov	r0, #0
	mov	r1, #0
	stm	sp, {r0-r1}
	mov	r1, r3
	ldr	r0, .L166+24
	bl	print_op_stats
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r0, [r3, #-68]
	bl	fsync
	mov	r3, r0
	cmp	r3, #0
	bge	.L151
	ldr	r0, .L166+28
	bl	perror
	b	.L143
.L151:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #20
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	bge	.L152
	ldr	r0, .L166+12
	bl	perror
	b	.L143
.L152:
	sub	r2, fp, #131072
	sub	r2, r2, #28
	sub	r2, r2, #20
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #28
	mov	r0, #0
	mov	r1, #0
	stm	sp, {r0-r1}
	mov	r1, r3
	ldr	r0, .L166+32
	bl	print_op_stats
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r4, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-68]
	bl	lseek
	str	r0, [r4, #-60]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	bge	.L153
	ldr	r0, .L166+36
	bl	perror
	b	.L143
.L153:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #96
	ldmdb	r3, {r2-r3}
	stm	r1, {r2-r3}
.L161:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	cmp	r3, #0
	cmpeq	r2, #65536
	bls	.L154
	mov	r2, #65536
	mov	r3, #0
.L154:
	sub	r1, fp, #131072
	sub	r1, r1, #28
	mov	r3, r2
	str	r3, [r1, #-56]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-56]
	str	r3, [r2, #-80]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #65536
	sub	r3, r3, #28
	sub	r3, r3, #4
	str	r3, [r2, #-76]
.L157:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r2, [r3, #-80]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r4, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r1, [r1, #-76]
	ldr	r0, [r3, #-68]
	bl	read
	str	r0, [r4, #-52]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bge	.L155
	ldr	r0, .L166+40
	bl	perror
	b	.L143
.L155:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L156
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #96
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmdb	r2, {r0-r1}
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r2, [r2, #-56]
	ldr	r3, [r3, #-80]
	sub	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	adds	r1, r6, r2
	sub	r0, fp, #131072
	sub	r0, r0, #140
	str	r1, [r0]
	adc	r3, r7, r3
	sub	r2, fp, #131072
	sub	r2, r2, #136
	str	r3, [r2]
	sub	r3, fp, #131072
	sub	r3, r3, #140
	ldmia	r3, {r2-r3}
	ldr	r0, .L166+44
	bl	printf
	b	.L143
.L156:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r2, [r2, #-80]
	ldr	r3, [r3, #-52]
	sub	r3, r2, r3
	str	r3, [r1, #-80]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-52]
	sub	r2, fp, #131072
	sub	r2, r2, #28
	mov	r1, r2
	sub	r2, fp, #131072
	sub	r2, r2, #28
	ldr	r2, [r2, #-76]
	add	r3, r2, r3
	str	r3, [r1, #-76]
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-80]
	cmp	r3, #0
	bgt	.L157
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-72]
	b	.L158
.L160:
	sub	r3, fp, #65536
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	add	r3, r1, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L159
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #96
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmdb	r2, {r0-r1}
	ldmia	r3, {r2-r3}
	subs	r8, r0, r2
	sbc	r9, r1, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	mov	r2, r3
	asr	r3, r2, #31
	adds	r1, r8, r2
	sub	r0, fp, #131072
	sub	r0, r0, #148
	str	r1, [r0]
	adc	r3, r9, r3
	sub	r2, fp, #131072
	sub	r2, r2, #144
	str	r3, [r2]
	sub	r3, fp, #131072
	sub	r3, r3, #148
	ldmia	r3, {r2-r3}
	ldr	r0, .L166+48
	bl	printf
	b	.L143
.L159:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	add	r3, r3, #1
	str	r3, [r2, #-72]
.L158:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r2, [r2, #-72]
	ldr	r3, [r3, #-56]
	cmp	r2, r3
	blt	.L160
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r3, [r3, #-56]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	mov	ip, r3
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	subs	lr, r2, r0
	sub	r4, fp, #131072
	sub	r4, r4, #164
	str	lr, [r4]
	sbc	r3, r3, r1
	sub	r2, fp, #131072
	sub	r2, r2, #160
	str	r3, [r2]
	sub	r3, fp, #131072
	sub	r3, r3, #164
	ldmia	r3, {r3-r4}
	stm	ip, {r3-r4}
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #48
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	bne	.L161
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	bge	.L162
	ldr	r0, .L166+12
	bl	perror
	b	.L143
.L162:
	sub	r2, fp, #131072
	sub	r2, r2, #28
	sub	r2, r2, #12
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #20
	mov	r0, #0
	mov	r1, #0
	stm	sp, {r0-r1}
	mov	r1, r3
	ldr	r0, .L166+52
	bl	print_op_stats
	sub	r2, fp, #131072
	sub	r2, r2, #28
	sub	r2, r2, #12
	sub	r3, fp, #131072
	sub	r3, r3, #28
	sub	r3, r3, #36
	sub	r1, fp, #131072
	sub	r1, r1, #28
	sub	r1, r1, #96
	ldmdb	r1, {r0-r1}
	stm	sp, {r0-r1}
	mov	r1, r3
	ldr	r0, .L166+56
	bl	print_op_stats
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r0, [r3, #-68]
	bl	close
	b	.L138
.L143:
	sub	r3, fp, #131072
	sub	r3, r3, #28
	ldr	r0, [r3, #-68]
	bl	close
	mov	r0, #1
	bl	exit
.L165:
	nop
.L138:
	ldr	r3, .L166
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L164
	bl	__stack_chk_fail
.L164:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r6, r7, r8, r9, fp, pc}
.L167:
	.align	2
.L166:
	.word	.LC62
	.word	.LC51
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC13
	.word	.LC56
	.word	.LC57
	.word	.LC12
	.word	.LC58
	.word	.LC59
	.word	.LC60
	.word	.LC11
	.word	.LC61
	.size	bulk_write_test, .-bulk_write_test
	.section	.rodata
	.align	2
.LC63:
	.ascii	"persistence_test_file\000"
	.align	2
.LC64:
	.ascii	"persistence test: \000"
	.align	2
.LC65:
	.ascii	"creating file\000"
	.align	2
.LC66:
	.ascii	"fallocate\000"
	.align	2
.LC67:
	.ascii	"short write, length %d\012\000"
	.align	2
.LC68:
	.ascii	"file found; second pass\000"
	.align	2
.LC69:
	.ascii	"invalid size %ld\012\000"
	.align	2
.LC70:
	.ascii	"short read, length %d\012\000"
	.align	2
.LC71:
	.ascii	"mismatch at index %d, expect 0x%.2x, read 0x%.2x\012"
	.ascii	"\000"
	.align	2
.LC72:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	persistence_write_test
	.syntax unified
	.arm
	.fpu softvfp
	.type	persistence_write_test, %function
persistence_write_test:
	@ args = 0, pretend = 0, frame = 8320
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #8320
	sub	sp, sp, #4
	ldr	r3, .L199
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+4
	str	r3, [r2, #-108]
	ldr	r0, .L199+8
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-120]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8256
	sub	r3, r3, #12
	sub	r3, r3, #32
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-108]
	bl	stat
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bge	.L169
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #2
	beq	.L170
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+12
	str	r3, [r2, #-124]
	b	.L181
.L170:
	ldr	r0, .L199+16
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #384
	mov	r1, #66
	ldr	r0, [r3, #-108]
	bl	open
	str	r0, [r4, #-120]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	bge	.L172
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+20
	str	r3, [r2, #-124]
	b	.L181
.L172:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #8192
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r0, #-120]
	bl	fallocate
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bge	.L173
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+24
	str	r3, [r2, #-124]
	b	.L181
.L173:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, .L199+28
	ldr	r0, [r3, #-120]
	bl	lseek
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bge	.L174
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+32
	str	r3, [r2, #-124]
	b	.L181
.L174:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-116]
	b	.L175
.L176:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	add	r3, r2, r3
	sub	r3, r3, #4
	mvn	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	add	r3, r3, #1
	str	r3, [r2, #-116]
.L175:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-116]
	cmp	r3, #2048
	blt	.L176
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [r0, #-120]
	bl	write
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bge	.L177
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+36
	str	r3, [r2, #-124]
	b	.L181
.L177:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #2048
	bge	.L178
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-104]
	ldr	r0, .L199+40
	bl	printf
	b	.L179
.L178:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-120]
	bl	close
	b	.L168
.L169:
	ldr	r0, .L199+44
	bl	puts
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #8192
	beq	.L182
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	mov	r1, r3
	ldr	r0, .L199+48
	bl	printf
	b	.L179
.L182:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-108]
	bl	open
	str	r0, [r4, #-120]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	bge	.L183
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+20
	str	r3, [r2, #-124]
	b	.L181
.L183:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #8192
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, [r0, #-120]
	bl	read
	str	r0, [r4, #-104]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #0
	bge	.L184
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	ldr	r3, .L199+52
	str	r3, [r2, #-124]
	b	.L181
.L184:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-104]
	cmp	r3, #8192
	beq	.L185
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r1, [r3, #-104]
	ldr	r0, .L199+56
	bl	printf
	b	.L179
.L185:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-120]
	bl	close
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-112]
	b	.L186
.L195:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	cmp	r3, #700
	ble	.L187
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	ldr	r2, .L199+60
	cmp	r3, r2
	ble	.L188
.L187:
	mov	r3, #1
	b	.L189
.L188:
	mov	r3, #0
.L189:
	sub	r2, fp, #8192
	sub	r2, r2, #12
	str	r3, [r2, #-100]
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	beq	.L190
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L191
.L190:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	bne	.L192
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #255
	beq	.L192
.L191:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-100]
	cmp	r3, #0
	beq	.L193
	mov	r2, #0
	b	.L194
.L193:
	mov	r2, #255
.L194:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r3, r1, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r1, r3
	mov	r3, r0
	ldr	r1, [r1, #-112]
	ldr	r0, .L199+64
	bl	printf
	b	.L179
.L192:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	add	r3, r3, #1
	str	r3, [r2, #-112]
.L186:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-112]
	cmp	r3, #8192
	blt	.L195
	b	.L168
.L181:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-124]
	bl	perror
.L179:
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r3, [r3, #-120]
	cmp	r3, #0
	blt	.L196
	sub	r3, fp, #8192
	sub	r3, r3, #12
	ldr	r0, [r3, #-120]
	bl	close
.L196:
	mov	r0, #1
	bl	exit
.L168:
	ldr	r3, .L199
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L198
	bl	__stack_chk_fail
.L198:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L200:
	.align	2
.L199:
	.word	.LC72
	.word	.LC63
	.word	.LC64
	.word	.LC16
	.word	.LC65
	.word	.LC10
	.word	.LC66
	.word	701
	.word	.LC12
	.word	.LC13
	.word	.LC67
	.word	.LC68
	.word	.LC69
	.word	.LC11
	.word	.LC70
	.word	2748
	.word	.LC71
	.size	persistence_write_test, .-persistence_write_test
	.section	.rodata
	.align	2
.LC73:
	.ascii	"Usage: %s [-b file-size]\012\012-b - run basic test"
	.ascii	"s only (no bulk / performance tests)\012-p - run pe"
	.ascii	"rsistence test only\012-w - run bulk data write tes"
	.ascii	"t only\012-s - set bulk data size; size may be expr"
	.ascii	"essed by suffix\012     (k or K for KB, m or M for "
	.ascii	"MB, g or G for GB)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r1, #47
	ldr	r0, [fp, #-16]
	bl	strrchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L202
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	b	.L203
.L202:
	ldr	r3, [fp, #-16]
.L203:
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L204
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L205:
	.align	2
.L204:
	.word	.LC73
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC74:
	.ascii	"fs_stress_test: clock_gettime\000"
	.align	2
.LC75:
	.ascii	"fs_stress_test_%d\000"
	.align	2
.LC76:
	.ascii	"fs stress test\000"
	.align	2
.LC77:
	.ascii	"file remove unsucessful\000"
	.align	2
.LC78:
	.ascii	"delete\000"
	.align	2
.LC79:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fs_stress_test, %function
fs_stress_test:
	@ args = 0, pretend = 0, frame = 328
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #340
	ldr	r3, .L227
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, sp
	mov	r8, r3
	mov	r3, #1000
	str	r3, [fp, #-344]
	ldr	ip, [fp, #-344]
	sub	r3, ip, #1
	str	r3, [fp, #-340]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	mov	r3, ip
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-336]
	ldr	ip, [fp, #-344]
	sub	r3, ip, #1
	str	r3, [fp, #-332]
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r4, r2, r2
	adc	r5, r3, r3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r3, ip
	mov	r0, r3
	mov	r1, #0
	mov	r2, r0
	mov	r3, r1
	adds	r6, r2, r2
	adc	r7, r3, r3
	mov	r2, r6
	mov	r3, r7
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #3
	orr	r5, r5, r2, lsr #29
	lsl	r4, r2, #3
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #4
	orr	r1, r1, r2, lsr #28
	lsl	r0, r2, #4
	mov	r2, r0
	mov	r3, r1
	mov	r2, ip
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-328]
	sub	r3, fp, #312
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	bge	.L207
	ldr	r0, .L227+4
	bl	perror
	mov	r0, #1
	bl	exit
.L207:
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L208
.L215:
	ldr	r2, [fp, #-348]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-328]
	add	r3, r2, r3
	ldr	r2, [fp, #-348]
	ldr	r1, .L227+8
	mov	r0, r3
	bl	sprintf
	ldr	r2, [fp, #-348]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-328]
	add	r3, r2, r3
	mov	r2, #384
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-324]
	ldr	r3, [fp, #-336]
	ldr	r2, [fp, #-348]
	ldr	r1, [fp, #-324]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-324]
	cmp	r3, #0
	bge	.L209
	ldr	r0, .L227+12
	bl	perror
	mov	r0, #1
	bl	exit
.L209:
	sub	r3, fp, #288
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-324]
	bl	read
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	bge	.L210
	ldr	r0, .L227+16
	bl	perror
	b	.L214
.L210:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-324]
	bl	lseek
	str	r0, [fp, #-320]
	ldr	r3, [fp, #-320]
	cmp	r3, #0
	bge	.L212
	ldr	r0, .L227+20
	bl	perror
	b	.L214
.L212:
	ldr	r3, .L227+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-316]
	ldr	r3, .L227+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-316]
	mov	r1, r3
	ldr	r0, [fp, #-324]
	bl	write
	str	r0, [fp, #-320]
	ldr	r2, [fp, #-320]
	ldr	r3, [fp, #-316]
	cmp	r2, r3
	bge	.L213
	ldr	r0, .L227+28
	bl	perror
	b	.L214
.L213:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L208:
	ldr	r2, [fp, #-348]
	ldr	r3, [fp, #-344]
	cmp	r2, r3
	blt	.L215
	bl	sync
	sub	r3, fp, #304
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	bge	.L216
	ldr	r0, .L227+4
	bl	perror
	b	.L214
.L216:
	ldr	r0, .L227+32
	bl	puts
	sub	r0, fp, #304
	sub	r1, fp, #312
	mov	r2, #0
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, r0
	ldr	r0, .L227+28
	bl	print_op_stats
	mov	r3, #0
	str	r3, [fp, #-348]
	b	.L217
.L219:
	ldr	r3, [fp, #-336]
	ldr	r2, [fp, #-348]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	close
	ldr	r2, [fp, #-348]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	ldr	r2, [fp, #-328]
	add	r3, r2, r3
	mov	r0, r3
	bl	remove
	mov	r3, r0
	cmp	r3, #0
	beq	.L218
	ldr	r0, .L227+36
	bl	perror
	mov	r0, #1
	bl	exit
.L218:
	ldr	r3, [fp, #-348]
	add	r3, r3, #1
	str	r3, [fp, #-348]
.L217:
	ldr	r2, [fp, #-348]
	ldr	r3, [fp, #-344]
	cmp	r2, r3
	blt	.L219
	bl	sync
	sub	r3, fp, #296
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	bge	.L220
	ldr	r0, .L227+4
	bl	perror
	mov	r0, #1
	bl	exit
.L220:
	sub	r0, fp, #296
	sub	r1, fp, #304
	mov	r2, #0
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, r0
	ldr	r0, .L227+40
	bl	print_op_stats
	sub	r0, fp, #296
	sub	r1, fp, #312
	mov	r2, #0
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, r0
	ldr	r0, .L227+44
	bl	print_op_stats
	nop
	mov	sp, r8
	nop
	ldr	r3, .L227
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L225
	b	.L226
.L214:
	mov	r3, #0
	str	r3, [fp, #-352]
	b	.L222
.L223:
	ldr	r3, [fp, #-336]
	ldr	r2, [fp, #-352]
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-352]
	add	r3, r3, #1
	str	r3, [fp, #-352]
.L222:
	ldr	r2, [fp, #-352]
	ldr	r3, [fp, #-348]
	cmp	r2, r3
	ble	.L223
	mov	r0, #1
	bl	exit
.L226:
	bl	__stack_chk_fail
.L225:
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L228:
	.align	2
.L227:
	.word	.LC79
	.word	.LC74
	.word	.LC75
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	str
	.word	.LC13
	.word	.LC76
	.word	.LC77
	.word	.LC78
	.word	.LC61
	.size	fs_stress_test, .-fs_stress_test
	.section	.rodata
	.align	2
.LC80:
	.ascii	"invalid write file size %lld\012\000"
	.align	2
.LC81:
	.ascii	"invalid write file size suffix '%s'\012\000"
	.align	2
.LC82:
	.ascii	"hbws:p\000"
	.align	2
.LC83:
	.ascii	"write test passed\000"
	.align	2
.LC84:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L255
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r2, #20971520
	mov	r3, #0
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, .L255+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #1
	mov	r1, #0
	bl	setvbuf
	b	.L230
.L246:
	ldr	r3, [fp, #-24]
	sub	r3, r3, #98
	cmp	r3, #21
	ldrls	pc, [pc, r3, asl #2]
	b	.L231
.L233:
	.word	.L237
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L236
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L235
	.word	.L231
	.word	.L231
	.word	.L234
	.word	.L231
	.word	.L231
	.word	.L231
	.word	.L232
.L236:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	b	.L230
.L237:
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L230
.L232:
	mov	r3, #2
	str	r3, [fp, #-28]
	b	.L230
.L235:
	mov	r3, #3
	str	r3, [fp, #-28]
	b	.L230
.L234:
	ldr	r3, .L255+8
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #0
	mov	r0, r3
	bl	strtoll
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	cmp	r2, #1
	sbcs	r3, r3, #0
	bge	.L238
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r0, .L255+12
	bl	printf
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r0, #1
	bl	exit
.L238:
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L254
	cmp	r3, #0
	blt	.L240
	cmp	r3, #109
	bgt	.L240
	cmp	r3, #71
	blt	.L240
	sub	r3, r3, #71
	cmp	r3, #38
	ldrls	pc, [pc, r3, asl #2]
	b	.L240
.L242:
	.word	.L244
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L243
	.word	.L240
	.word	.L241
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L244
	.word	.L240
	.word	.L240
	.word	.L240
	.word	.L243
	.word	.L240
	.word	.L241
.L243:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #10
	orr	r3, r3, r0, lsr #22
	lsl	r2, r0, #10
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L245
.L241:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #20
	orr	r3, r3, r0, lsr #12
	lsl	r2, r0, #20
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L245
.L244:
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #30
	orr	r3, r3, r0, lsr #2
	lsl	r2, r0, #30
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L245
.L240:
	ldr	r3, [fp, #-32]
	mov	r1, r3
	ldr	r0, .L255+16
	bl	printf
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r0, #1
	bl	exit
.L254:
	nop
.L245:
	b	.L230
.L231:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	nop
.L230:
	ldr	r2, .L255+20
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L246
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L247
	ldr	r3, [fp, #-28]
	cmp	r3, #1
	bne	.L248
.L247:
	bl	basic_write_test
	mov	r2, #4096
	mov	r1, #64
	mov	r0, #262144
	bl	scatter_write_test
	bl	append_write_test
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	truncate_test
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	write_exec_test
	bl	fs_stress_test
.L248:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L249
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L250
.L249:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	bl	bulk_write_test
.L250:
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bne	.L251
	bl	persistence_write_test
.L251:
	ldr	r0, .L255+24
	bl	puts
	mov	r3, #0
	ldr	r2, .L255
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L253
	bl	__stack_chk_fail
.L253:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L256:
	.align	2
.L255:
	.word	.LC84
	.word	stdout
	.word	optarg
	.word	.LC80
	.word	.LC81
	.word	.LC82
	.word	.LC83
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
