	.file	"109649.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/fifo_ans"
.LC1:
	.string	"/tmp/fifo_req"
.LC2:
	.string	"The server is now closed!"
.LC3:
	.string	"Digit two numbers: "
.LC4:
	.string	"%d %d"
.LC5:
	.string	"Sum: %d\n"
.LC6:
	.string	"Difference: %d\n"
.LC7:
	.string	"Product: %d\n"
.LC8:
	.string	"i"
.LC9:
	.string	"Quocient: invalid"
.LC10:
	.string	"d"
.LC11:
	.string	"Quocient: %d\n"
.LC12:
	.string	"f"
.LC13:
	.string	"Quocient: %.2f\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
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 432
	lea	rdi, .LC0[rip]
	call	init_fifo
	mov	DWORD PTR -28[rbp], eax
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	lea	rdx, 4[rax]
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rcx, -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 8
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	lea	rcx, -44[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -40[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -36[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -10[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 2
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -10[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L3
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L4
.L3:
	lea	rax, -10[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	movss	xmm0, DWORD PTR -32[rbp]
	cvttss2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	lea	rax, -10[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L4
	movss	xmm0, DWORD PTR -32[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC13[rip]
	mov	eax, 1
	call	printf@PLT
.L4:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC0[rip]
	call	unlink@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC14:
	.string	"Can't create FIFO"
	.align 8
.LC15:
	.string	"FIFO '%s' sucessfully created\n"
	.align 8
.LC16:
	.string	"FIFO '%s' openned in READONLY mode\n"
.LC17:
	.string	"Could not open FIFO"
	.text
	.globl	init_fifo
	.type	init_fifo, @function
init_fifo:
.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	DWORD PTR -28[rbp], esi
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	mkfifo@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 2048
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L9:
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 2
	call	exit@PLT
.L12:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	init_fifo, .-init_fifo
	.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	"109649.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/fifo_ans\000"
	.align	2
.LC1:
	.ascii	"/tmp/fifo_req\000"
	.align	2
.LC2:
	.ascii	"The server is now closed!\000"
	.align	2
.LC3:
	.ascii	"Digit two numbers: \000"
	.align	2
.LC4:
	.ascii	"%d %d\000"
	.align	2
.LC5:
	.ascii	"Sum: %d\012\000"
	.align	2
.LC6:
	.ascii	"Difference: %d\012\000"
	.align	2
.LC7:
	.ascii	"Product: %d\012\000"
	.align	2
.LC8:
	.ascii	"i\000"
	.align	2
.LC9:
	.ascii	"Quocient: invalid\000"
	.align	2
.LC10:
	.ascii	"d\000"
	.global	__aeabi_f2iz
	.align	2
.LC11:
	.ascii	"Quocient: %d\012\000"
	.align	2
.LC12:
	.ascii	"f\000"
	.global	__aeabi_f2d
	.align	2
.LC13:
	.ascii	"Quocient: %.2f\012\000"
	.align	2
.LC14:
	.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
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #432
	ldr	r0, .L7+4
	bl	init_fifo
	str	r0, [fp, #-28]
	mov	r1, #1
	ldr	r0, .L7+8
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L7+12
	bl	puts
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r0, .L7+4
	bl	unlink
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r0, .L7+16
	bl	printf
	sub	r3, fp, #20
	add	r2, r3, #4
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L7+20
	bl	__isoc99_scanf
	sub	r3, fp, #20
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	mov	r1, #0
	ldr	r0, .L7+4
	bl	open
	str	r0, [fp, #-28]
	sub	r3, fp, #44
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	sub	r3, fp, #40
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	sub	r3, fp, #36
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	sub	r3, fp, #12
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	sub	r3, fp, #32
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, .L7+24
	bl	printf
	ldr	r3, [fp, #-40]
	mov	r1, r3
	ldr	r0, .L7+28
	bl	printf
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L7+32
	bl	printf
	sub	r3, fp, #12
	ldr	r1, .L7+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L7+40
	bl	puts
	b	.L4
.L3:
	sub	r3, fp, #12
	ldr	r1, .L7+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-32]	@ float
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+48
	bl	printf
	b	.L4
.L5:
	sub	r3, fp, #12
	ldr	r1, .L7+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-32]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L7+56
	bl	printf
.L4:
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r0, .L7+4
	bl	unlink
	mov	r0, #0
	bl	exit
.L8:
	.align	2
.L7:
	.word	.LC14
	.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	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Can't create FIFO\000"
	.align	2
.LC16:
	.ascii	"FIFO '%s' sucessfully created\012\000"
	.align	2
.LC17:
	.ascii	"FIFO '%s' openned in READONLY mode\012\000"
	.align	2
.LC18:
	.ascii	"Could not open FIFO\000"
	.text
	.align	2
	.global	init_fifo
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_fifo, %function
init_fifo:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L15
	bl	perror
	mov	r0, #1
	bl	exit
.L10:
	ldr	r1, [fp, #-16]
	ldr	r0, .L15+4
	bl	printf
	mov	r1, #2048
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L11
	ldr	r1, [fp, #-16]
	ldr	r0, .L15+8
	bl	printf
	b	.L14
.L11:
	ldr	r0, .L15+12
	bl	perror
	mov	r0, #2
	bl	exit
.L14:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	init_fifo, .-init_fifo
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
