	.file	"737436.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: line_endings unix|dos FILES\n\nConvert FILES to either unix or dos line endings.\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 86
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"unix"
.LC2:
	.string	"dos"
	.align 8
.LC3:
	.string	"unable to open file for read/write: %s\n"
.LC4:
	.string	"unable to read file: %s\n"
.LC5:
	.string	"unable to write file: %s\n"
	.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
	lea	r11, -24576[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 112
	mov	DWORD PTR -24676[rbp], edi
	mov	QWORD PTR -24688[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -24676[rbp], 1
	jg	.L4
	mov	eax, 0
	call	usage
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -24688[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	DWORD PTR -24672[rbp], 0
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -24688[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -24672[rbp], 1
	jmp	.L7
.L8:
	mov	eax, 0
	call	usage
	jmp	.L5
.L7:
	mov	DWORD PTR -24668[rbp], 2
	jmp	.L9
.L20:
	mov	eax, DWORD PTR -24668[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24688[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 432
	mov	rdi, rax
	call	chmod@PLT
	mov	eax, DWORD PTR -24668[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24688[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -24660[rbp], eax
	cmp	DWORD PTR -24660[rbp], 0
	jns	.L10
	mov	eax, DWORD PTR -24668[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24688[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L5
.L10:
	mov	eax, DWORD PTR -24660[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	mov	DWORD PTR -24664[rbp], eax
	mov	eax, DWORD PTR -24660[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	cmp	DWORD PTR -24664[rbp], 0
	jle	.L11
	mov	edi, 16400
	call	malloc@PLT
	mov	QWORD PTR -24656[rbp], rax
	mov	rax, QWORD PTR -24656[rbp]
	mov	QWORD PTR -24648[rbp], rax
	mov	rax, QWORD PTR -24648[rbp]
	mov	BYTE PTR 8[rax], 0
	jmp	.L12
.L16:
	mov	edi, 16400
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24648[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24648[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24648[rbp], rax
	mov	rax, QWORD PTR -24648[rbp]
	mov	QWORD PTR [rax], 0
	mov	eax, 8192
	cmp	DWORD PTR -24664[rbp], 8192
	cmovle	eax, DWORD PTR -24664[rbp]
	cdqe
	mov	QWORD PTR -24624[rbp], rax
	mov	rdx, QWORD PTR -24624[rbp]
	lea	rcx, -24608[rbp]
	mov	eax, DWORD PTR -24660[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -24616[rbp], rax
	mov	rax, QWORD PTR -24616[rbp]
	cmp	rax, QWORD PTR -24624[rbp]
	je	.L13
	mov	eax, DWORD PTR -24668[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24688[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L5
.L13:
	lea	rdx, -24608[rbp]
	mov	rax, QWORD PTR -24624[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	lea	rax, -24608[rbp]
	mov	rdi, rax
	call	to_unix
	cmp	DWORD PTR -24672[rbp], 0
	jne	.L14
	mov	rax, QWORD PTR -24648[rbp]
	lea	rdx, 8[rax]
	lea	rax, -24608[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	jmp	.L15
.L14:
	lea	rdx, -24608[rbp]
	lea	rax, -16400[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	unix_to_dos
	mov	rax, QWORD PTR -24648[rbp]
	lea	rdx, 8[rax]
	lea	rax, -16400[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
.L15:
	mov	eax, DWORD PTR -24664[rbp]
	mov	rdx, QWORD PTR -24624[rbp]
	sub	eax, edx
	mov	DWORD PTR -24664[rbp], eax
.L12:
	cmp	DWORD PTR -24664[rbp], 0
	jg	.L16
	mov	eax, DWORD PTR -24660[rbp]
	mov	esi, 0
	mov	edi, eax
	call	ftruncate@PLT
	mov	eax, DWORD PTR -24660[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -24656[rbp]
	add	rax, 8
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -24640[rbp], rax
	cmp	QWORD PTR -24640[rbp], 0
	jle	.L18
	mov	rdx, QWORD PTR -24640[rbp]
	mov	rax, QWORD PTR -24656[rbp]
	lea	rcx, 8[rax]
	mov	eax, DWORD PTR -24660[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -24632[rbp], rax
	mov	rax, QWORD PTR -24632[rbp]
	cmp	rax, QWORD PTR -24640[rbp]
	je	.L18
	mov	eax, DWORD PTR -24668[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24688[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L5
.L18:
	mov	rax, QWORD PTR -24656[rbp]
	mov	QWORD PTR -24648[rbp], rax
	mov	rax, QWORD PTR -24656[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24656[rbp], rax
	mov	rax, QWORD PTR -24648[rbp]
	mov	rdi, rax
	call	free@PLT
.L17:
	cmp	QWORD PTR -24656[rbp], 0
	jne	.L19
.L11:
	mov	eax, DWORD PTR -24660[rbp]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -24668[rbp], 1
.L9:
	mov	eax, DWORD PTR -24668[rbp]
	cmp	eax, DWORD PTR -24676[rbp]
	jl	.L20
	mov	eax, 0
.L5:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.type	to_unix, @function
to_unix:
.LFB8:
	.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L23
.L26:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L24
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 10
	add	QWORD PTR -16[rbp], 2
	add	QWORD PTR -8[rbp], 1
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 10
	add	QWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
	jmp	.L23
.L25:
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L23:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L26
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	to_unix, .-to_unix
	.type	unix_to_dos, @function
unix_to_dos:
.LFB9:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L28
.L30:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 13
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 10
	add	QWORD PTR -8[rbp], 2
	add	QWORD PTR -16[rbp], 1
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 1
.L28:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L30
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	unix_to_dos, .-unix_to_dos
	.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	"737436.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: line_endings unix|dos FILES\012\012Convert F"
	.ascii	"ILES to either unix or dos line endings.\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #86
	mov	r1, #1
	ldr	r0, .L3+4
	bl	fwrite
	mov	r3, #1
	mov	r0, r3
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.ascii	"unix\000"
	.align	2
.LC2:
	.ascii	"dos\000"
	.align	2
.LC3:
	.ascii	"unable to open file for read/write: %s\012\000"
	.align	2
.LC4:
	.ascii	"unable to read file: %s\012\000"
	.align	2
.LC5:
	.ascii	"unable to write file: %s\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24640
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #24576
	sub	sp, sp, #68
	sub	r3, fp, #24576
	sub	r3, r3, #12
	str	r0, [r3, #-60]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	str	r1, [r3, #-64]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #1
	bgt	.L6
	bl	usage
	mov	r3, r0
	b	.L7
.L6:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+4
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	b	.L9
.L8:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L24+8
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-52]
	b	.L9
.L10:
	bl	usage
	mov	r3, r0
	b	.L7
.L9:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-48]
	b	.L11
.L22:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #432
	mov	r0, r3
	bl	chmod
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #24576
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #2
	mov	r0, r3
	bl	open
	str	r0, [r4, #-32]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L24+12
	ldr	r0, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+16
	bl	fprintf
	mov	r3, #1
	b	.L7
.L12:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [r3, #-32]
	bl	lseek
	str	r0, [r4, #-44]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-32]
	bl	lseek
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	ble	.L13
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L24+20
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-40]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	str	r3, [r2, #-36]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	mov	r2, #0
	strb	r2, [r3, #4]
	b	.L14
.L18:
	ldr	r0, .L24+20
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	str	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	ldr	r3, [r3]
	str	r3, [r2, #-36]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #8192
	movlt	r3, r3
	movge	r3, #8192
	str	r3, [r2, #-20]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r3, #-20]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r1, fp, #24576
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-32]
	bl	read
	str	r0, [r4, #-16]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-20]
	cmp	r2, r3
	beq	.L15
	ldr	r3, .L24+12
	ldr	r0, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+24
	bl	fprintf
	mov	r3, #1
	b	.L7
.L15:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	add	r3, r2, r3
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r0, r3
	bl	to_unix
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L16
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	add	r2, r3, #4
	sub	r3, fp, #24576
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
	b	.L17
.L16:
	sub	r2, fp, #24576
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r2
	mov	r0, r3
	bl	unix_to_dos
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	add	r2, r3, #4
	sub	r3, fp, #16384
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	strcpy
.L17:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r3, [r3, #-20]
	sub	r3, r2, r3
	str	r3, [r1, #-44]
.L14:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	cmp	r3, #0
	bgt	.L18
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r1, #0
	ldr	r0, [r3, #-32]
	bl	ftruncate
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [r3, #-32]
	bl	lseek
	b	.L19
.L21:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r2, fp, #24576
	sub	r2, r2, #12
	str	r3, [r2, #-28]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	ble	.L20
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-28]
	sub	r1, fp, #24576
	sub	r1, r1, #12
	mov	r4, r1
	sub	r1, fp, #24576
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-32]
	bl	write
	str	r0, [r4, #-24]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r2, #-24]
	ldr	r3, [r3, #-28]
	cmp	r2, r3
	beq	.L20
	ldr	r3, .L24+12
	ldr	r0, [r3]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #24576
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L24+28
	bl	fprintf
	mov	r3, #1
	b	.L7
.L20:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	str	r3, [r2, #-36]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r3, [r3]
	str	r3, [r2, #-40]
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r0, [r3, #-36]
	bl	free
.L19:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	cmp	r3, #0
	bne	.L21
.L13:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r0, [r3, #-32]
	bl	close
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	str	r3, [r2, #-48]
.L11:
	sub	r3, fp, #24576
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #24576
	sub	r3, r3, #12
	ldr	r2, [r2, #-48]
	ldr	r3, [r3, #-60]
	cmp	r2, r3
	blt	.L22
	mov	r3, #0
.L7:
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC6
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	16392
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	to_unix, %function
to_unix:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L27
.L30:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L28
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L28
	ldr	r3, [fp, #-8]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L27
.L28:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L29
	ldr	r3, [fp, #-8]
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L27
.L29:
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L27:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	to_unix, .-to_unix
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	unix_to_dos, %function
unix_to_dos:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L32
.L34:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L33
	ldr	r3, [fp, #-8]
	mov	r2, #13
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mov	r2, #10
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L32
.L33:
	ldr	r3, [fp, #-12]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-8]
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	unix_to_dos, .-unix_to_dos
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
