	.file	"609900.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/fifotest"
	.align 8
.LC1:
	.string	"usage: named_pipe_thr <message-size> <message-count>"
.LC2:
	.string	"malloc"
.LC3:
	.string	"message size: %i octets\n"
.LC4:
	.string	"message count: %lli\n"
.LC5:
	.string	"named-pipe"
.LC6:
	.string	"opening fifo for reading"
.LC7:
	.string	"read"
.LC8:
	.string	"opening fifo for writing"
.LC9:
	.string	"write"
.LC10:
	.string	"unlinking fifo"
	.align 8
.LC11:
	.string	"average throughput: %lli msg/s\n"
	.align 8
.LC12:
	.string	"average throughput: %lli Mb/s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -80[rbp], rax
	cmp	DWORD PTR -116[rbp], 3
	je	.L2
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -72[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L3
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	eax, DWORD PTR -100[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 420
	mov	rdi, rax
	call	mkfifo@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	call	fork@PLT
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -92[rbp], eax
	cmp	DWORD PTR -92[rbp], -1
	jne	.L6
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	QWORD PTR -88[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -92[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L8
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	add	QWORD PTR -88[rbp], 1
.L7:
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jl	.L9
	jmp	.L10
.L5:
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], -1
	jne	.L11
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	gettimeofday@PLT
	mov	QWORD PTR -88[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -100[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L13
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	add	QWORD PTR -88[rbp], 1
.L12:
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, QWORD PTR -72[rbp]
	jl	.L14
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	unlink@PLT
	cmp	eax, -1
	jne	.L15
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	lea	rax, -104[rbp]
	mov	rdi, rax
	call	wait@PLT
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR -40[rbp]
	sub	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	imul	rax, rax, 1000000
	cqo
	idiv	QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -72[rbp]
	imul	rax, rax, 1000000
	cqo
	idiv	QWORD PTR -56[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rcx, rdx
	imul	rcx, rax
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 15
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"609900.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/fifotest\000"
	.align	2
.LC1:
	.ascii	"usage: named_pipe_thr <message-size> <message-count"
	.ascii	">\000"
	.align	2
.LC2:
	.ascii	"malloc\000"
	.align	2
.LC3:
	.ascii	"message size: %i octets\012\000"
	.align	2
.LC4:
	.ascii	"message count: %lli\012\000"
	.align	2
.LC5:
	.ascii	"named-pipe\000"
	.align	2
.LC6:
	.ascii	"opening fifo for reading\000"
	.align	2
.LC7:
	.ascii	"read\000"
	.align	2
.LC8:
	.ascii	"opening fifo for writing\000"
	.align	2
.LC9:
	.ascii	"write\000"
	.align	2
.LC10:
	.ascii	"unlinking fifo\000"
	.global	__aeabi_ldivmod
	.align	2
.LC11:
	.ascii	"average throughput: %lli msg/s\012\000"
	.align	2
.LC12:
	.ascii	"average throughput: %lli Mb/s\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #112
	str	r0, [fp, #-104]
	str	r1, [fp, #-108]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	ldr	r3, .L18+4
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-104]
	cmp	r3, #3
	beq	.L2
	ldr	r0, .L18+8
	bl	puts
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-108]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-108]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-92]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L18+12
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r1, [fp, #-92]
	ldr	r0, .L18+16
	bl	printf
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, .L18+20
	bl	printf
	mov	r1, #420
	ldr	r0, [fp, #-96]
	bl	mkfifo
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L18+24
	bl	perror
	mov	r0, #1
	bl	exit
.L4:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	mov	r1, #0
	ldr	r0, [fp, #-96]
	bl	open
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L6
	ldr	r0, .L18+28
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L7
.L9:
	ldr	r3, [fp, #-92]
	mov	r2, r3
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-80]
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-92]
	cmp	r3, r2
	beq	.L8
	ldr	r0, .L18+32
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-76]
	str	r5, [fp, #-72]
.L7:
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L9
	b	.L10
.L5:
	mov	r1, #1
	ldr	r0, [fp, #-96]
	bl	open
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L18+36
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #48
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L12
.L14:
	ldr	r3, [fp, #-92]
	mov	r2, r3
	ldr	r1, [fp, #-88]
	ldr	r0, [fp, #-84]
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-92]
	cmp	r3, r2
	beq	.L13
	ldr	r0, .L18+40
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-132]
	adc	r3, r3, #0
	str	r3, [fp, #-128]
	sub	r4, fp, #132
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
.L12:
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L14
	ldr	r0, [fp, #-96]
	bl	unlink
	mov	r3, r0
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L18+44
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	sub	r3, fp, #100
	mov	r0, r3
	bl	wait
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	mov	r4, r3
	asr	r5, r4, #31
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	subs	r2, r2, r4
	sbc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #9
	orr	r1, r1, r2, lsr #23
	lsl	r0, r2, #9
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	subs	r0, r0, r2
	sbc	r1, r1, r3
	adds	r8, r0, r4
	adc	r9, r1, r5
	ldr	r3, [fp, #-36]
	mov	r2, r3
	asr	r3, r2, #31
	adds	r6, r8, r2
	adc	r7, r9, r3
	ldr	r3, [fp, #-44]
	mov	r2, r3
	asr	r3, r2, #31
	subs	r1, r6, r2
	str	r1, [fp, #-140]
	sbc	r3, r7, r3
	str	r3, [fp, #-136]
	sub	r4, fp, #140
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
	sub	r5, fp, #68
	ldmia	r5, {r4-r5}
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	subs	r2, r2, r4
	sbc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #9
	orr	r1, r1, r2, lsr #23
	lsl	r0, r2, #9
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	subs	r0, r0, r2
	sbc	r1, r1, r3
	adds	r3, r0, r4
	str	r3, [fp, #-116]
	adc	r3, r1, r5
	str	r3, [fp, #-112]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #116
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L18+48
	bl	printf
	sub	r5, fp, #68
	ldmia	r5, {r4-r5}
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	subs	r2, r2, r4
	sbc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #9
	orr	r1, r1, r2, lsr #23
	lsl	r0, r2, #9
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	subs	r0, r0, r2
	sbc	r1, r1, r3
	adds	r3, r0, r4
	str	r3, [fp, #-124]
	adc	r3, r1, r5
	str	r3, [fp, #-120]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-92]
	mov	r2, r3
	asr	r3, r2, #31
	mul	lr, r2, r1
	mul	ip, r0, r3
	add	ip, lr, ip
	umull	r4, r5, r0, r2
	add	r3, ip, r5
	mov	r5, r3
	ldr	r2, .L18+52
	mov	r3, #0
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L18+56
	bl	printf
.L10:
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC13
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	125000
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
