	.file	"928421.c"
	.intel_syntax noprefix
	.text
	.globl	option_invalid
	.bss
	.align 8
	.type	option_invalid, @object
	.size	option_invalid, 8
option_invalid:
	.zero	8
	.globl	option_file_in
	.align 8
	.type	option_file_in, @object
	.size	option_file_in, 8
option_file_in:
	.zero	8
	.globl	option_file_out
	.align 8
	.type	option_file_out, @object
	.size	option_file_out, 8
option_file_out:
	.zero	8
	.globl	file_in_descriptor
	.align 8
	.type	file_in_descriptor, @object
	.size	file_in_descriptor, 8
file_in_descriptor:
	.zero	8
	.globl	file_out_descriptor
	.align 8
	.type	file_out_descriptor, @object
	.size	file_out_descriptor, 8
file_out_descriptor:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Error (10001): No option recognized."
	.align 8
.LC1:
	.string	"Please specify at least one valid option."
	.align 8
.LC2:
	.string	"Error (10002): Invalid option: %s\n"
	.align 8
.LC3:
	.string	"Error (10003): No input Binary file specified."
	.align 8
.LC4:
	.string	"Error (10004): Cannot open file: %s\n"
	.align 8
.LC5:
	.string	"Error (10005): Cannot create file: %s\n"
	.text
	.globl	exception_handler
	.type	exception_handler, @function
exception_handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	je	.L13
	cmp	DWORD PTR -4[rbp], 0
	js	.L14
	cmp	DWORD PTR -4[rbp], 10005
	jg	.L14
	cmp	DWORD PTR -4[rbp], 10001
	jl	.L14
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 10001
	cmp	eax, 4
	ja	.L14
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L5[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L5[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L5:
	.long	.L9-.L5
	.long	.L8-.L5
	.long	.L7-.L5
	.long	.L6-.L5
	.long	.L4-.L5
	.text
.L9:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L10
.L8:
	mov	rax, QWORD PTR option_invalid[rip]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L7:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L10
.L6:
	mov	rax, QWORD PTR option_file_in[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L4:
	mov	rax, QWORD PTR option_file_out[rip]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L13:
	nop
	jmp	.L10
.L14:
	nop
.L10:
	mov	rax, QWORD PTR file_in_descriptor[rip]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR file_in_descriptor[rip]
	mov	rdi, rax
	call	fclose@PLT
.L11:
	mov	rax, QWORD PTR file_out_descriptor[rip]
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR file_out_descriptor[rip]
	mov	rdi, rax
	call	fclose@PLT
.L12:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	exception_handler, .-exception_handler
	.section	.rodata
.LC6:
	.string	"rb"
.LC7:
	.string	"w"
.LC8:
	.string	"%c"
.LC9:
	.string	"%02x"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	jmp	.L16
.L21:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L29
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 102
	je	.L18
	cmp	eax, 111
	je	.L19
	jmp	.L28
.L18:
	or	DWORD PTR -20[rbp], 4
	add	QWORD PTR -48[rbp], 8
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR option_file_in[rip], rax
	sub	DWORD PTR -36[rbp], 1
	jmp	.L17
.L19:
	or	DWORD PTR -20[rbp], 8
	add	QWORD PTR -48[rbp], 8
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR option_file_out[rip], rax
	sub	DWORD PTR -36[rbp], 1
	jmp	.L17
.L28:
	or	DWORD PTR -20[rbp], 1
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR option_invalid[rip], rax
	jmp	.L17
.L29:
	nop
.L17:
	add	QWORD PTR -48[rbp], 8
	sub	DWORD PTR -36[rbp], 1
.L16:
	cmp	DWORD PTR -36[rbp], 0
	jg	.L21
	mov	rax, QWORD PTR option_file_in[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file_in_descriptor[rip], rax
	mov	rax, QWORD PTR file_in_descriptor[rip]
	test	rax, rax
	jne	.L22
	mov	edi, 10004
	call	exception_handler
.L22:
	mov	rax, QWORD PTR option_file_out[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR file_out_descriptor[rip], rax
	mov	rax, QWORD PTR file_out_descriptor[rip]
	test	rax, rax
	jne	.L24
	mov	edi, 10005
	call	exception_handler
	jmp	.L24
.L25:
	mov	rax, QWORD PTR file_in_descriptor[rip]
	lea	rdx, -24[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR file_in_descriptor[rip]
	lea	rdx, -23[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR file_in_descriptor[rip]
	lea	rdx, -22[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR file_in_descriptor[rip]
	lea	rdx, -21[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	mov	rax, QWORD PTR file_in_descriptor[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L24
	movzx	eax, BYTE PTR -24[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR file_out_descriptor[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movzx	eax, BYTE PTR -23[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR file_out_descriptor[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movzx	eax, BYTE PTR -22[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR file_out_descriptor[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	movzx	eax, BYTE PTR -21[rbp]
	movzx	edx, al
	mov	rax, QWORD PTR file_out_descriptor[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR file_out_descriptor[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
.L24:
	mov	rax, QWORD PTR file_in_descriptor[rip]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L25
	mov	edi, 0
	call	exception_handler
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	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	"928421.c"
	.text
	.global	option_invalid
	.bss
	.align	2
	.type	option_invalid, %object
	.size	option_invalid, 4
option_invalid:
	.space	4
	.global	option_file_in
	.align	2
	.type	option_file_in, %object
	.size	option_file_in, 4
option_file_in:
	.space	4
	.global	option_file_out
	.align	2
	.type	option_file_out, %object
	.size	option_file_out, 4
option_file_out:
	.space	4
	.global	file_in_descriptor
	.align	2
	.type	file_in_descriptor, %object
	.size	file_in_descriptor, 4
file_in_descriptor:
	.space	4
	.global	file_out_descriptor
	.align	2
	.type	file_out_descriptor, %object
	.size	file_out_descriptor, 4
file_out_descriptor:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error (10001): No option recognized.\000"
	.align	2
.LC1:
	.ascii	"Please specify at least one valid option.\000"
	.align	2
.LC2:
	.ascii	"Error (10002): Invalid option: %s\012\000"
	.align	2
.LC3:
	.ascii	"Error (10003): No input Binary file specified.\000"
	.align	2
.LC4:
	.ascii	"Error (10004): Cannot open file: %s\012\000"
	.align	2
.LC5:
	.ascii	"Error (10005): Cannot create file: %s\012\000"
	.text
	.align	2
	.global	exception_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	exception_handler, %function
exception_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L14
	ldr	r3, [fp, #-8]
	ldr	r2, .L15
	cmp	r3, r2
	bgt	.L14
	ldr	r3, [fp, #-8]
	ldr	r2, .L15+4
	cmp	r3, r2
	blt	.L14
	ldr	r3, [fp, #-8]
	sub	r3, r3, #9984
	sub	r3, r3, #17
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L14
.L5:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L9:
	ldr	r0, .L15+8
	bl	puts
	ldr	r0, .L15+12
	bl	puts
	b	.L10
.L8:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+20
	bl	printf
	b	.L10
.L7:
	ldr	r0, .L15+24
	bl	puts
	b	.L10
.L6:
	ldr	r3, .L15+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+32
	bl	printf
	b	.L10
.L4:
	ldr	r3, .L15+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L15+40
	bl	printf
	b	.L10
.L13:
	nop
	b	.L10
.L14:
	nop
.L10:
	ldr	r3, .L15+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L15+44
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L11:
	ldr	r3, .L15+48
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L12:
	mov	r0, #0
	bl	exit
.L16:
	.align	2
.L15:
	.word	10005
	.word	10001
	.word	.LC0
	.word	.LC1
	.word	option_invalid
	.word	.LC2
	.word	.LC3
	.word	option_file_in
	.word	.LC4
	.word	option_file_out
	.word	.LC5
	.word	file_in_descriptor
	.word	file_out_descriptor
	.size	exception_handler, .-exception_handler
	.section	.rodata
	.align	2
.LC6:
	.ascii	"rb\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"%c\000"
	.align	2
.LC9:
	.ascii	"%02x\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L18
.L23:
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L31
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #102
	beq	.L20
	cmp	r3, #111
	beq	.L21
	b	.L30
.L20:
	ldr	r3, [fp, #-20]
	orr	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, .L32+4
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L19
.L21:
	ldr	r3, [fp, #-20]
	orr	r3, r3, #8
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, .L32+8
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L19
.L30:
	ldr	r3, [fp, #-20]
	orr	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-36]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, .L32+12
	str	r3, [r2]
	b	.L19
.L31:
	nop
.L19:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L18:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bgt	.L23
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r1, .L32+16
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L32+20
	str	r3, [r2]
	ldr	r3, .L32+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L32+24
	bl	exception_handler
.L24:
	ldr	r3, .L32+8
	ldr	r3, [r3]
	ldr	r1, .L32+28
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L32+32
	str	r3, [r2]
	ldr	r3, .L32+32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r0, .L32+36
	bl	exception_handler
	b	.L26
.L27:
	ldr	r3, .L32+20
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, .L32+40
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L32+20
	ldr	r3, [r3]
	sub	r2, fp, #23
	ldr	r1, .L32+40
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L32+20
	ldr	r3, [r3]
	sub	r2, fp, #22
	ldr	r1, .L32+40
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L32+20
	ldr	r3, [r3]
	sub	r2, fp, #21
	ldr	r1, .L32+40
	mov	r0, r3
	bl	__isoc99_fscanf
	ldr	r3, .L32+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L32+32
	ldr	r3, [r3]
	ldrb	r2, [fp, #-24]	@ zero_extendqisi2
	ldr	r1, .L32+44
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L32+32
	ldr	r3, [r3]
	ldrb	r2, [fp, #-23]	@ zero_extendqisi2
	ldr	r1, .L32+44
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L32+32
	ldr	r3, [r3]
	ldrb	r2, [fp, #-22]	@ zero_extendqisi2
	ldr	r1, .L32+44
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L32+32
	ldr	r3, [r3]
	ldrb	r2, [fp, #-21]	@ zero_extendqisi2
	ldr	r1, .L32+44
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L32+32
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
.L26:
	ldr	r3, .L32+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	mov	r0, #0
	bl	exception_handler
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC10
	.word	option_file_in
	.word	option_file_out
	.word	option_invalid
	.word	.LC6
	.word	file_in_descriptor
	.word	10004
	.word	.LC7
	.word	file_out_descriptor
	.word	10005
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
