	.file	"173577877.c"
	.intel_syntax noprefix
	.text
	.globl	char_to_int
	.type	char_to_int, @function
char_to_int:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	ecx, eax
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	eax, ecx
	mov	DWORD PTR -8[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L3
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	char_to_int, .-char_to_int
	.globl	int_to_char
	.type	int_to_char, @function
int_to_char:
.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, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	char_to_int
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	BYTE PTR -5[rbp], al
	movzx	eax, BYTE PTR -5[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	int_to_char, .-int_to_char
	.section	.rodata
	.align 8
.LC0:
	.string	"Argument Error: Too many or Too little arguments passed."
	.align 8
.LC1:
	.string	"File Error: unable to open file"
	.align 8
.LC2:
	.string	"File Error: unable to open or create file"
.LC3:
	.string	"File Error"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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
	cmp	DWORD PTR -36[rbp], 3
	je	.L8
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	DWORD PTR -28[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	jns	.L9
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 384
	mov	esi, 65
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jns	.L10
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	jmp	.L11
.L15:
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 32
	jne	.L12
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -12[rbp+rax], 0
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	int_to_char
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	DWORD PTR -28[rbp], 0
	jmp	.L11
.L12:
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 10
	jne	.L13
	mov	edi, 10
	call	putchar@PLT
	jmp	.L11
.L13:
	movzx	eax, BYTE PTR -13[rbp]
	cmp	al, 32
	je	.L14
	movzx	edx, BYTE PTR -13[rbp]
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	BYTE PTR -12[rbp+rax], dl
	add	DWORD PTR -28[rbp], 1
	jmp	.L11
.L14:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	lea	rcx, -13[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	jg	.L15
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.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	"173577877.c"
	.text
	.align	2
	.global	char_to_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	char_to_int, %function
char_to_int:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	add	r3, r1, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	char_to_int, .-char_to_int
	.align	2
	.global	int_to_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	int_to_char, %function
int_to_char:
	@ 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]
	ldr	r0, [fp, #-16]
	bl	char_to_int
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	strb	r3, [fp, #-9]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	int_to_char, .-int_to_char
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Argument Error: Too many or Too little arguments pa"
	.ascii	"ssed.\000"
	.align	2
.LC1:
	.ascii	"File Error: unable to open file\000"
	.align	2
.LC2:
	.ascii	"File Error: unable to open or create file\000"
	.align	2
.LC3:
	.ascii	"File Error\000"
	.align	2
.LC4:
	.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, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L8
	ldr	r0, .L17+4
	bl	printf
	mov	r0, #1
	bl	exit
.L8:
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L17+8
	bl	printf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r2, #384
	mov	r1, #65
	mov	r0, r3
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L17+12
	bl	printf
	ldr	r0, [fp, #-24]
	bl	close
	mov	r0, #1
	bl	exit
.L10:
	mov	r1, #1
	ldr	r0, [fp, #-20]
	bl	dup2
	b	.L11
.L15:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L12
	sub	r2, fp, #12
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #12
	mov	r0, r3
	bl	int_to_char
	mov	r3, r0
	mov	r0, r3
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L11
.L12:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L13
	mov	r0, #10
	bl	putchar
	b	.L11
.L13:
	ldrb	r3, [fp, #-16]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L14
	ldrb	r1, [fp, #-16]	@ zero_extendqisi2
	sub	r2, fp, #12
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	b	.L11
.L14:
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r0, [fp, #-20]
	bl	close
	ldr	r0, .L17+16
	bl	puts
	mov	r0, #1
	bl	exit
.L11:
	sub	r3, fp, #16
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	bgt	.L15
	mov	r0, #0
	bl	exit
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
