	.file	"88453.c"
	.intel_syntax noprefix
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], 1
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	dosform
	add	DWORD PTR -4[rbp], 1
.L2:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L3
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"/tmp/%s"
.LC1:
	.string	"r"
	.align 8
.LC2:
	.string	"  unable to open original file for input"
.LC3:
	.string	"w"
	.align 8
.LC4:
	.string	"  unable to open temporary file for output"
	.align 8
.LC5:
	.string	"  unable to write to temporary file"
	.align 8
.LC6:
	.string	"  error reading from original file"
	.align 8
.LC7:
	.string	"  unable to open temporary file for input"
	.align 8
.LC8:
	.string	"  unable to open new file for output"
.LC9:
	.string	"  unable to write to new file"
	.align 8
.LC10:
	.string	"  error reading from temporary file"
	.text
	.globl	dosform
	.type	dosform, @function
dosform:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	QWORD PTR -312[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -312[rbp]
	lea	rax, -272[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L6
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	lea	rax, -272[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L8
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L8:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	jmp	.L9
.L12:
	cmp	DWORD PTR -292[rbp], 10
	jne	.L10
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, rax
	mov	edi, 13
	call	fputc@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L10:
	mov	rdx, QWORD PTR -280[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	cmp	eax, -1
	jne	.L11
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L11:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
.L9:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L13
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L13:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], 0
	jne	.L14
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L5
.L14:
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -288[rbp], rax
	cmp	QWORD PTR -288[rbp], 0
	jne	.L15
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L15:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	jmp	.L16
.L18:
	mov	rdx, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	cmp	eax, -1
	jne	.L17
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L17:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
.L16:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], -1
	jne	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L19
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
	jmp	.L5
.L19:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	dosform, .-dosform
	.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	"88453.c"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	dosform
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L3
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/%s\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"  unable to open original file for input\000"
	.align	2
.LC3:
	.ascii	"w\000"
	.align	2
.LC4:
	.ascii	"  unable to open temporary file for output\000"
	.align	2
.LC5:
	.ascii	"  unable to write to temporary file\000"
	.align	2
.LC6:
	.ascii	"  error reading from original file\000"
	.align	2
.LC7:
	.ascii	"  unable to open temporary file for input\000"
	.align	2
.LC8:
	.ascii	"  unable to open new file for output\000"
	.align	2
.LC9:
	.ascii	"  unable to write to new file\000"
	.align	2
.LC10:
	.ascii	"  error reading from temporary file\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dosform
	.syntax unified
	.arm
	.fpu softvfp
	.type	dosform, %function
dosform:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #264
	ldr	r2, [fp, #-280]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	sprintf
	ldr	r1, .L22+8
	ldr	r0, [fp, #-280]
	bl	fopen
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L6
	ldr	r0, .L22+12
	bl	puts
	b	.L5
.L6:
	sub	r3, fp, #264
	ldr	r1, .L22+16
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L22+20
	bl	puts
	ldr	r0, [fp, #-276]
	bl	fclose
	b	.L5
.L8:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	b	.L9
.L12:
	ldr	r3, [fp, #-268]
	cmp	r3, #10
	bne	.L10
	ldr	r1, [fp, #-272]
	mov	r0, #13
	bl	fputc
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L22+24
	bl	puts
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-272]
	bl	fclose
	b	.L5
.L10:
	ldr	r1, [fp, #-272]
	ldr	r0, [fp, #-268]
	bl	fputc
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L22+24
	bl	puts
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-272]
	bl	fclose
	b	.L5
.L11:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
.L9:
	ldr	r0, [fp, #-276]
	bl	fgetc
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	bne	.L12
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L22+28
	bl	puts
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-272]
	bl	fclose
	b	.L5
.L13:
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-272]
	bl	fclose
	sub	r3, fp, #264
	ldr	r1, .L22+8
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-272]
	ldr	r3, [fp, #-272]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L22+32
	bl	puts
	b	.L5
.L14:
	ldr	r1, .L22+16
	ldr	r0, [fp, #-280]
	bl	fopen
	str	r0, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L22+36
	bl	puts
	ldr	r0, [fp, #-272]
	bl	fclose
	b	.L5
.L15:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	b	.L16
.L18:
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-268]
	bl	fputc
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	ldr	r0, .L22+40
	bl	puts
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-272]
	bl	fclose
	b	.L5
.L17:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
.L16:
	ldr	r0, [fp, #-272]
	bl	fgetc
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	bne	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r0, .L22+44
	bl	puts
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-272]
	bl	fclose
	b	.L5
.L19:
	ldr	r0, [fp, #-276]
	bl	fclose
	ldr	r0, [fp, #-272]
	bl	fclose
.L5:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	dosform, .-dosform
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
