	.file	"212643079.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"cp %s %s"
.LC1:
	.string	"mv %s %s"
.LC2:
	.string	"r+b"
.LC3:
	.string	"fix: Can't open %s\n"
.LC4:
	.string	"fix: Last 17 bytes not zero\n"
.LC5:
	.string	"fix: Can't fix checksum\n"
	.align 8
.LC6:
	.string	"fix: No permission to change owner or no such file\n"
	.align 8
.LC7:
	.string	"fix: No permission to change mode or no such file\n"
.LC8:
	.string	"fix: File %s fixed\n"
	.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, 704
	mov	DWORD PTR -692[rbp], edi
	mov	QWORD PTR -704[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -668[rbp], 1
	cmp	DWORD PTR -692[rbp], 2
	jg	.L2
	mov	eax, 0
	call	usage
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -664[rbp], rax
	cmp	QWORD PTR -664[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -664[rbp]
	sub	rax, rdx
	mov	rdx, rax
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	lea	rax, -208[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -664[rbp]
	sub	rax, rdx
	mov	BYTE PTR -208[rbp+rax], 0
	jmp	.L4
.L3:
	lea	rax, -208[rbp]
	mov	WORD PTR [rax], 46
.L4:
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -640[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	lea	rdx, -496[rbp]
	lea	rax, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -684[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	sum
	test	eax, eax
	je	.L5
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -680[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	sum
	test	eax, eax
	je	.L6
	mov	edi, 1
	call	exit@PLT
.L6:
	cmp	DWORD PTR -692[rbp], 4
	jne	.L7
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 24
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -320[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	system@PLT
.L7:
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	lea	rax, -320[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -320[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	system@PLT
	mov	eax, DWORD PTR -684[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -680[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -686[rbp], al
	movzx	edx, BYTE PTR -686[rbp]
	mov	eax, DWORD PTR -680[rbp]
	add	eax, edx
	and	eax, 65535
	mov	DWORD PTR -676[rbp], eax
	mov	DWORD PTR -672[rbp], 0
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -676[rbp]
	and	eax, 1
	test	eax, eax
	je	.L9
	mov	eax, DWORD PTR -676[rbp]
	shr	eax
	add	eax, 32768
	mov	DWORD PTR -676[rbp], eax
	jmp	.L10
.L9:
	shr	DWORD PTR -676[rbp]
.L10:
	add	DWORD PTR -672[rbp], 1
.L8:
	cmp	DWORD PTR -672[rbp], 7
	jle	.L11
	mov	eax, DWORD PTR -684[rbp]
	shr	eax, 8
	mov	edx, eax
	mov	eax, DWORD PTR -676[rbp]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	BYTE PTR -685[rbp], al
	movzx	edx, BYTE PTR -685[rbp]
	mov	eax, DWORD PTR -676[rbp]
	add	eax, edx
	and	eax, 65535
	mov	DWORD PTR -676[rbp], eax
	mov	DWORD PTR -672[rbp], 0
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -676[rbp]
	and	eax, 1
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -676[rbp]
	shr	eax
	add	eax, 32768
	mov	DWORD PTR -676[rbp], eax
	jmp	.L14
.L13:
	shr	DWORD PTR -676[rbp]
.L14:
	add	DWORD PTR -672[rbp], 1
.L12:
	cmp	DWORD PTR -672[rbp], 7
	jle	.L15
	mov	edx, DWORD PTR -684[rbp]
	mov	eax, DWORD PTR -676[rbp]
	sub	eax, edx
	cmp	eax, 1
	jne	.L16
	sub	BYTE PTR -686[rbp], 1
.L16:
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -656[rbp], rax
	cmp	QWORD PTR -656[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	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	edi, 1
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR -656[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -656[rbp]
	mov	rdi, rax
	call	ftell@PLT
	sub	rax, 17
	mov	QWORD PTR -648[rbp], rax
	mov	rcx, QWORD PTR -648[rbp]
	mov	rax, QWORD PTR -656[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -656[rbp]
	lea	rax, -352[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 17
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -672[rbp], 0
	jmp	.L18
.L21:
	mov	eax, DWORD PTR -672[rbp]
	cdqe
	movzx	eax, BYTE PTR -352[rbp+rax]
	test	al, al
	je	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	DWORD PTR -668[rbp], 0
	jmp	.L20
.L19:
	add	DWORD PTR -672[rbp], 1
.L18:
	cmp	DWORD PTR -672[rbp], 16
	jle	.L21
.L20:
	cmp	DWORD PTR -668[rbp], 0
	je	.L22
	movzx	eax, BYTE PTR -686[rbp]
	mov	BYTE PTR -352[rbp], al
	movzx	eax, BYTE PTR -685[rbp]
	mov	BYTE PTR -344[rbp], al
	mov	rcx, QWORD PTR -648[rbp]
	mov	rax, QWORD PTR -656[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -656[rbp]
	lea	rax, -352[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 17
	mov	rdi, rax
	call	fwrite@PLT
.L22:
	mov	rax, QWORD PTR -656[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	edx, DWORD PTR -608[rbp]
	mov	ecx, DWORD PTR -612[rbp]
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, ecx
	mov	rdi, rax
	call	chown@PLT
	test	eax, eax
	je	.L23
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	edx, DWORD PTR -616[rbp]
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
	test	eax, eax
	je	.L24
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 50
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	push	QWORD PTR -504[rbp]
	push	QWORD PTR -512[rbp]
	push	QWORD PTR -520[rbp]
	push	QWORD PTR -528[rbp]
	push	QWORD PTR -536[rbp]
	push	QWORD PTR -544[rbp]
	push	QWORD PTR -552[rbp]
	push	QWORD PTR -560[rbp]
	push	QWORD PTR -568[rbp]
	push	QWORD PTR -576[rbp]
	push	QWORD PTR -584[rbp]
	push	QWORD PTR -592[rbp]
	push	QWORD PTR -600[rbp]
	push	QWORD PTR -608[rbp]
	push	QWORD PTR -616[rbp]
	push	QWORD PTR -624[rbp]
	push	QWORD PTR -632[rbp]
	push	QWORD PTR -640[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	fixtime
	add	rsp, 144
	lea	rax, -208[rbp]
	push	QWORD PTR -360[rbp]
	push	QWORD PTR -368[rbp]
	push	QWORD PTR -376[rbp]
	push	QWORD PTR -384[rbp]
	push	QWORD PTR -392[rbp]
	push	QWORD PTR -400[rbp]
	push	QWORD PTR -408[rbp]
	push	QWORD PTR -416[rbp]
	push	QWORD PTR -424[rbp]
	push	QWORD PTR -432[rbp]
	push	QWORD PTR -440[rbp]
	push	QWORD PTR -448[rbp]
	push	QWORD PTR -456[rbp]
	push	QWORD PTR -464[rbp]
	push	QWORD PTR -472[rbp]
	push	QWORD PTR -480[rbp]
	push	QWORD PTR -488[rbp]
	push	QWORD PTR -496[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	fixtime
	add	rsp, 144
	mov	rax, QWORD PTR -704[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"r"
.LC10:
	.string	"fix: read error on %s\n"
	.text
	.globl	sum
	.type	sum, @function
sum:
.LFB7:
	.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	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L29
.L28:
	mov	DWORD PTR -28[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	jmp	.L30
.L33:
	add	QWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 1
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -28[rbp]
	shr	eax
	add	eax, 32768
	mov	DWORD PTR -28[rbp], eax
	jmp	.L32
.L31:
	shr	DWORD PTR -28[rbp]
.L32:
	mov	eax, DWORD PTR -20[rbp]
	add	DWORD PTR -28[rbp], eax
	and	DWORD PTR -28[rbp], 65535
.L30:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L34
	add	DWORD PTR -24[rbp], 1
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, 0
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sum, .-sum
	.section	.rodata
.LC11:
	.string	"fix: Can't read time of day\n"
.LC12:
	.string	"fix: Can't set time of day\n"
	.align 8
.LC13:
	.string	"fix: Can't change modify time\n"
	.text
	.globl	fixtime
	.type	fixtime, @function
fixtime:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 88[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR 104[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR 120[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -40[rbp], rax
	lea	rdx, -88[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gettimeofday@PLT
	test	eax, eax
	je	.L36
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	lea	rdx, -88[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	settimeofday@PLT
	test	eax, eax
	je	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
.L37:
	lea	rdx, -48[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	utimes@PLT
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
.L38:
	lea	rdx, -88[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	settimeofday@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fixtime, .-fixtime
	.section	.rodata
.LC14:
	.string	"Usage:\n"
	.align 8
.LC15:
	.string	"fix original replacement [backup]\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.LFB9:
	.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, 7
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	usage, .-usage
	.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	"212643079.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"cp %s %s\000"
	.align	2
.LC1:
	.ascii	"mv %s %s\000"
	.align	2
.LC2:
	.ascii	"r+b\000"
	.align	2
.LC3:
	.ascii	"fix: Can't open %s\012\000"
	.align	2
.LC4:
	.ascii	"fix: Last 17 bytes not zero\012\000"
	.align	2
.LC5:
	.ascii	"fix: Can't fix checksum\012\000"
	.align	2
.LC6:
	.ascii	"fix: No permission to change owner or no such file\012"
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"fix: No permission to change mode or no such file\012"
	.ascii	"\000"
	.align	2
.LC8:
	.ascii	"fix: File %s fixed\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #636
	str	r0, [fp, #-560]
	str	r1, [fp, #-564]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-560]
	cmp	r3, #2
	bgt	.L2
	bl	usage
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #47
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r1, [r3]
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-528]
	sub	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #216
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-528]
	sub	r3, r2, r3
	sub	r2, fp, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-204]
	b	.L4
.L3:
	sub	r3, fp, #216
	mov	r2, #46
	strh	r2, [r3]	@ movhi
.L4:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #516
	mov	r1, r2
	mov	r0, r3
	bl	stat
	sub	r2, fp, #428
	sub	r3, fp, #216
	mov	r1, r2
	mov	r0, r3
	bl	stat
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #548
	mov	r1, r2
	mov	r0, r3
	bl	sum
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-564]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #544
	mov	r1, r2
	mov	r0, r3
	bl	sum
	mov	r3, r0
	cmp	r3, #0
	beq	.L6
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-560]
	cmp	r3, #4
	bne	.L7
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r2, [r3]
	ldr	r3, [fp, #-564]
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r0, fp, #316
	ldr	r1, .L27+4
	bl	sprintf
	sub	r3, fp, #316
	mov	r0, r3
	bl	system
.L7:
	ldr	r3, [fp, #-564]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r0, fp, #316
	ldr	r1, .L27+8
	bl	sprintf
	sub	r3, fp, #316
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-548]
	and	r2, r3, #255
	ldr	r3, [fp, #-544]
	and	r3, r3, #255
	sub	r3, r2, r3
	strb	r3, [fp, #-550]
	ldrb	r2, [fp, #-550]	@ zero_extendqisi2
	ldr	r3, [fp, #-544]
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L8
.L11:
	ldr	r3, [fp, #-540]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-540]
	lsr	r3, r3, #1
	add	r3, r3, #32768
	str	r3, [fp, #-540]
	b	.L10
.L9:
	ldr	r3, [fp, #-540]
	lsr	r3, r3, #1
	str	r3, [fp, #-540]
.L10:
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L8:
	ldr	r3, [fp, #-536]
	cmp	r3, #7
	ble	.L11
	ldr	r3, [fp, #-548]
	lsr	r3, r3, #8
	and	r2, r3, #255
	ldr	r3, [fp, #-540]
	and	r3, r3, #255
	sub	r3, r2, r3
	strb	r3, [fp, #-549]
	ldrb	r2, [fp, #-549]	@ zero_extendqisi2
	ldr	r3, [fp, #-540]
	add	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-540]
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L12
.L15:
	ldr	r3, [fp, #-540]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-540]
	lsr	r3, r3, #1
	add	r3, r3, #32768
	str	r3, [fp, #-540]
	b	.L14
.L13:
	ldr	r3, [fp, #-540]
	lsr	r3, r3, #1
	str	r3, [fp, #-540]
.L14:
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L12:
	ldr	r3, [fp, #-536]
	cmp	r3, #7
	ble	.L15
	ldr	r3, [fp, #-548]
	ldr	r2, [fp, #-540]
	sub	r3, r2, r3
	cmp	r3, #1
	bne	.L16
	ldrb	r3, [fp, #-550]
	sub	r3, r3, #1
	strb	r3, [fp, #-550]
.L16:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L27+12
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L27+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L27+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-524]
	bl	fseek
	ldr	r0, [fp, #-524]
	bl	ftell
	mov	r3, r0
	sub	r3, r3, #17
	str	r3, [fp, #-520]
	mov	r2, #0
	ldr	r1, [fp, #-520]
	ldr	r0, [fp, #-524]
	bl	fseek
	sub	r0, fp, #336
	ldr	r3, [fp, #-524]
	mov	r2, #1
	mov	r1, #17
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L18
.L21:
	sub	r2, fp, #336
	ldr	r3, [fp, #-536]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L27+16
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L27+24
	bl	fwrite
	ldr	r3, .L27+16
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L27+28
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-532]
	b	.L20
.L19:
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L18:
	ldr	r3, [fp, #-536]
	cmp	r3, #16
	ble	.L21
.L20:
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	beq	.L22
	ldrb	r3, [fp, #-550]
	strb	r3, [fp, #-336]
	ldrb	r3, [fp, #-549]
	strb	r3, [fp, #-328]
	mov	r2, #0
	ldr	r1, [fp, #-520]
	ldr	r0, [fp, #-524]
	bl	fseek
	sub	r0, fp, #336
	ldr	r3, [fp, #-524]
	mov	r2, #1
	mov	r1, #17
	bl	fwrite
.L22:
	ldr	r0, [fp, #-524]
	bl	fclose
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, [fp, #-492]
	ldr	r2, [fp, #-488]
	mov	r0, r3
	bl	chown
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L27+16
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L27+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-500]
	mov	r1, r2
	mov	r0, r3
	bl	chmod
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L27+16
	ldr	r3, [r3]
	mov	r2, #50
	mov	r1, #1
	ldr	r0, .L27+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L24:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r4, [r3]
	mov	r0, sp
	sub	r3, fp, #508
	mov	r2, #80
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #516
	ldm	r3, {r2, r3}
	mov	r0, r4
	bl	fixtime
	sub	r4, fp, #216
	mov	r0, sp
	sub	r3, fp, #420
	mov	r2, #80
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #428
	ldm	r3, {r2, r3}
	mov	r0, r4
	bl	fixtime
	ldr	r3, .L27+16
	ldr	r0, [r3]
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L27+40
	bl	fprintf
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"r\000"
	.align	2
.LC11:
	.ascii	"fix: read error on %s\012\000"
	.text
	.align	2
	.global	sum
	.syntax unified
	.arm
	.fpu softvfp
	.type	sum, %function
sum:
	@ 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	r1, .L37
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L37+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L37+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L31
.L30:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L32
.L35:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #1
	add	r3, r3, #32768
	str	r3, [fp, #-24]
	b	.L34
.L33:
	ldr	r3, [fp, #-24]
	lsr	r3, r3, #1
	str	r3, [fp, #-24]
.L34:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-24]
.L32:
	ldr	r0, [fp, #-12]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L35
	ldr	r0, [fp, #-12]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L37+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L37+12
	mov	r0, r3
	bl	fprintf
.L36:
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	mov	r3, #0
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC10
	.word	stderr
	.word	.LC3
	.word	.LC11
	.size	sum, .-sum
	.section	.rodata
	.align	2
.LC12:
	.ascii	"fix: Can't read time of day\012\000"
	.align	2
.LC13:
	.ascii	"fix: Can't set time of day\012\000"
	.align	2
.LC14:
	.ascii	"fix: Can't change modify time\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	fixtime
	.syntax unified
	.arm
	.fpu softvfp
	.type	fixtime, %function
fixtime:
	@ args = 88, pretend = 8, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	sub	sp, sp, #8
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	add	r1, fp, #4
	stm	r1, {r2, r3}
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #60]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #68]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #76]
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
	sub	r2, fp, #32
	sub	r3, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L44+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L40:
	sub	r2, fp, #32
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	settimeofday
	mov	r3, r0
	cmp	r3, #0
	beq	.L41
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L44+12
	bl	fwrite
.L41:
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	utimes
	mov	r3, r0
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L44+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L44+16
	bl	fwrite
.L42:
	sub	r2, fp, #32
	sub	r3, fp, #48
	mov	r1, r2
	mov	r0, r3
	bl	settimeofday
	nop
	ldr	r2, .L44
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #8
	bx	lr
.L45:
	.align	2
.L44:
	.word	.LC15
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	fixtime, .-fixtime
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Usage:\012\000"
	.align	2
.LC17:
	.ascii	"fix original replacement [backup]\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, .L47
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L47+4
	bl	fwrite
	ldr	r3, .L47
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L47+8
	bl	fwrite
	nop
	mov	r0, r3
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	stderr
	.word	.LC16
	.word	.LC17
	.size	usage, .-usage
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
