	.file	"923058.c"
	.intel_syntax noprefix
	.text
	.local	verbosity
	.comm	verbosity,4,4
	.local	read_back
	.comm	read_back,4,4
	.data
	.align 4
	.type	allowed_accesses, @object
	.size	allowed_accesses, 4
allowed_accesses:
	.long	1
	.section	.rodata
.LC0:
	.string	"device"
.LC1:
	.string	"address"
.LC2:
	.string	"size"
.LC3:
	.string	"offset"
.LC4:
	.string	"count"
.LC5:
	.string	"file"
.LC6:
	.string	"verbose"
.LC7:
	.string	"help"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	long_opts, @object
	.size	long_opts, 288
long_opts:
	.quad	.LC0
	.long	1
	.zero	4
	.quad	0
	.long	100
	.zero	4
	.quad	.LC1
	.long	1
	.zero	4
	.quad	0
	.long	97
	.zero	4
	.quad	.LC2
	.long	1
	.zero	4
	.quad	0
	.long	115
	.zero	4
	.quad	.LC3
	.long	1
	.zero	4
	.quad	0
	.long	111
	.zero	4
	.quad	.LC4
	.long	1
	.zero	4
	.quad	0
	.long	99
	.zero	4
	.quad	.LC5
	.long	1
	.zero	4
	.quad	0
	.long	102
	.zero	4
	.quad	.LC6
	.long	0
	.zero	4
	.quad	0
	.long	118
	.zero	4
	.quad	.LC7
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
.LC8:
	.string	"%s\n\n"
.LC9:
	.string	"usage: %s [OPTIONS]\n\n"
	.align 8
.LC10:
	.string	"Write using SGDMA, optionally read input from a binary input file.\n"
.LC11:
	.string	"/dev/xdma/card0/h2c0"
	.align 8
.LC12:
	.string	"  -%c (--%s) device (defaults to %s)\n"
	.align 8
.LC13:
	.string	"  -%c (--%s) address of the start address on the AXI bus\n"
	.align 8
.LC14:
	.string	"  -%c (--%s) size of a single transfer\n"
	.align 8
.LC15:
	.string	"  -%c (--%s) page offset of transfer\n"
	.align 8
.LC16:
	.string	"  -%c (--%s) number of transfers\n"
	.align 8
.LC17:
	.string	"  -%c (--%s) filename to read/write the data of the transfers\n"
	.align 8
.LC18:
	.string	"  -%c (--%s) be more verbose during test\n"
	.align 8
.LC19:
	.string	"  -%c (--%s) print usage help and exit\n"
	.text
	.type	usage, @function
usage:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	lea	rcx, .LC11[rip]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	lea	rax, long_opts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	lea	rax, long_opts[rip+24]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC20:
	.string	"0x%x"
.LC21:
	.string	"%ul"
	.align 8
.LC22:
	.string	"sscanf() = %d, value = 0x%08x\n"
	.text
	.type	getopt_integer, @function
getopt_integer:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jg	.L3
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -12[rbp], eax
.L3:
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getopt_integer, .-getopt_integer
	.section	.rodata
.LC23:
	.string	"vhc:f:d:a:s:o:"
	.align 8
.LC24:
	.string	"device = %s, address = 0x%08x, size = 0x%08x, offset = 0x%08x, count = %u\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	lea	rax, .LC11[rip]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 32
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 1
	mov	QWORD PTR -8[rbp], 0
	jmp	.L7
.L18:
	cmp	DWORD PTR -20[rbp], 0
	je	.L7
	cmp	DWORD PTR -20[rbp], 0
	js	.L9
	cmp	DWORD PTR -20[rbp], 118
	jg	.L9
	cmp	DWORD PTR -20[rbp], 97
	jl	.L9
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 97
	cmp	eax, 21
	ja	.L9
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L11[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L11[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L11:
	.long	.L17-.L11
	.long	.L9-.L11
	.long	.L16-.L11
	.long	.L15-.L11
	.long	.L9-.L11
	.long	.L14-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L13-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L12-.L11
	.long	.L9-.L11
	.long	.L9-.L11
	.long	.L10-.L11
	.text
.L10:
	mov	eax, DWORD PTR verbosity[rip]
	add	eax, 1
	mov	DWORD PTR verbosity[rip], eax
	jmp	.L7
.L15:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L7
.L17:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	getopt_integer
	mov	DWORD PTR -36[rbp], eax
	jmp	.L7
.L12:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	getopt_integer
	mov	DWORD PTR -32[rbp], eax
	jmp	.L7
.L13:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	getopt_integer
	and	eax, 4095
	mov	DWORD PTR -28[rbp], eax
	jmp	.L7
.L16:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	getopt_integer
	mov	DWORD PTR -24[rbp], eax
	jmp	.L7
.L14:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L7
.L9:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	mov	edi, 0
	call	exit@PLT
.L7:
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	r8d, 0
	lea	rcx, long_opts[rip]
	lea	rdx, .LC23[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L18
	mov	edi, DWORD PTR -24[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	r8, QWORD PTR -8[rbp]
	mov	edi, DWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	r9, r8
	mov	r8d, edi
	mov	rdi, rax
	call	test_dma
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
.LC25:
	.string	"the_stack_data/923058.c"
.LC26:
	.string	"t1->tv_nsec >= 0"
.LC27:
	.string	"t1->tv_nsec < 1000000000"
.LC28:
	.string	"t2->tv_nsec >= 0"
.LC29:
	.string	"t2->tv_nsec < 1000000000"
	.text
	.type	timespec_sub, @function
timespec_sub:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jns	.L21
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 130
	lea	rsi, .LC25[rip]
	lea	rdi, .LC26[rip]
	call	__assert_fail@PLT
.L21:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 999999999
	jle	.L22
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 131
	lea	rsi, .LC25[rip]
	lea	rdi, .LC27[rip]
	call	__assert_fail@PLT
.L22:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jns	.L23
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 132
	lea	rsi, .LC25[rip]
	lea	rdi, .LC28[rip]
	call	__assert_fail@PLT
.L23:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 999999999
	jle	.L24
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 133
	lea	rsi, .LC25[rip]
	lea	rdi, .LC29[rip]
	call	__assert_fail@PLT
.L24:
	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 -8[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 -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, 999999999
	jle	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -1000000000[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	jmp	.L27
.L25:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jns	.L27
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, 1000000000[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
.L27:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	timespec_sub, .-timespec_sub
	.section	.rodata
.LC30:
	.string	"allocated"
	.align 8
.LC31:
	.string	"host memory buffer = %p ; buffer+size:%p\n"
.LC32:
	.string	"fpga_fd >= 0"
.LC33:
	.string	"file_fd >= 0"
.LC34:
	.string	"read(file_fd)"
.LC35:
	.string	"rc == size"
.LC36:
	.string	"WR seek fpga_fd:%d, addr:%d \n"
	.align 8
.LC37:
	.string	"WR write buffer to fpga_fd finish"
	.align 8
.LC38:
	.string	"CLOCK_MONOTONIC reports %ld.%09ld seconds (total) for last transfer of %d bytes\n"
	.text
	.type	test_dma, @function
test_dma:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -104[rbp], rdi
	mov	DWORD PTR -108[rbp], esi
	mov	DWORD PTR -112[rbp], edx
	mov	DWORD PTR -116[rbp], ecx
	mov	DWORD PTR -120[rbp], r8d
	mov	QWORD PTR -128[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -112[rbp]
	add	eax, 4096
	mov	edx, eax
	lea	rax, -72[rbp]
	mov	esi, 4096
	mov	rdi, rax
	call	posix_memalign@PLT
	mov	rax, QWORD PTR -72[rbp]
	test	rax, rax
	jne	.L29
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 156
	lea	rsi, .LC25[rip]
	lea	rdi, .LC30[rip]
	call	__assert_fail@PLT
.L29:
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -116[rbp]
	add	rax, rdx
	mov	QWORD PTR -64[rbp], rax
	mov	edx, DWORD PTR -112[rbp]
	mov	rax, QWORD PTR -64[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC31[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -84[rbp], -1
	mov	rax, QWORD PTR -104[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], 0
	jns	.L30
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 162
	lea	rsi, .LC25[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L30:
	cmp	QWORD PTR -128[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -128[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L31
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 166
	lea	rsi, .LC25[rip]
	lea	rdi, .LC33[rip]
	call	__assert_fail@PLT
.L31:
	cmp	DWORD PTR -84[rbp], 0
	js	.L32
	mov	edx, DWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -112[rbp], eax
	je	.L33
	lea	rdi, .LC34[rip]
	call	perror@PLT
.L33:
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -112[rbp], eax
	je	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 173
	lea	rsi, .LC25[rip]
	lea	rdi, .LC35[rip]
	call	__assert_fail@PLT
.L32:
	mov	ecx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	edx, DWORD PTR -108[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC36[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L34
.L36:
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	edx, DWORD PTR -112[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -76[rbp], eax
	lea	rdi, .LC37[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -112[rbp], eax
	je	.L35
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 187
	lea	rsi, .LC25[rip]
	lea	rdi, .LC35[rip]
	call	__assert_fail@PLT
.L35:
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	DWORD PTR -76[rbp], eax
.L34:
	mov	eax, DWORD PTR -120[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -120[rbp], edx
	test	eax, eax
	jne	.L36
	lea	rdx, -48[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	timespec_sub
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	close@PLT
	cmp	DWORD PTR -84[rbp], 0
	js	.L37
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
.L37:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	test_dma, .-test_dma
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 13
__PRETTY_FUNCTION__.1:
	.string	"timespec_sub"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 9
__PRETTY_FUNCTION__.0:
	.string	"test_dma"
	.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	"923058.c"
	.text
	.local	verbosity
	.comm	verbosity,4,4
	.local	read_back
	.comm	read_back,4,4
	.data
	.align	2
	.type	allowed_accesses, %object
	.size	allowed_accesses, 4
allowed_accesses:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"device\000"
	.align	2
.LC1:
	.ascii	"address\000"
	.align	2
.LC2:
	.ascii	"size\000"
	.align	2
.LC3:
	.ascii	"offset\000"
	.align	2
.LC4:
	.ascii	"count\000"
	.align	2
.LC5:
	.ascii	"file\000"
	.align	2
.LC6:
	.ascii	"verbose\000"
	.align	2
.LC7:
	.ascii	"help\000"
	.align	2
	.type	long_opts, %object
	.size	long_opts, 144
long_opts:
	.word	.LC0
	.word	1
	.word	0
	.word	100
	.word	.LC1
	.word	1
	.word	0
	.word	97
	.word	.LC2
	.word	1
	.word	0
	.word	115
	.word	.LC3
	.word	1
	.word	0
	.word	111
	.word	.LC4
	.word	1
	.word	0
	.word	99
	.word	.LC5
	.word	1
	.word	0
	.word	102
	.word	.LC6
	.word	0
	.word	0
	.word	118
	.word	.LC7
	.word	0
	.word	0
	.word	104
	.word	0
	.word	0
	.word	0
	.word	0
	.align	2
.LC8:
	.ascii	"%s\012\012\000"
	.align	2
.LC9:
	.ascii	"usage: %s [OPTIONS]\012\012\000"
	.align	2
.LC10:
	.ascii	"Write using SGDMA, optionally read input from a bin"
	.ascii	"ary input file.\012\000"
	.align	2
.LC11:
	.ascii	"/dev/xdma/card0/h2c0\000"
	.align	2
.LC12:
	.ascii	"  -%c (--%s) device (defaults to %s)\012\000"
	.align	2
.LC13:
	.ascii	"  -%c (--%s) address of the start address on the AX"
	.ascii	"I bus\012\000"
	.align	2
.LC14:
	.ascii	"  -%c (--%s) size of a single transfer\012\000"
	.align	2
.LC15:
	.ascii	"  -%c (--%s) page offset of transfer\012\000"
	.align	2
.LC16:
	.ascii	"  -%c (--%s) number of transfers\012\000"
	.align	2
.LC17:
	.ascii	"  -%c (--%s) filename to read/write the data of the"
	.ascii	" transfers\012\000"
	.align	2
.LC18:
	.ascii	"  -%c (--%s) be more verbose during test\012\000"
	.align	2
.LC19:
	.ascii	"  -%c (--%s) print usage help and exit\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	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, .L2
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r0, .L2+4
	bl	printf
	ldr	r0, .L2+8
	bl	puts
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #4]
	ldr	r3, .L2+16
	ldr	r0, .L2+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #4]
	mov	r2, r3
	ldr	r0, .L2+24
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #4]
	mov	r2, r3
	ldr	r0, .L2+28
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #4]
	mov	r2, r3
	ldr	r0, .L2+32
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #4]
	mov	r2, r3
	ldr	r0, .L2+36
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #4]
	mov	r2, r3
	ldr	r0, .L2+40
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #4]
	mov	r2, r3
	ldr	r0, .L2+44
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r2, .L2+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #4]
	mov	r2, r3
	ldr	r0, .L2+48
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	long_opts
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC20:
	.ascii	"0x%x\000"
	.align	2
.LC21:
	.ascii	"%ul\000"
	.align	2
.LC22:
	.ascii	"sscanf() = %d, value = 0x%08x\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getopt_integer, %function
getopt_integer:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L8+4
	ldr	r0, [fp, #-24]
	bl	__isoc99_sscanf
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bgt	.L5
	sub	r3, fp, #16
	mov	r2, r3
	ldr	r1, .L8+8
	ldr	r0, [fp, #-24]
	bl	__isoc99_sscanf
	str	r0, [fp, #-12]
.L5:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L8+12
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC23
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	getopt_integer, .-getopt_integer
	.section	.rodata
	.align	2
.LC24:
	.ascii	"vhc:f:d:a:s:o:\000"
	.align	2
.LC25:
	.ascii	"device = %s, address = 0x%08x, size = 0x%08x, offse"
	.ascii	"t = 0x%08x, count = %u\012\000"
	.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, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L24
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #32
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #118
	bgt	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #97
	blt	.L13
	ldr	r3, [fp, #-8]
	sub	r3, r3, #97
	cmp	r3, #21
	ldrls	pc, [pc, r3, asl #2]
	b	.L13
.L15:
	.word	.L21
	.word	.L13
	.word	.L20
	.word	.L19
	.word	.L13
	.word	.L18
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L17
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L16
	.word	.L13
	.word	.L13
	.word	.L14
.L14:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L24+4
	str	r3, [r2]
	b	.L11
.L19:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-32]
	b	.L11
.L21:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getopt_integer
	str	r0, [fp, #-28]
	b	.L11
.L16:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getopt_integer
	str	r0, [fp, #-24]
	b	.L11
.L17:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getopt_integer
	mov	r3, r0
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [fp, #-20]
	b	.L11
.L20:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	getopt_integer
	str	r0, [fp, #-16]
	b	.L11
.L18:
	ldr	r3, .L24+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-12]
	b	.L11
.L13:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	mov	r0, #0
	bl	exit
.L11:
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L24+12
	ldr	r2, .L24+16
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	getopt_long
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L22
	ldr	r3, [fp, #-16]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-32]
	ldr	r0, .L24+20
	bl	printf
	ldr	r3, [fp, #-12]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-32]
	bl	test_dma
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC11
	.word	verbosity
	.word	optarg
	.word	long_opts
	.word	.LC24
	.word	.LC25
	.size	main, .-main
	.section	.rodata
	.align	2
.LC26:
	.ascii	"the_stack_data/923058.c\000"
	.align	2
.LC27:
	.ascii	"t1->tv_nsec >= 0\000"
	.align	2
.LC28:
	.ascii	"t1->tv_nsec < 1000000000\000"
	.align	2
.LC29:
	.ascii	"t2->tv_nsec >= 0\000"
	.align	2
.LC30:
	.ascii	"t2->tv_nsec < 1000000000\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	timespec_sub, %function
timespec_sub:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bge	.L27
	ldr	r3, .L34
	mov	r2, #130
	ldr	r1, .L34+4
	ldr	r0, .L34+8
	bl	__assert_fail
.L27:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, .L34+12
	cmp	r3, r2
	ble	.L28
	ldr	r3, .L34
	mov	r2, #131
	ldr	r1, .L34+4
	ldr	r0, .L34+16
	bl	__assert_fail
.L28:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bge	.L29
	ldr	r3, .L34
	mov	r2, #132
	ldr	r1, .L34+4
	ldr	r0, .L34+20
	bl	__assert_fail
.L29:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r2, .L34+12
	cmp	r3, r2
	ble	.L30
	ldr	r3, .L34
	mov	r2, #133
	ldr	r1, .L34+4
	ldr	r0, .L34+24
	bl	__assert_fail
.L30:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-8]
	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, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, .L34+12
	cmp	r3, r2
	ble	.L31
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, .L34+28
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r3, [r2, #4]
	b	.L33
.L31:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bge	.L33
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, .L34+32
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r3, [r2, #4]
.L33:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	__PRETTY_FUNCTION__.6348
	.word	.LC26
	.word	.LC27
	.word	999999999
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	-1000000000
	.word	1000000000
	.size	timespec_sub, .-timespec_sub
	.section	.rodata
	.align	2
.LC31:
	.ascii	"allocated\000"
	.align	2
.LC32:
	.ascii	"host memory buffer = %p ; buffer+size:%p\012\000"
	.align	2
.LC33:
	.ascii	"fpga_fd >= 0\000"
	.align	2
.LC34:
	.ascii	"file_fd >= 0\000"
	.align	2
.LC35:
	.ascii	"read(file_fd)\000"
	.align	2
.LC36:
	.ascii	"rc == size\000"
	.align	2
.LC37:
	.ascii	"WR seek fpga_fd:%d, addr:%d \012\000"
	.align	2
.LC38:
	.ascii	"WR write buffer to fpga_fd finish\000"
	.align	2
.LC39:
	.ascii	"CLOCK_MONOTONIC reports %ld.%09ld seconds (total) f"
	.ascii	"or last transfer of %d bytes\012\000"
	.align	2
.LC40:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_dma, %function
test_dma:
	@ args = 8, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	str	r3, [fp, #-68]
	ldr	r3, [fp, #8]
	str	r3, [fp, #-72]
	ldr	r3, .L47
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-64]
	add	r2, r3, #4096
	sub	r3, fp, #48
	mov	r1, #4096
	mov	r0, r3
	bl	posix_memalign
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L47+4
	mov	r2, #156
	ldr	r1, .L47+8
	ldr	r0, .L47+12
	bl	__assert_fail
.L37:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-68]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-40]
	ldr	r0, .L47+16
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-44]
	mov	r1, #2
	ldr	r0, [fp, #-56]
	bl	open
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L38
	ldr	r3, .L47+4
	mov	r2, #162
	ldr	r1, .L47+8
	ldr	r0, .L47+20
	bl	__assert_fail
.L38:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L39
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	open
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L39
	ldr	r3, .L47+4
	mov	r2, #166
	ldr	r1, .L47+8
	ldr	r0, .L47+24
	bl	__assert_fail
.L39:
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	blt	.L40
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-44]
	bl	read
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L41
	ldr	r0, .L47+28
	bl	perror
.L41:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L40
	ldr	r3, .L47+4
	mov	r2, #173
	ldr	r1, .L47+8
	ldr	r0, .L47+32
	bl	__assert_fail
.L40:
	ldr	r3, [fp, #-60]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	lseek
	str	r0, [fp, #-28]
	ldr	r2, [fp, #-60]
	ldr	r1, [fp, #-36]
	ldr	r0, .L47+36
	bl	printf
	b	.L42
.L44:
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	str	r0, [fp, #-32]
	ldr	r2, [fp, #-64]
	ldr	r1, [fp, #-40]
	ldr	r0, [fp, #-36]
	bl	write
	str	r0, [fp, #-32]
	ldr	r0, .L47+40
	bl	puts
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L43
	ldr	r3, .L47+4
	mov	r2, #187
	ldr	r1, .L47+8
	ldr	r0, .L47+32
	bl	__assert_fail
.L43:
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	str	r0, [fp, #-32]
.L42:
	ldr	r3, [fp, #4]
	sub	r2, r3, #1
	str	r2, [fp, #4]
	cmp	r3, #0
	bne	.L44
	sub	r2, fp, #24
	sub	r3, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	timespec_sub
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-64]
	ldr	r0, .L47+44
	bl	printf
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	blt	.L45
	ldr	r0, [fp, #-44]
	bl	close
.L45:
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	free
	nop
	ldr	r2, .L47
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L46
	bl	__stack_chk_fail
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC40
	.word	__PRETTY_FUNCTION__.6362
	.word	.LC26
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.size	test_dma, .-test_dma
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6348, %object
	.size	__PRETTY_FUNCTION__.6348, 13
__PRETTY_FUNCTION__.6348:
	.ascii	"timespec_sub\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6362, %object
	.size	__PRETTY_FUNCTION__.6362, 9
__PRETTY_FUNCTION__.6362:
	.ascii	"test_dma\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
