	.file	"425532.c"
	.intel_syntax noprefix
	.text
	.globl	check_if_number
	.type	check_if_number, @function
check_if_number:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -20[rbp], al
	movsx	eax, BYTE PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	cmp	BYTE PTR -20[rbp], 47
	jle	.L2
	cmp	BYTE PTR -20[rbp], 57
	jg	.L2
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_if_number, .-check_if_number
	.globl	check_if_char
	.type	check_if_char, @function
check_if_char:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 96
	jle	.L5
	cmp	BYTE PTR -4[rbp], 122
	jle	.L6
.L5:
	cmp	BYTE PTR -4[rbp], 64
	jle	.L7
	cmp	BYTE PTR -4[rbp], 90
	jg	.L7
.L6:
	movsx	eax, BYTE PTR -4[rbp]
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_if_char, .-check_if_char
	.globl	check_if_other
	.type	check_if_other, @function
check_if_other:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 32
	jle	.L10
	cmp	BYTE PTR -4[rbp], 47
	jle	.L11
.L10:
	cmp	BYTE PTR -4[rbp], 57
	jle	.L12
	cmp	BYTE PTR -4[rbp], 64
	jle	.L11
.L12:
	cmp	BYTE PTR -4[rbp], 90
	jle	.L13
	cmp	BYTE PTR -4[rbp], 96
	jle	.L11
.L13:
	cmp	BYTE PTR -4[rbp], 122
	jle	.L14
	cmp	BYTE PTR -4[rbp], 127
	je	.L14
.L11:
	movsx	eax, BYTE PTR -4[rbp]
	jmp	.L15
.L14:
	mov	eax, 0
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	check_if_other, .-check_if_other
	.section	.rodata
.LC0:
	.string	"Not enough arguments passed"
	.align 8
.LC1:
	.string	"File Error: could not open file"
	.align 8
.LC2:
	.string	"File Error: could not open or create file"
.LC3:
	.string	" "
.LC4:
	.string	"\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 6
	je	.L17
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L47
.L17:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L19
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L47
.L19:
	mov	edi, 0
	call	umask@PLT
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], -1
	jne	.L20
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L47
.L20:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L21
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L47
.L21:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L22
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L47
.L22:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 40
	mov	rax, QWORD PTR [rax]
	mov	edx, 438
	mov	esi, 66
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L24
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 1
	jmp	.L47
.L28:
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	mov	edi, eax
	call	check_if_number
	test	eax, eax
	je	.L25
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L24
.L25:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 32
	jne	.L26
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L24
.L26:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 10
	jne	.L27
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L24
.L27:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -28[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
.L24:
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L28
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	jmp	.L29
.L33:
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	mov	edi, eax
	call	check_if_char
	test	eax, eax
	je	.L30
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L29
.L30:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 32
	jne	.L31
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L29
.L31:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 10
	jne	.L32
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L29
.L32:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -32[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
.L29:
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L33
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	jmp	.L34
.L38:
	movzx	eax, BYTE PTR -9[rbp]
	movsx	eax, al
	mov	edi, eax
	call	check_if_other
	test	eax, eax
	je	.L35
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L34
.L35:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 32
	jne	.L36
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L34
.L36:
	movzx	eax, BYTE PTR -9[rbp]
	cmp	al, 10
	jne	.L37
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L34
.L37:
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -24[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
.L34:
	lea	rcx, -9[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	test	rax, rax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -16[rbp], eax
	cmp	DWORD PTR -16[rbp], 0
	jne	.L38
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	jmp	.L39
.L46:
	lea	rcx, -43[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -42[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rcx, -41[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	edx, BYTE PTR -41[rbp]
	movzx	eax, BYTE PTR -43[rbp]
	cmp	dl, al
	sete	al
	movzx	edx, al
	movzx	eax, BYTE PTR -42[rbp]
	movsx	eax, al
	cmp	edx, eax
	jne	.L40
	lea	rcx, -41[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L41
.L40:
	movzx	eax, BYTE PTR -41[rbp]
	cmp	al, 32
	jne	.L42
	movzx	eax, BYTE PTR -42[rbp]
	cmp	al, 32
	jne	.L42
	movzx	eax, BYTE PTR -43[rbp]
	cmp	al, 32
	jne	.L42
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	lea	rsi, .LC3[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L41
.L42:
	movzx	eax, BYTE PTR -43[rbp]
	cmp	al, 10
	jne	.L43
	movzx	eax, BYTE PTR -42[rbp]
	cmp	al, 10
	jne	.L43
	movzx	eax, BYTE PTR -41[rbp]
	cmp	al, 10
	jne	.L43
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	lea	rsi, .LC4[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L41
.L43:
	movzx	edx, BYTE PTR -43[rbp]
	movzx	eax, BYTE PTR -42[rbp]
	cmp	dl, al
	jne	.L44
	movzx	eax, BYTE PTR -42[rbp]
	cmp	al, 32
	jne	.L44
	movzx	eax, BYTE PTR -43[rbp]
	cmp	al, 32
	jne	.L44
	lea	rcx, -41[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L41
.L44:
	movzx	edx, BYTE PTR -41[rbp]
	movzx	eax, BYTE PTR -42[rbp]
	cmp	dl, al
	jne	.L45
	movzx	eax, BYTE PTR -41[rbp]
	cmp	al, 32
	jne	.L45
	movzx	eax, BYTE PTR -42[rbp]
	cmp	al, 32
	jne	.L45
	lea	rcx, -43[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	jmp	.L41
.L45:
	movzx	edx, BYTE PTR -43[rbp]
	movzx	eax, BYTE PTR -41[rbp]
	cmp	dl, al
	jne	.L41
	movzx	eax, BYTE PTR -43[rbp]
	cmp	al, 32
	jne	.L41
	movzx	eax, BYTE PTR -41[rbp]
	cmp	al, 32
	jne	.L41
	lea	rcx, -42[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
.L41:
	sub	DWORD PTR -40[rbp], 1
.L39:
	cmp	DWORD PTR -40[rbp], 0
	jg	.L46
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -32[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L47:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L48
	call	__stack_chk_fail@PLT
.L48:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"425532.c"
	.text
	.align	2
	.global	check_if_number
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_if_number, %function
check_if_number:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L2
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L2
	ldr	r3, [fp, #-8]
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_if_number, .-check_if_number
	.align	2
	.global	check_if_char
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_if_char, %function
check_if_char:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L5
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L6
.L5:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L7
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L7
.L6:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L8
.L7:
	mov	r3, #0
.L8:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_if_char, .-check_if_char
	.align	2
	.global	check_if_other
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_if_other, %function
check_if_other:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #32
	bls	.L10
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L11
.L10:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L12
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L11
.L12:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bls	.L13
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #96
	bls	.L11
.L13:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #122
	bls	.L14
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #126
	bhi	.L14
.L11:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	b	.L15
.L14:
	mov	r3, #0
.L15:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_if_other, .-check_if_other
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Not enough arguments passed\000"
	.align	2
.LC1:
	.ascii	"File Error: could not open file\000"
	.align	2
.LC2:
	.ascii	"File Error: could not open or create file\000"
	.align	2
.LC3:
	.ascii	" \000"
	.align	2
.LC4:
	.ascii	"\012\000"
	.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 = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L49
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #6
	beq	.L17
	ldr	r0, .L49+4
	bl	puts
	mov	r3, #1
	b	.L47
.L17:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L49+8
	bl	puts
	mov	r3, #1
	b	.L47
.L19:
	mov	r0, #0
	bl	umask
	ldr	r3, [fp, #-52]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L49+12
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L49+16
	bl	puts
	ldr	r0, [fp, #-36]
	bl	close
	mov	r3, #1
	b	.L47
.L20:
	ldr	r3, [fp, #-52]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r2, .L49+12
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L49+16
	bl	puts
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r0, [fp, #-32]
	bl	close
	mov	r3, #1
	b	.L47
.L21:
	ldr	r3, [fp, #-52]
	add	r3, r3, #16
	ldr	r3, [r3]
	ldr	r2, .L49+12
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L49+16
	bl	puts
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r0, [fp, #-32]
	bl	close
	ldr	r0, [fp, #-28]
	bl	close
	mov	r3, #1
	b	.L47
.L22:
	ldr	r3, [fp, #-52]
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r2, .L49+12
	mov	r1, #66
	mov	r0, r3
	bl	open
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L49+16
	bl	puts
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r0, [fp, #-32]
	bl	close
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r0, [fp, #-24]
	bl	close
	mov	r3, #1
	b	.L47
.L28:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	mov	r0, r3
	bl	check_if_number
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	ldr	r2, [fp, #-16]
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	write
	b	.L24
.L25:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L26
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+20
	ldr	r0, [fp, #-28]
	bl	write
	b	.L24
.L26:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L27
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+24
	ldr	r0, [fp, #-28]
	bl	write
	b	.L24
.L27:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+20
	ldr	r0, [fp, #-28]
	bl	write
.L24:
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L28
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	lseek
	b	.L29
.L33:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	mov	r0, r3
	bl	check_if_char
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r2, [fp, #-16]
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	b	.L29
.L30:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L31
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+20
	ldr	r0, [fp, #-32]
	bl	write
	b	.L29
.L31:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L32
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+24
	ldr	r0, [fp, #-32]
	bl	write
	b	.L29
.L32:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+20
	ldr	r0, [fp, #-32]
	bl	write
.L29:
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L33
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	lseek
	b	.L34
.L38:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	mov	r0, r3
	bl	check_if_other
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r2, [fp, #-16]
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	write
	b	.L34
.L35:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L36
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+20
	ldr	r0, [fp, #-24]
	bl	write
	b	.L34
.L36:
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L37
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+24
	ldr	r0, [fp, #-24]
	bl	write
	b	.L34
.L37:
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, .L49+20
	ldr	r0, [fp, #-24]
	bl	write
.L34:
	sub	r3, fp, #12
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	read
	mov	r3, r0
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L38
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-36]
	bl	lseek
	str	r0, [fp, #-40]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	lseek
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	lseek
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	lseek
	b	.L39
.L46:
	sub	r3, fp, #43
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read
	sub	r3, fp, #42
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	read
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	read
	ldrb	r2, [fp, #-41]	@ zero_extendqisi2
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L40
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	write
	b	.L41
.L40:
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L42
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L42
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L42
	mov	r2, #1
	ldr	r1, .L49+20
	ldr	r0, [fp, #-20]
	bl	write
	b	.L41
.L42:
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L43
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L43
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L43
	mov	r2, #1
	ldr	r1, .L49+24
	ldr	r0, [fp, #-20]
	bl	write
	b	.L41
.L43:
	ldrb	r2, [fp, #-43]	@ zero_extendqisi2
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L44
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L44
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L44
	sub	r3, fp, #41
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	write
	b	.L41
.L44:
	ldrb	r2, [fp, #-41]	@ zero_extendqisi2
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L45
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L45
	ldrb	r3, [fp, #-42]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L45
	sub	r3, fp, #43
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	write
	b	.L41
.L45:
	ldrb	r2, [fp, #-43]	@ zero_extendqisi2
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L41
	ldrb	r3, [fp, #-43]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L41
	ldrb	r3, [fp, #-41]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L41
	sub	r3, fp, #42
	mov	r2, #1
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	write
.L41:
	ldr	r3, [fp, #-40]
	sub	r3, r3, #1
	str	r3, [fp, #-40]
.L39:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bgt	.L46
	ldr	r0, [fp, #-36]
	bl	close
	ldr	r0, [fp, #-32]
	bl	close
	ldr	r0, [fp, #-28]
	bl	close
	ldr	r0, [fp, #-24]
	bl	close
	ldr	r0, [fp, #-20]
	bl	close
	mov	r3, #0
.L47:
	ldr	r2, .L49
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	438
	.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
