	.file	"680655.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Two arguments expected"
.LC1:
	.string	"Error allocating memory"
.LC2:
	.string	"Error stat source: %s"
	.align 8
.LC3:
	.string	"Error opening path for writing"
	.align 8
.LC4:
	.string	"Error opening file %s for reading"
	.align 8
.LC5:
	.string	"Error writing to destination file"
.LC6:
	.string	"Error chmod dest file"
	.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
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 392
	.cfi_offset 3, -24
	mov	DWORD PTR -4484[rbp], edi
	mov	QWORD PTR -4496[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -4484[rbp], 3
	je	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 1
	mov	eax, 0
	call	errx@PLT
.L2:
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -4432[rbp], rax
	cmp	QWORD PTR -4432[rbp], 0
	jne	.L3
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	err@PLT
.L3:
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4432[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	BYTE PTR -4473[rbp], 0
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -4416[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L4
	mov	rax, QWORD PTR -4496[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -4440[rbp], rax
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -4392[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L6
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -4432[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -4440[rbp], rax
	cmp	QWORD PTR -4440[rbp], 0
	jne	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4472[rbp], eax
	mov	rax, QWORD PTR -4432[rbp]
	mov	rdi, rax
	call	free@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4472[rbp]
	mov	DWORD PTR [rax], edx
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	eax, 0
	call	err@PLT
.L7:
	mov	BYTE PTR -4473[rbp], 1
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -4440[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -4440[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -4440[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], 47
	mov	rdx, QWORD PTR -4432[rbp]
	mov	rax, QWORD PTR -4440[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcat@PLT
	jmp	.L5
.L6:
	mov	rax, QWORD PTR -4496[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -4440[rbp], rax
.L5:
	mov	rax, QWORD PTR -4432[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -4272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L8
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4444[rbp], eax
	cmp	BYTE PTR -4473[rbp], 0
	je	.L9
	mov	rax, QWORD PTR -4440[rbp]
	mov	rdi, rax
	call	free@PLT
.L9:
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4444[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	err@PLT
.L8:
	mov	rax, QWORD PTR -4440[rbp]
	mov	edx, 128
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4468[rbp], eax
	cmp	DWORD PTR -4468[rbp], 0
	jns	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4448[rbp], eax
	cmp	BYTE PTR -4473[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -4440[rbp]
	mov	rdi, rax
	call	free@PLT
.L11:
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4448[rbp]
	mov	DWORD PTR [rax], edx
	lea	rsi, .LC3[rip]
	mov	edi, 4
	mov	eax, 0
	call	err@PLT
.L10:
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4464[rbp], eax
	cmp	DWORD PTR -4464[rbp], 0
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4452[rbp], eax
	cmp	BYTE PTR -4473[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -4440[rbp]
	mov	rdi, rax
	call	free@PLT
.L13:
	mov	eax, DWORD PTR -4468[rbp]
	mov	edi, eax
	call	close@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4452[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -4496[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdx, rax
	lea	rsi, .LC4[rip]
	mov	edi, 6
	mov	eax, 0
	call	err@PLT
.L16:
	mov	rdx, QWORD PTR -4424[rbp]
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4468[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	cmp	QWORD PTR -4424[rbp], rax
	je	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4456[rbp], eax
	cmp	BYTE PTR -4473[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -4440[rbp]
	mov	rdi, rax
	call	free@PLT
.L15:
	mov	eax, DWORD PTR -4464[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4468[rbp]
	mov	edi, eax
	call	close@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4456[rbp]
	mov	DWORD PTR [rax], edx
	lea	rsi, .LC5[rip]
	mov	edi, 7
	mov	eax, 0
	call	err@PLT
.L14:
	lea	rcx, -4128[rbp]
	mov	eax, DWORD PTR -4464[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -4424[rbp], rax
	cmp	QWORD PTR -4424[rbp], 0
	jg	.L16
	mov	eax, DWORD PTR -4464[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4468[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edx, DWORD PTR -4248[rbp]
	mov	rax, QWORD PTR -4440[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	chmod@PLT
	test	eax, eax
	jns	.L17
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4460[rbp], eax
	cmp	BYTE PTR -4473[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -4440[rbp]
	mov	rdi, rax
	call	free@PLT
.L18:
	call	__errno_location@PLT
	mov	edx, DWORD PTR -4460[rbp]
	mov	DWORD PTR [rax], edx
	lea	rsi, .LC6[rip]
	mov	edi, 8
	mov	eax, 0
	call	err@PLT
.L17:
	cmp	BYTE PTR -4473[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -4440[rbp]
	mov	rdi, rax
	call	free@PLT
.L19:
	mov	edi, 0
	call	exit@PLT
	.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	"680655.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Two arguments expected\000"
	.align	2
.LC1:
	.ascii	"Error allocating memory\000"
	.align	2
.LC2:
	.ascii	"/\000"
	.align	2
.LC3:
	.ascii	"Error stat source: %s\000"
	.align	2
.LC4:
	.ascii	"Error opening path for writing\000"
	.align	2
.LC5:
	.ascii	"Error opening file %s for reading\000"
	.align	2
.LC6:
	.ascii	"Error writing to destination file\000"
	.align	2
.LC7:
	.ascii	"Error chmod dest file\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4336
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4288
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-236]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-240]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-236]
	cmp	r3, #3
	beq	.L2
	ldr	r1, .L21+4
	mov	r0, #1
	bl	errx
.L2:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-224]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-224]
	cmp	r3, #0
	bne	.L3
	ldr	r1, .L21+8
	mov	r0, #2
	bl	err
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-224]
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	strb	r2, [r3, #-229]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #4224
	sub	r3, r3, #12
	sub	r3, r3, #56
	mov	r1, r3
	mov	r0, r2
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	ldr	r3, [r3, #8]
	str	r3, [r2, #-228]
	b	.L5
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-168]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-224]
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-228]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-228]
	cmp	r3, #0
	bne	.L7
	bl	__errno_location
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-220]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-224]
	bl	free
	bl	__errno_location
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-220]
	str	r3, [r2]
	ldr	r1, .L21+8
	mov	r0, #2
	bl	err
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #1
	strb	r2, [r3, #-229]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-228]
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-228]
	add	r3, r3, r2
	ldr	r2, .L21+12
	mov	r0, r3
	mov	r1, r2
	mov	r3, #2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r2, #-224]
	ldr	r0, [r3, #-228]
	bl	strcat
	b	.L5
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	ldr	r3, [r3, #8]
	str	r3, [r2, #-228]
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-224]
	bl	free
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #4160
	sub	r3, r3, #12
	sub	r3, r3, #32
	mov	r1, r3
	mov	r0, r2
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L8
	bl	__errno_location
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-188]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-229]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L9
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	free
.L9:
	bl	__errno_location
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-188]
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+16
	mov	r0, #3
	bl	err
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #128
	ldr	r1, .L21+20
	ldr	r0, [r3, #-228]
	bl	open
	str	r0, [r4, #-216]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-216]
	cmp	r3, #0
	bge	.L10
	bl	__errno_location
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-192]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-229]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	free
.L11:
	bl	__errno_location
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-192]
	str	r3, [r2]
	ldr	r1, .L21+24
	mov	r0, #4
	bl	err
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-212]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-212]
	cmp	r3, #0
	bge	.L14
	bl	__errno_location
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-196]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-229]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	free
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-216]
	bl	close
	bl	__errno_location
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-196]
	str	r3, [r2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-240]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L21+28
	mov	r0, #6
	bl	err
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-208]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-216]
	bl	write
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-208]
	cmp	r3, r2
	beq	.L14
	bl	__errno_location
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-200]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-229]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L15
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	free
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-212]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-216]
	bl	close
	bl	__errno_location
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-200]
	str	r3, [r2]
	ldr	r1, .L21+32
	mov	r0, #7
	bl	err
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-212]
	bl	read
	str	r0, [r4, #-208]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-208]
	cmp	r3, #0
	bgt	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-212]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-216]
	bl	close
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-80]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-228]
	bl	chmod
	mov	r3, r0
	cmp	r3, #0
	bge	.L17
	bl	__errno_location
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r3, [r3]
	str	r3, [r2, #-204]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-229]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	free
.L18:
	bl	__errno_location
	mov	r2, r0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-204]
	str	r3, [r2]
	ldr	r1, .L21+36
	mov	r0, #8
	bl	err
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldrb	r3, [r3, #-229]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L19
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-228]
	bl	free
.L19:
	mov	r0, #0
	bl	exit
.L22:
	.align	2
.L21:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	577
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
