	.file	"3700.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage -- uncorrupt [infile]"
.LC1:
	.string	"rb"
.LC2:
	.string	"Error - Cannot Open Infile"
.LC3:
	.string	"wb"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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
	cmp	DWORD PTR -52[rbp], 1
	jle	.L2
	cmp	DWORD PTR -52[rbp], 2
	jle	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	rewind@PLT
	mov	eax, DWORD PTR -24[rbp]
	add	eax, 1
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	esi, DWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -36[rbp], 0
	mov	DWORD PTR -32[rbp], 4096
	jmp	.L6
.L10:
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 97[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	mov	edx, 107
	imul	eax, edx
	mov	BYTE PTR -38[rbp], al
	movzx	eax, BYTE PTR -38[rbp]
	shr	al, 4
	movzx	eax, al
	add	eax, 123
	mov	DWORD PTR -28[rbp], eax
	movzx	eax, BYTE PTR -38[rbp]
	shr	al
	and	eax, 7
	mov	BYTE PTR -37[rbp], al
	movzx	edx, BYTE PTR -37[rbp]
	mov	eax, DWORD PTR -36[rbp]
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -4096[rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	ja	.L8
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -32[rbp], eax
	jmp	.L8
.L9:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	and	eax, -128
	mov	BYTE PTR -37[rbp], al
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, edx
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	movzx	edx, BYTE PTR -37[rbp]
	mov	esi, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -28[rbp]
	add	eax, esi
	cdqe
	lea	rsi, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rsi
	xor	edx, ecx
	mov	BYTE PTR [rax], dl
	movzx	eax, BYTE PTR -38[rbp]
	and	eax, 1
	add	eax, 217
	add	DWORD PTR -28[rbp], eax
.L8:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L9
	mov	eax, DWORD PTR -32[rbp]
	add	DWORD PTR -36[rbp], eax
.L6:
	mov	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -24[rbp], eax
	ja	.L10
	mov	esi, DWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"3700.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage -- uncorrupt [infile]\000"
	.align	2
.LC1:
	.ascii	"rb\000"
	.align	2
.LC2:
	.ascii	"Error - Cannot Open Infile\000"
	.align	2
.LC3:
	.ascii	"wb\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	ble	.L3
.L2:
	ldr	r0, .L11
	bl	puts
	mov	r3, #1
	b	.L4
.L3:
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+4
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L11+8
	bl	puts
	mov	r3, #1
	b	.L4
.L5:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	fseek
	ldr	r0, [fp, #-20]
	bl	ftell
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	rewind
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	mov	r2, #1
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	fread
	ldr	r0, [fp, #-20]
	bl	fclose
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L11+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #4096
	str	r3, [fp, #-28]
	b	.L6
.L10:
	ldr	r3, [fp, #-32]
	add	r3, r3, #97
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	lsl	r2, r2, #1
	add	r2, r2, r3
	mov	r1, r2
	lsl	r0, r1, #3
	mov	r1, r2
	mov	r2, r0
	add	r2, r1, r2
	lsl	r2, r2, #2
	sub	r3, r2, r3
	strb	r3, [fp, #-34]
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	add	r3, r3, #123
	str	r3, [fp, #-24]
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #255
	and	r3, r3, #7
	strb	r3, [fp, #-33]
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	ldr	r2, [fp, #-32]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r2, r3, #4096
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bhi	.L8
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	b	.L8
.L9:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	bic	r3, r3, #127
	strb	r3, [fp, #-33]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [fp, #-33]
	eor	r2, r2, r1
	and	r2, r2, #255
	strb	r2, [r3]
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	and	r3, r3, #1
	add	r3, r3, #217
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
.L8:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L9
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-32]
.L6:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bhi	.L10
	ldr	r3, [fp, #-20]
	mov	r2, #1
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	fwrite
	ldr	r0, [fp, #-20]
	bl	fclose
	mov	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.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
