	.file	"147752.c"
	.intel_syntax noprefix
	.text
	.type	manage_fifo, @function
manage_fifo:
.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	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rdx, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -8[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	manage_fifo, .-manage_fifo
	.section	.rodata
.LC0:
	.string	"changeit"
.LC1:
	.string	"newpass"
.LC2:
	.string	"io"
	.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -280[rbp], 0
	movabs	rax, 8243103748372395055
	movabs	rdx, 7362666745706211700
	mov	QWORD PTR -272[rbp], rax
	mov	QWORD PTR -264[rbp], rdx
	movabs	rsi, 121398012896873
	mov	edi, 0
	mov	QWORD PTR -256[rbp], rsi
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], rax
	mov	QWORD PTR -136[rbp], rdx
	movabs	rax, 32780217662531177
	mov	edx, 0
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	jmp	.L5
.L10:
	cmp	DWORD PTR -276[rbp], 105
	je	.L6
	cmp	DWORD PTR -276[rbp], 111
	je	.L7
	jmp	.L13
.L6:
	lea	rax, -272[rbp]
	mov	ecx, 8
	lea	rdx, .LC0[rip]
	mov	esi, 128
	mov	rdi, rax
	call	manage_fifo
	mov	DWORD PTR -280[rbp], eax
	jmp	.L5
.L7:
	lea	rax, -144[rbp]
	mov	ecx, 7
	lea	rdx, .LC1[rip]
	mov	esi, 128
	mov	rdi, rax
	call	manage_fifo
	mov	DWORD PTR -280[rbp], eax
	jmp	.L5
.L13:
	mov	DWORD PTR -280[rbp], 1
.L5:
	mov	rcx, QWORD PTR -304[rbp]
	mov	eax, DWORD PTR -292[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], -1
	je	.L9
	cmp	DWORD PTR -280[rbp], 0
	je	.L10
.L9:
	mov	eax, DWORD PTR -280[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.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	"147752.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	manage_fifo, %function
manage_fifo:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	write
	ldr	r0, [fp, #-8]
	bl	close
	ldr	r3, [fp, #-12]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	manage_fifo, .-manage_fifo
	.section	.rodata
	.align	2
.LC2:
	.ascii	"changeit\000"
	.align	2
.LC3:
	.ascii	"newpass\000"
	.align	2
.LC4:
	.ascii	"io\000"
	.align	2
.LC0:
	.ascii	"/tmp/certifier-fifo-in\000"
	.space	105
	.align	2
.LC1:
	.ascii	"/tmp/certifier-fifo-out\000"
	.space	104
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-272]
	ldr	r3, .L14+4
	sub	ip, fp, #264
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip]
	add	ip, ip, #4
	strh	r1, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r1, #16
	strb	r3, [ip]
	sub	r3, fp, #241
	mov	r2, #105
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L14+8
	sub	ip, fp, #136
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	sub	r3, fp, #112
	mov	r2, #104
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L5
.L10:
	ldr	r3, [fp, #-268]
	cmp	r3, #105
	beq	.L6
	ldr	r3, [fp, #-268]
	cmp	r3, #111
	beq	.L7
	b	.L13
.L6:
	sub	r0, fp, #264
	mov	r3, #8
	ldr	r2, .L14+12
	mov	r1, #128
	bl	manage_fifo
	str	r0, [fp, #-272]
	b	.L5
.L7:
	sub	r0, fp, #136
	mov	r3, #7
	ldr	r2, .L14+16
	mov	r1, #128
	bl	manage_fifo
	str	r0, [fp, #-272]
	b	.L5
.L13:
	mov	r3, #1
	str	r3, [fp, #-272]
.L5:
	ldr	r2, .L14+20
	ldr	r1, [fp, #-284]
	ldr	r0, [fp, #-280]
	bl	getopt
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	beq	.L9
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	beq	.L10
.L9:
	ldr	r3, [fp, #-272]
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
