	.file	"107965.c"
	.intel_syntax noprefix
	.text
	.globl	getdetlatimeofday
	.type	getdetlatimeofday, @function
getdetlatimeofday:
.LFB6:
	.cfi_startproc
	endbr64
	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	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm3, QWORD PTR .LC0[rip]
	divsd	xmm1, xmm3
	addsd	xmm1, xmm2
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getdetlatimeofday, .-getdetlatimeofday
	.section	.rodata
.LC1:
	.string	"usage: ./fifo <size> <count>"
.LC2:
	.string	"malloc"
.LC3:
	.string	"./fifo-ipc"
.LC4:
	.string	"mkfifo"
.LC5:
	.string	"open"
.LC6:
	.string	"read"
.LC7:
	.string	"wirte"
.LC9:
	.string	"%.0fMb/s %.0fmsg/s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -84[rbp], 3
	je	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L17
.L4:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L17
.L6:
	lea	rdi, .LC3[rip]
	call	unlink@PLT
	mov	esi, 0
	lea	rdi, .LC3[rip]
	call	mkfifo@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L17
.L7:
	mov	esi, 2
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -64[rbp], eax
	cmp	DWORD PTR -64[rbp], -1
	jne	.L8
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L17
.L8:
	call	fork@PLT
	test	eax, eax
	jne	.L9
	mov	DWORD PTR -76[rbp], 0
	mov	DWORD PTR -80[rbp], 0
	jmp	.L10
.L12:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], -1
	jne	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L17
.L11:
	mov	eax, DWORD PTR -60[rbp]
	add	DWORD PTR -76[rbp], eax
	add	DWORD PTR -80[rbp], 1
.L10:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L12
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -72[rbp]
	cmp	DWORD PTR -76[rbp], eax
	je	.L13
	mov	eax, 1
	jmp	.L17
.L9:
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -80[rbp], 0
	jmp	.L14
.L16:
	mov	eax, DWORD PTR -72[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -72[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L15
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L17
.L15:
	add	DWORD PTR -80[rbp], 1
.L14:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L16
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -68[rbp]
	movsd	QWORD PTR -104[rbp], xmm2
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getdetlatimeofday
	movsd	xmm2, QWORD PTR -104[rbp]
	divsd	xmm2, xmm0
	movsd	QWORD PTR -104[rbp], xmm2
	mov	eax, DWORD PTR -68[rbp]
	imul	eax, DWORD PTR -72[rbp]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movsd	QWORD PTR -112[rbp], xmm3
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getdetlatimeofday
	movsd	xmm3, QWORD PTR -112[rbp]
	divsd	xmm3, xmm0
	movapd	xmm1, xmm3
	movsd	xmm0, QWORD PTR .LC8[rip]
	mulsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR -104[rbp]
	movq	xmm0, rax
	lea	rdi, .LC9[rip]
	mov	eax, 2
	call	printf@PLT
.L13:
	mov	eax, 0
.L17:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.align 8
.LC8:
	.long	0
	.long	1075838976
	.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	"107965.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.align	2
	.global	getdetlatimeofday
	.syntax unified
	.arm
	.fpu softvfp
	.type	getdetlatimeofday, %function
getdetlatimeofday:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L4:
	.align	2
.L3:
	.word	1093567616
	.size	getdetlatimeofday, .-getdetlatimeofday
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: ./fifo <size> <count>\000"
	.align	2
.LC1:
	.ascii	"malloc\000"
	.align	2
.LC2:
	.ascii	"./fifo-ipc\000"
	.align	2
.LC3:
	.ascii	"mkfifo\000"
	.align	2
.LC4:
	.ascii	"open\000"
	.align	2
.LC5:
	.ascii	"read\000"
	.align	2
.LC6:
	.ascii	"wirte\000"
	.global	__aeabi_dmul
	.align	2
.LC7:
	.ascii	"%.0fMb/s %.0fmsg/s\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #64
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-72]
	cmp	r3, #3
	beq	.L6
	ldr	r0, .L21+4
	bl	puts
	mov	r3, #1
	b	.L19
.L6:
	ldr	r3, [fp, #-76]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-60]
	ldr	r3, [fp, #-76]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L21+8
	bl	perror
	mov	r3, #1
	b	.L19
.L8:
	ldr	r0, .L21+12
	bl	unlink
	mov	r1, #0
	ldr	r0, .L21+12
	bl	mkfifo
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L21+16
	bl	perror
	mov	r3, #1
	b	.L19
.L9:
	mov	r1, #2
	ldr	r0, .L21+12
	bl	open
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L21+20
	bl	perror
	mov	r3, #1
	b	.L19
.L10:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
	str	r3, [fp, #-64]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L12
.L14:
	ldr	r3, [fp, #-60]
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	read
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L13
	ldr	r0, .L21+24
	bl	perror
	mov	r3, #1
	b	.L19
.L13:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L12:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	mul	r3, r2, r3
	ldr	r2, [fp, #-64]
	cmp	r2, r3
	beq	.L15
	mov	r3, #1
	b	.L19
.L11:
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L16
.L18:
	ldr	r3, [fp, #-60]
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-60]
	cmp	r3, r2
	beq	.L17
	ldr	r0, .L21+28
	bl	perror
	mov	r3, #1
	b	.L19
.L17:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L16:
	ldr	r2, [fp, #-68]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L18
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-60]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	sub	r2, fp, #32
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	getdetlatimeofday
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L21+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L21+36
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r0, [fp, #-56]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	sub	r2, fp, #32
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	getdetlatimeofday
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	ldr	r0, .L21+40
	bl	printf
.L15:
	mov	r3, #0
.L19:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L20
	bl	__stack_chk_fail
.L20:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	1075838976
	.word	1093567616
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
