	.file	"744533.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error opening client pipe"
.LC1:
	.string	"Error opening output file"
.LC2:
	.string	"Invalid request"
.LC3:
	.string	"Request Discarded"
	.text
	.globl	handle_request
	.type	handle_request, @function
handle_request:
.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, 1072
	mov	QWORD PTR -1064[rbp], rdi
	mov	QWORD PTR -1072[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1064[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1056[rbp], eax
	cmp	DWORD PTR -1056[rbp], 0
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, -1
	call	_exit@PLT
.L2:
	mov	rax, QWORD PTR -1072[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 438
	mov	esi, 65
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1052[rbp], eax
	cmp	DWORD PTR -1052[rbp], 0
	jns	.L4
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, -1
	call	_exit@PLT
.L5:
	lea	rax, -1040[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	lea	rax, -1040[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L4
	mov	rdx, QWORD PTR -1048[rbp]
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1052[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L4:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1056[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -1048[rbp], rax
	cmp	QWORD PTR -1048[rbp], 0
	jg	.L5
	mov	eax, DWORD PTR -1052[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	unlink@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handle_request, .-handle_request
	.section	.rodata
.LC4:
	.string	"USAGE:\n"
.LC5:
	.string	"./aurras status\n"
	.align 8
.LC6:
	.string	"./aurras transform input-filename output-filename filter id-1 filter id-2 ...\n"
.LC7:
	.string	"tmp/fifo_server"
.LC8:
	.string	"Error opening server pipe"
.LC9:
	.string	"status"
.LC10:
	.string	"tmp/status"
.LC11:
	.string	"Error opening status pipe"
.LC12:
	.string	"transform"
.LC13:
	.string	"tmp/%d"
.LC14:
	.string	"Error creating fifo"
.LC15:
	.string	"%d %s %s %s\n"
	.align 8
.LC16:
	.string	"Insufficient number of arguments"
	.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
	push	r12
	push	rbx
	sub	rsp, 2256
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	DWORD PTR -2260[rbp], edi
	mov	QWORD PTR -2272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -2260[rbp], 1
	jne	.L8
	mov	edx, 8
	lea	rsi, .LC4[rip]
	mov	edi, 1
	call	write@PLT
	mov	edx, 17
	lea	rsi, .LC5[rip]
	mov	edi, 1
	call	write@PLT
	mov	edx, 79
	lea	rsi, .LC6[rip]
	mov	edi, 1
	call	write@PLT
	mov	eax, 0
	jmp	.L11
.L8:
	mov	esi, 2049
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2240[rbp], eax
	cmp	DWORD PTR -2240[rbp], 0
	jns	.L10
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L11
.L10:
	cmp	DWORD PTR -2260[rbp], 2
	jne	.L12
	mov	rax, QWORD PTR -2272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -2240[rbp]
	mov	edx, 7
	lea	rsi, .LC9[rip]
	mov	edi, eax
	call	write@PLT
	mov	esi, 0
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2236[rbp], eax
	cmp	DWORD PTR -2236[rbp], 0
	jns	.L14
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L11
.L15:
	mov	rdx, QWORD PTR -2232[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
.L14:
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -2236[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -2232[rbp], rax
	cmp	QWORD PTR -2232[rbp], 0
	jg	.L15
	mov	eax, DWORD PTR -2236[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L16
.L12:
	cmp	DWORD PTR -2260[rbp], 2
	jle	.L17
	mov	rax, QWORD PTR -2272[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -2080[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -2080[rbp]
	mov	esi, 438
	mov	rdi, rax
	call	mkfifo@PLT
	test	eax, eax
	jns	.L18
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L11
.L18:
	mov	rax, QWORD PTR -2272[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -2224[rbp], rax
	mov	rax, QWORD PTR -2272[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -2216[rbp], rax
	lea	rax, -2224[rbp]
	add	rax, 16
	mov	edx, 128
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -2244[rbp], 4
	jmp	.L19
.L21:
	mov	eax, DWORD PTR -2244[rbp]
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2272[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdx, -2224[rbp]
	add	rdx, 16
	mov	rsi, rax
	mov	rdi, rdx
	call	strcat@PLT
	mov	eax, DWORD PTR -2244[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -2260[rbp]
	cmp	edx, eax
	jnb	.L20
	lea	rax, -2224[rbp]
	add	rax, 16
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -2224[rbp]
	add	rax, 16
	add	rax, rdx
	mov	WORD PTR [rax], 32
.L20:
	add	DWORD PTR -2244[rbp], 1
.L19:
	mov	eax, DWORD PTR -2260[rbp]
	cmp	DWORD PTR -2244[rbp], eax
	jb	.L21
	mov	r12, QWORD PTR -2216[rbp]
	mov	rbx, QWORD PTR -2224[rbp]
	call	getpid@PLT
	mov	edx, eax
	lea	rax, -2224[rbp]
	lea	rcx, 16[rax]
	lea	rax, -1056[rbp]
	mov	r9, rcx
	mov	r8, r12
	mov	rcx, rbx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -1056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -2240[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	lea	rdx, -2224[rbp]
	lea	rax, -2080[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	handle_request
	jmp	.L16
.L17:
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L11
.L16:
	mov	eax, 0
.L11:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	add	rsp, 2256
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"744533.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error opening client pipe\000"
	.align	2
.LC1:
	.ascii	"Error opening output file\000"
	.align	2
.LC2:
	.ascii	"Invalid request\000"
	.align	2
.LC3:
	.ascii	"Request Discarded\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_request, %function
handle_request:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1040
	sub	sp, sp, #8
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, [fp, #-1048]
	bl	open
	str	r0, [fp, #-1044]
	ldr	r3, [fp, #-1044]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L7+4
	bl	perror
	mvn	r0, #0
	bl	_exit
.L2:
	ldr	r3, [fp, #-1052]
	ldr	r3, [r3, #4]
	ldr	r2, .L7+8
	mov	r1, #65
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1040]
	ldr	r3, [fp, #-1040]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L7+12
	bl	perror
	mvn	r0, #0
	bl	_exit
.L5:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L7+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L7+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r2, [fp, #-1036]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1040]
	bl	write
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1044]
	bl	read
	str	r0, [fp, #-1036]
	ldr	r3, [fp, #-1036]
	cmp	r3, #0
	bgt	.L5
	ldr	r0, [fp, #-1040]
	bl	close
	ldr	r0, [fp, #-1048]
	bl	unlink
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC4
	.word	.LC0
	.word	438
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	handle_request, .-handle_request
	.section	.rodata
	.align	2
.LC5:
	.ascii	"USAGE:\012\000"
	.align	2
.LC6:
	.ascii	"./aurras status\012\000"
	.align	2
.LC7:
	.ascii	"./aurras transform input-filename output-filename f"
	.ascii	"ilter id-1 filter id-2 ...\012\000"
	.align	2
.LC8:
	.ascii	"tmp/fifo_server\000"
	.align	2
.LC9:
	.ascii	"Error opening server pipe\000"
	.align	2
.LC10:
	.ascii	"status\000"
	.align	2
.LC11:
	.ascii	"tmp/status\000"
	.align	2
.LC12:
	.ascii	"Error opening status pipe\000"
	.align	2
.LC13:
	.ascii	"transform\000"
	.align	2
.LC14:
	.ascii	"tmp/%d\000"
	.align	2
.LC15:
	.ascii	"Error creating fifo\000"
	.align	2
.LC16:
	.ascii	" \000"
	.align	2
.LC17:
	.ascii	"%d %s %s %s\012\000"
	.align	2
.LC18:
	.ascii	"Insufficient number of arguments\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2216
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2224
	str	r0, [fp, #-2216]
	str	r1, [fp, #-2220]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-2216]
	cmp	r3, #1
	bne	.L10
	mov	r2, #8
	ldr	r1, .L25+4
	mov	r0, #1
	bl	write
	mov	r2, #17
	ldr	r1, .L25+8
	mov	r0, #1
	bl	write
	mov	r2, #79
	ldr	r1, .L25+12
	mov	r0, #1
	bl	write
	mov	r3, #0
	b	.L13
.L10:
	ldr	r1, .L25+16
	ldr	r0, .L25+20
	bl	open
	str	r0, [fp, #-2204]
	ldr	r3, [fp, #-2204]
	cmp	r3, #0
	bge	.L12
	ldr	r0, .L25+24
	bl	perror
	mvn	r3, #0
	b	.L13
.L12:
	ldr	r3, [fp, #-2216]
	cmp	r3, #2
	bne	.L14
	ldr	r3, [fp, #-2220]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L25+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	mov	r2, #7
	ldr	r1, .L25+28
	ldr	r0, [fp, #-2204]
	bl	write
	mov	r1, #0
	ldr	r0, .L25+32
	bl	open
	str	r0, [fp, #-2200]
	ldr	r3, [fp, #-2200]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L25+36
	bl	perror
	mvn	r3, #0
	b	.L13
.L17:
	ldr	r2, [fp, #-2196]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
.L16:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-2200]
	bl	read
	str	r0, [fp, #-2196]
	ldr	r3, [fp, #-2196]
	cmp	r3, #0
	bgt	.L17
	ldr	r0, [fp, #-2200]
	bl	close
	b	.L18
.L14:
	ldr	r3, [fp, #-2216]
	cmp	r3, #2
	ble	.L19
	ldr	r3, [fp, #-2220]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L25+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	bl	getpid
	mov	r2, r0
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L25+44
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r1, .L25+48
	mov	r0, r3
	bl	mkfifo
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L25+52
	bl	perror
	mvn	r3, #0
	b	.L13
.L20:
	ldr	r3, [fp, #-2220]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-2192]
	ldr	r3, [fp, #-2220]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-2188]
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #8
	mov	r2, #128
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #4
	str	r3, [fp, #-2208]
	b	.L21
.L23:
	ldr	r3, [fp, #-2208]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2220]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-2208]
	add	r2, r3, #1
	ldr	r3, [fp, #-2216]
	cmp	r2, r3
	bcs	.L22
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #8
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #8
	add	r3, r3, r2
	ldr	r2, .L25+56
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
.L22:
	ldr	r3, [fp, #-2208]
	add	r3, r3, #1
	str	r3, [fp, #-2208]
.L21:
	ldr	r3, [fp, #-2216]
	ldr	r2, [fp, #-2208]
	cmp	r2, r3
	bcc	.L23
	bl	getpid
	mov	ip, r0
	ldr	r1, [fp, #-2192]
	ldr	r2, [fp, #-2188]
	sub	r0, fp, #1024
	sub	r0, r0, #4
	sub	r0, r0, #4
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #12
	add	r3, r3, #8
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, r1
	mov	r2, ip
	ldr	r1, .L25+60
	bl	sprintf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2204]
	bl	write
	sub	r2, fp, #2176
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	handle_request
	b	.L18
.L19:
	ldr	r0, .L25+64
	bl	perror
	mvn	r3, #0
	b	.L13
.L18:
	mov	r3, #0
.L13:
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC19
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	2049
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	438
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
