	.file	"845868.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage:  stripmsg <rpem_enciphered_msg >enciphered_text_only"
	.align 8
.LC1:
	.string	"-----PRIVACY-ENHANCED MESSAGE BOUNDARY-----"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -132[rbp], 0
	cmp	DWORD PTR -148[rbp], 1
	jle	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 59
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	cmp	DWORD PTR -132[rbp], 2
	je	.L5
	cmp	DWORD PTR -132[rbp], 2
	ja	.L4
	cmp	DWORD PTR -132[rbp], 0
	je	.L6
	cmp	DWORD PTR -132[rbp], 1
	je	.L7
	jmp	.L4
.L6:
	lea	rax, -128[rbp]
	mov	edx, 43
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L4
	mov	DWORD PTR -132[rbp], 1
	jmp	.L4
.L7:
	movzx	eax, BYTE PTR -128[rbp]
	cmp	al, 10
	jne	.L4
	mov	DWORD PTR -132[rbp], 2
	jmp	.L4
.L5:
	lea	rax, -128[rbp]
	mov	edx, 43
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L10
	mov	eax, 0
	jmp	.L12
.L10:
	mov	rdx, QWORD PTR stdout[rip]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	nop
.L4:
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -128[rbp]
	mov	esi, 120
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L11
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"845868.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:  stripmsg <rpem_enciphered_msg >enciphered_t"
	.ascii	"ext_only\000"
	.align	2
.LC1:
	.ascii	"-----PRIVACY-ENHANCED MESSAGE BOUNDARY-----\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-136]
	cmp	r3, #1
	ble	.L4
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r2, #59
	mov	r1, #1
	ldr	r0, .L14+8
	bl	fwrite
	mov	r3, #1
	b	.L12
.L11:
	ldr	r3, [fp, #-132]
	cmp	r3, #2
	beq	.L5
	ldr	r3, [fp, #-132]
	cmp	r3, #2
	bhi	.L4
	ldr	r3, [fp, #-132]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-132]
	cmp	r3, #1
	beq	.L7
	b	.L4
.L6:
	sub	r3, fp, #128
	mov	r2, #43
	ldr	r1, .L14+12
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L4
.L7:
	ldrb	r3, [fp, #-128]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L4
	mov	r3, #2
	str	r3, [fp, #-132]
	b	.L4
.L5:
	sub	r3, fp, #128
	mov	r2, #43
	ldr	r1, .L14+12
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	b	.L12
.L10:
	ldr	r3, .L14+16
	ldr	r2, [r3]
	sub	r3, fp, #128
	mov	r1, r2
	mov	r0, r3
	bl	fputs
	nop
.L4:
	ldr	r3, .L14+20
	ldr	r2, [r3]
	sub	r3, fp, #128
	mov	r1, #120
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	mov	r3, #0
.L12:
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	stdin
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
