	.file	"1044206.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"r"
	.align 8
.LC1:
	.string	"usage: textconvert <sysfrom> <systo> [file]\n"
	.align 8
.LC2:
	.string	"systems are u[nix], m[ac], w[indows].\n"
	.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 0
	cmp	DWORD PTR -36[rbp], 2
	jle	.L24
	cmp	DWORD PTR -36[rbp], 4
	jg	.L24
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -36[rbp], 4
	jne	.L5
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR stdin[rip]
	mov	QWORD PTR -8[rbp], rax
.L6:
	cmp	DWORD PTR -16[rbp], 117
	je	.L7
	cmp	DWORD PTR -16[rbp], 109
	je	.L7
	cmp	DWORD PTR -16[rbp], 119
	jne	.L25
.L7:
	cmp	DWORD PTR -12[rbp], 117
	je	.L10
	cmp	DWORD PTR -12[rbp], 109
	je	.L10
	cmp	DWORD PTR -12[rbp], 119
	jne	.L25
	jmp	.L10
.L23:
	cmp	DWORD PTR -16[rbp], 117
	jne	.L11
	cmp	DWORD PTR -12[rbp], 109
	jne	.L11
	cmp	DWORD PTR -24[rbp], 10
	jne	.L12
	mov	DWORD PTR -24[rbp], 13
.L12:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L10
.L11:
	cmp	DWORD PTR -16[rbp], 117
	jne	.L13
	cmp	DWORD PTR -12[rbp], 119
	jne	.L13
	cmp	DWORD PTR -24[rbp], 10
	jne	.L14
	mov	edi, 13
	call	putchar@PLT
.L14:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L10
.L13:
	cmp	DWORD PTR -16[rbp], 109
	jne	.L15
	cmp	DWORD PTR -12[rbp], 117
	jne	.L15
	cmp	DWORD PTR -24[rbp], 13
	jne	.L16
	mov	DWORD PTR -24[rbp], 10
.L16:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L10
.L15:
	cmp	DWORD PTR -16[rbp], 109
	jne	.L17
	cmp	DWORD PTR -12[rbp], 119
	jne	.L17
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
	cmp	DWORD PTR -24[rbp], 13
	jne	.L10
	mov	edi, 10
	call	putchar@PLT
	jmp	.L10
.L17:
	cmp	DWORD PTR -16[rbp], 119
	jne	.L19
	cmp	DWORD PTR -12[rbp], 117
	jne	.L19
	cmp	DWORD PTR -24[rbp], 13
	je	.L10
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L10
.L19:
	cmp	DWORD PTR -16[rbp], 119
	jne	.L21
	cmp	DWORD PTR -12[rbp], 109
	jne	.L21
	cmp	DWORD PTR -24[rbp], 10
	je	.L10
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
	jmp	.L10
.L21:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	putchar@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], -1
	jne	.L23
	mov	edi, 0
	call	exit@PLT
.L24:
	nop
	jmp	.L4
.L25:
	nop
.L4:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.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	"1044206.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"r\000"
	.align	2
.LC1:
	.ascii	"usage: textconvert <sysfrom> <systo> [file]\012\000"
	.align	2
.LC2:
	.ascii	"systems are u[nix], m[ac], w[indows].\012\000"
	.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]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	ble	.L24
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bgt	.L24
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bne	.L5
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L26
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-36]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, .L26+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #117
	beq	.L7
	ldr	r3, [fp, #-12]
	cmp	r3, #109
	beq	.L7
	ldr	r3, [fp, #-12]
	cmp	r3, #119
	bne	.L25
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #117
	beq	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #109
	beq	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #119
	bne	.L25
	b	.L10
.L23:
	ldr	r3, [fp, #-12]
	cmp	r3, #117
	bne	.L11
	ldr	r3, [fp, #-8]
	cmp	r3, #109
	bne	.L11
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	bne	.L12
	mov	r3, #13
	str	r3, [fp, #-20]
.L12:
	ldr	r0, [fp, #-20]
	bl	putchar
	b	.L10
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #117
	bne	.L13
	ldr	r3, [fp, #-8]
	cmp	r3, #119
	bne	.L13
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	bne	.L14
	mov	r0, #13
	bl	putchar
.L14:
	ldr	r0, [fp, #-20]
	bl	putchar
	b	.L10
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #109
	bne	.L15
	ldr	r3, [fp, #-8]
	cmp	r3, #117
	bne	.L15
	ldr	r3, [fp, #-20]
	cmp	r3, #13
	bne	.L16
	mov	r3, #10
	str	r3, [fp, #-20]
.L16:
	ldr	r0, [fp, #-20]
	bl	putchar
	b	.L10
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #109
	bne	.L17
	ldr	r3, [fp, #-8]
	cmp	r3, #119
	bne	.L17
	ldr	r0, [fp, #-20]
	bl	putchar
	ldr	r3, [fp, #-20]
	cmp	r3, #13
	bne	.L10
	mov	r0, #10
	bl	putchar
	b	.L10
.L17:
	ldr	r3, [fp, #-12]
	cmp	r3, #119
	bne	.L19
	ldr	r3, [fp, #-8]
	cmp	r3, #117
	bne	.L19
	ldr	r3, [fp, #-20]
	cmp	r3, #13
	beq	.L10
	ldr	r0, [fp, #-20]
	bl	putchar
	b	.L10
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #119
	bne	.L21
	ldr	r3, [fp, #-8]
	cmp	r3, #109
	bne	.L21
	ldr	r3, [fp, #-20]
	cmp	r3, #10
	beq	.L10
	ldr	r0, [fp, #-20]
	bl	putchar
	b	.L10
.L21:
	ldr	r0, [fp, #-20]
	bl	putchar
.L10:
	ldr	r0, [fp, #-24]
	bl	getc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmn	r3, #1
	bne	.L23
	mov	r0, #0
	bl	exit
.L24:
	nop
	b	.L4
.L25:
	nop
.L4:
	ldr	r3, .L26+8
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L26+12
	bl	fwrite
	ldr	r3, .L26+8
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L26+16
	bl	fwrite
	mov	r0, #1
	bl	exit
.L27:
	.align	2
.L26:
	.word	.LC0
	.word	stdin
	.word	stderr
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
