	.file	"525679.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"(%u) %s"
.LC1:
	.string	"?"
	.text
	.globl	die
	.type	die, @function
die:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rdx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, .LC0[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
	mov	edx, 1
	lea	rsi, .LC1[rip]
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	die, .-die
	.section	.rodata
.LC2:
	.string	"mail"
.LC3:
	.string	"not setgid mail"
.LC4:
	.string	"invalid arguments"
.LC5:
	.string	"invalid fd"
.LC6:
	.string	"invalid path"
.LC7:
	.string	"malloc failure"
.LC8:
	.string	"dir=%s, file=%s\n"
.LC9:
	.string	"fstat failure"
.LC10:
	.string	"fd not regular file"
.LC11:
	.string	"lstat failure"
.LC12:
	.string	"name not regular file"
.LC13:
	.string	"fd and name different"
.LC14:
	.string	"%s.lock"
	.align 8
.LC15:
	.string	"existing lock not regular file"
.LC16:
	.string	"%s.%lu.%lu."
.LC17:
	.string	"hitch fstat failure"
.LC18:
	.string	"lock fstat failure"
.LC19:
	.string	"-"
.LC20:
	.string	"+"
	.align 8
.LC21:
	.string	"lock file %s/%s changed dev/inode"
	.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
	push	rbx
	sub	rsp, 1432
	.cfi_offset 3, -24
	mov	DWORD PTR -1428[rbp], edi
	mov	QWORD PTR -1440[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1416[rbp], 299
	lea	rdi, .LC2[rip]
	call	getgrnam@PLT
	mov	QWORD PTR -1392[rbp], rax
	mov	rax, QWORD PTR -1440[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 16
	mov	esi, 1
	mov	rdi, rax
	call	openlog@PLT
	cmp	QWORD PTR -1392[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -1392[rbp]
	mov	ebx, DWORD PTR 16[rax]
	mov	eax, 0
	call	getegid@PLT
	cmp	ebx, eax
	je	.L5
.L4:
	mov	esi, 64
	lea	rdi, .LC3[rip]
	call	die
	jmp	.L38
.L5:
	cmp	DWORD PTR -1428[rbp], 3
	je	.L7
	mov	esi, 64
	lea	rdi, .LC4[rip]
	call	die
	jmp	.L38
.L7:
	mov	rax, QWORD PTR -1440[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1408[rbp], rax
	jmp	.L8
.L10:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1408[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L9
	mov	esi, 64
	lea	rdi, .LC5[rip]
	call	die
	jmp	.L38
.L9:
	add	QWORD PTR -1408[rbp], 1
.L8:
	mov	rax, QWORD PTR -1408[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L10
	mov	rax, QWORD PTR -1440[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L11
	mov	rax, QWORD PTR -1440[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	esi, 47
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -1384[rbp], rax
	cmp	QWORD PTR -1384[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -1384[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L12
.L11:
	mov	esi, 64
	lea	rdi, .LC6[rip]
	call	die
	jmp	.L38
.L12:
	mov	rax, QWORD PTR -1440[rbp]
	add	rax, 16
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -1384[rbp]
	sub	rax, rdx
	mov	QWORD PTR -1400[rbp], rax
	cmp	QWORD PTR -1400[rbp], 0
	jne	.L13
	mov	QWORD PTR -1400[rbp], 1
.L13:
	add	QWORD PTR -1384[rbp], 1
	mov	rax, QWORD PTR -1384[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -1376[rbp], rax
	mov	rax, QWORD PTR -1400[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1368[rbp], rax
	mov	rax, QWORD PTR -1376[rbp]
	add	rax, 6
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1360[rbp], rax
	mov	rax, QWORD PTR -1376[rbp]
	add	rax, 110
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1352[rbp], rax
	cmp	QWORD PTR -1368[rbp], 0
	je	.L14
	cmp	QWORD PTR -1360[rbp], 0
	je	.L14
	cmp	QWORD PTR -1352[rbp], 0
	jne	.L15
.L14:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	call	die
	jmp	.L38
.L15:
	mov	rax, QWORD PTR -1440[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -1400[rbp]
	mov	rax, QWORD PTR -1368[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rdx, QWORD PTR -1368[rbp]
	mov	rax, QWORD PTR -1400[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -1384[rbp]
	mov	rax, QWORD PTR -1368[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1368[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	chdir@PLT
	mov	rax, QWORD PTR -1440[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	edx, eax
	lea	rax, -1200[rbp]
	mov	rsi, rax
	mov	edi, edx
	call	fstat@PLT
	test	eax, eax
	je	.L16
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	call	die
	jmp	.L38
.L16:
	mov	eax, DWORD PTR -1176[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L17
	mov	esi, 64
	lea	rdi, .LC10[rip]
	call	die
	jmp	.L38
.L17:
	lea	rdx, -1344[rbp]
	mov	rax, QWORD PTR -1384[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	test	eax, eax
	je	.L18
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	call	die
	jmp	.L38
.L18:
	mov	eax, DWORD PTR -1320[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L19
	mov	esi, 64
	lea	rdi, .LC12[rip]
	call	die
	jmp	.L38
.L19:
	mov	rdx, QWORD PTR -1344[rbp]
	mov	rax, QWORD PTR -1200[rbp]
	cmp	rdx, rax
	jne	.L20
	mov	rdx, QWORD PTR -1336[rbp]
	mov	rax, QWORD PTR -1192[rbp]
	cmp	rdx, rax
	je	.L21
.L20:
	mov	esi, 64
	lea	rdi, .LC13[rip]
	call	die
	jmp	.L38
.L21:
	mov	rdx, QWORD PTR -1384[rbp]
	mov	rax, QWORD PTR -1360[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rdx, -1344[rbp]
	mov	rax, QWORD PTR -1360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	lstat@PLT
	test	eax, eax
	jne	.L35
	mov	eax, DWORD PTR -1320[rbp]
	and	eax, 61440
	cmp	eax, 32768
	je	.L35
	mov	esi, 77
	lea	rdi, .LC15[rip]
	call	die
	jmp	.L38
.L35:
	lea	rdx, -1344[rbp]
	mov	rax, QWORD PTR -1360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L23
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	cdqe
	mov	rdx, QWORD PTR -1240[rbp]
	add	rdx, 300
	cmp	rax, rdx
	jle	.L23
	mov	rax, QWORD PTR -1360[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	unlink@PLT
.L23:
	mov	eax, 0
	call	getpid@PLT
	movsx	rbx, eax
	mov	edi, 0
	mov	eax, 0
	call	time@PLT
	movsx	rcx, eax
	mov	rdx, QWORD PTR -1360[rbp]
	mov	rax, QWORD PTR -1352[rbp]
	mov	r8, rbx
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	rax, QWORD PTR -1352[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -1376[rbp], rax
	mov	rdx, QWORD PTR -1352[rbp]
	mov	rax, QWORD PTR -1376[rbp]
	add	rax, rdx
	mov	esi, 64
	mov	rdi, rax
	mov	eax, 0
	call	gethostname@PLT
	mov	rax, QWORD PTR -1352[rbp]
	mov	edx, 436
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1420[rbp], eax
	cmp	DWORD PTR -1420[rbp], 0
	js	.L24
	mov	rax, QWORD PTR -1352[rbp]
	mov	esi, 436
	mov	rdi, rax
	call	chmod@PLT
	lea	rdx, -1200[rbp]
	mov	eax, DWORD PTR -1420[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L25
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	call	die
	jmp	.L38
.L25:
	mov	eax, DWORD PTR -1420[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	mov	rdx, QWORD PTR -1360[rbp]
	mov	rax, QWORD PTR -1352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	link@PLT
	test	eax, eax
	je	.L26
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	jmp	.L27
.L26:
	mov	eax, 0
.L27:
	mov	DWORD PTR -1412[rbp], eax
	lea	rdx, -1344[rbp]
	mov	rax, QWORD PTR -1352[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L28
	mov	rax, QWORD PTR -1328[rbp]
	cmp	rax, 2
	jne	.L28
	mov	rdx, QWORD PTR -1200[rbp]
	mov	rax, QWORD PTR -1344[rbp]
	cmp	rdx, rax
	jne	.L28
	mov	rdx, QWORD PTR -1192[rbp]
	mov	rax, QWORD PTR -1336[rbp]
	cmp	rdx, rax
	je	.L29
.L28:
	mov	DWORD PTR -1420[rbp], -1
	cmp	DWORD PTR -1412[rbp], 1
	jne	.L29
	mov	rax, QWORD PTR -1360[rbp]
	mov	edx, 436
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1420[rbp], eax
	cmp	DWORD PTR -1420[rbp], 0
	js	.L30
	lea	rdx, -1200[rbp]
	mov	eax, DWORD PTR -1420[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	test	eax, eax
	je	.L31
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	call	die
	jmp	.L38
.L31:
	mov	eax, DWORD PTR -1420[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
	jmp	.L29
.L30:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L29
	mov	DWORD PTR -1416[rbp], 0
.L29:
	mov	rax, QWORD PTR -1352[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	unlink@PLT
	jmp	.L32
.L24:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 13
	jne	.L32
	mov	DWORD PTR -1416[rbp], 0
.L32:
	cmp	DWORD PTR -1420[rbp], 0
	jns	.L33
	mov	eax, DWORD PTR -1416[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -1416[rbp], edx
	test	eax, eax
	je	.L34
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	jmp	.L33
.L34:
	mov	edx, 1
	lea	rsi, .LC19[rip]
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	mov	eax, 73
	jmp	.L38
.L33:
	cmp	DWORD PTR -1420[rbp], 0
	js	.L35
	mov	edx, 1
	lea	rsi, .LC20[rip]
	mov	edi, 1
	mov	eax, 0
	call	write@PLT
	lea	rax, -1056[rbp]
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	read@PLT
	lea	rdx, -1344[rbp]
	mov	rax, QWORD PTR -1360[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L36
	mov	rdx, QWORD PTR -1200[rbp]
	mov	rax, QWORD PTR -1344[rbp]
	cmp	rdx, rax
	jne	.L36
	mov	rdx, QWORD PTR -1192[rbp]
	mov	rax, QWORD PTR -1336[rbp]
	cmp	rdx, rax
	jne	.L36
	mov	rax, QWORD PTR -1360[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	unlink@PLT
	jmp	.L37
.L36:
	mov	rdx, QWORD PTR -1360[rbp]
	mov	rax, QWORD PTR -1368[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC21[rip]
	mov	edi, 5
	mov	eax, 0
	call	syslog@PLT
.L37:
	mov	eax, 0
.L38:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"525679.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"(%u) %s\000"
	.align	2
.LC1:
	.ascii	"?\000"
	.text
	.align	2
	.global	die
	.syntax unified
	.arm
	.fpu softvfp
	.type	die, %function
die:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, .L3
	mov	r0, #5
	bl	syslog
	mov	r2, #1
	ldr	r1, .L3+4
	mov	r0, #1
	bl	write
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.word	.LC1
	.size	die, .-die
	.section	.rodata
	.align	2
.LC2:
	.ascii	"mail\000"
	.align	2
.LC3:
	.ascii	"not setgid mail\000"
	.align	2
.LC4:
	.ascii	"invalid arguments\000"
	.align	2
.LC5:
	.ascii	"invalid fd\000"
	.align	2
.LC6:
	.ascii	"invalid path\000"
	.align	2
.LC7:
	.ascii	"malloc failure\000"
	.align	2
.LC8:
	.ascii	"dir=%s, file=%s\012\000"
	.align	2
.LC9:
	.ascii	"fstat failure\000"
	.align	2
.LC10:
	.ascii	"fd not regular file\000"
	.align	2
.LC11:
	.ascii	"lstat failure\000"
	.align	2
.LC12:
	.ascii	"name not regular file\000"
	.align	2
.LC13:
	.ascii	"fd and name different\000"
	.align	2
.LC14:
	.ascii	"%s.lock\000"
	.align	2
.LC15:
	.ascii	"existing lock not regular file\000"
	.align	2
.LC16:
	.ascii	"%s.%lu.%lu.\000"
	.align	2
.LC17:
	.ascii	"hitch fstat failure\000"
	.align	2
.LC18:
	.ascii	"lock fstat failure\000"
	.align	2
.LC19:
	.ascii	"-\000"
	.align	2
.LC20:
	.ascii	"+\000"
	.align	2
.LC21:
	.ascii	"lock file %s/%s changed dev/inode\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1264
	sub	sp, sp, #12
	str	r0, [fp, #-1272]
	str	r1, [fp, #-1276]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L42+4
	str	r3, [fp, #-1260]
	ldr	r0, .L42+8
	bl	getgrnam
	str	r0, [fp, #-1248]
	ldr	r3, [fp, #-1276]
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, #1
	mov	r0, r3
	bl	openlog
	ldr	r3, [fp, #-1248]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-1248]
	ldr	r4, [r3, #8]
	bl	getegid
	mov	r3, r0
	cmp	r4, r3
	beq	.L7
.L6:
	mov	r1, #64
	ldr	r0, .L42+12
	bl	die
	mov	r3, r0
	b	.L40
.L7:
	ldr	r3, [fp, #-1272]
	cmp	r3, #3
	beq	.L9
	mov	r1, #64
	ldr	r0, .L42+16
	bl	die
	mov	r3, r0
	b	.L40
.L9:
	ldr	r3, [fp, #-1276]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-1256]
	b	.L10
.L12:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-1256]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L11
	mov	r1, #64
	ldr	r0, .L42+20
	bl	die
	mov	r3, r0
	b	.L40
.L11:
	ldr	r3, [fp, #-1256]
	add	r3, r3, #1
	str	r3, [fp, #-1256]
.L10:
	ldr	r3, [fp, #-1256]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-1276]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L13
	ldr	r3, [fp, #-1276]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r1, #47
	mov	r0, r3
	bl	strrchr
	str	r0, [fp, #-1244]
	ldr	r3, [fp, #-1244]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-1244]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
.L13:
	mov	r1, #64
	ldr	r0, .L42+24
	bl	die
	mov	r3, r0
	b	.L40
.L14:
	ldr	r3, [fp, #-1276]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1244]
	sub	r3, r2, r3
	str	r3, [fp, #-1252]
	ldr	r3, [fp, #-1252]
	cmp	r3, #0
	bne	.L15
	mov	r3, #1
	str	r3, [fp, #-1252]
.L15:
	ldr	r3, [fp, #-1244]
	add	r3, r3, #1
	str	r3, [fp, #-1244]
	ldr	r0, [fp, #-1244]
	bl	strlen
	str	r0, [fp, #-1240]
	ldr	r3, [fp, #-1252]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1236]
	ldr	r3, [fp, #-1240]
	add	r3, r3, #6
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1232]
	ldr	r3, [fp, #-1240]
	add	r3, r3, #110
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1228]
	ldr	r3, [fp, #-1236]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-1232]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-1228]
	cmp	r3, #0
	bne	.L17
.L16:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42+28
	bl	die
	mov	r3, r0
	b	.L40
.L17:
	ldr	r3, [fp, #-1276]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, [fp, #-1252]
	mov	r1, r3
	ldr	r0, [fp, #-1236]
	bl	strncpy
	ldr	r2, [fp, #-1236]
	ldr	r3, [fp, #-1252]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r2, [fp, #-1244]
	ldr	r1, [fp, #-1236]
	ldr	r0, .L42+32
	bl	printf
	ldr	r0, [fp, #-1236]
	bl	chdir
	ldr	r3, [fp, #-1276]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r2, r0
	sub	r3, fp, #1120
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42+36
	bl	die
	mov	r3, r0
	b	.L40
.L18:
	ldr	r3, [fp, #-1116]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L19
	mov	r1, #64
	ldr	r0, .L42+40
	bl	die
	mov	r3, r0
	b	.L40
.L19:
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1244]
	bl	lstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42+44
	bl	die
	mov	r3, r0
	b	.L40
.L20:
	ldr	r3, [fp, #-1204]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L21
	mov	r1, #64
	ldr	r0, .L42+48
	bl	die
	mov	r3, r0
	b	.L40
.L21:
	ldr	r0, [fp, #-1220]
	ldr	r1, [fp, #-1216]
	ldr	r2, [fp, #-1132]
	ldr	r3, [fp, #-1128]
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L22
	ldr	r2, [fp, #-1208]
	ldr	r3, [fp, #-1120]
	cmp	r2, r3
	beq	.L23
.L22:
	mov	r1, #64
	ldr	r0, .L42+52
	bl	die
	mov	r3, r0
	b	.L40
.L23:
	ldr	r2, [fp, #-1244]
	ldr	r1, .L42+56
	ldr	r0, [fp, #-1232]
	bl	sprintf
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1232]
	bl	lstat
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-1204]
	and	r3, r3, #61440
	cmp	r3, #32768
	beq	.L37
	mov	r1, #77
	ldr	r0, .L42+60
	bl	die
	mov	r3, r0
	b	.L40
.L37:
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1232]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	mov	r0, #0
	bl	time
	mov	r2, r0
	ldr	r3, [fp, #-1148]
	add	r3, r3, #300
	cmp	r2, r3
	ble	.L25
	ldr	r0, [fp, #-1232]
	bl	unlink
.L25:
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r4, r3
	bl	getpid
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r4
	ldr	r2, [fp, #-1232]
	ldr	r1, .L42+64
	ldr	r0, [fp, #-1228]
	bl	sprintf
	ldr	r0, [fp, #-1228]
	bl	strlen
	str	r0, [fp, #-1240]
	ldr	r2, [fp, #-1228]
	ldr	r3, [fp, #-1240]
	add	r3, r2, r3
	mov	r1, #64
	mov	r0, r3
	bl	gethostname
	mov	r2, #436
	mov	r1, #193
	ldr	r0, [fp, #-1228]
	bl	open
	str	r0, [fp, #-1264]
	ldr	r3, [fp, #-1264]
	cmp	r3, #0
	blt	.L26
	mov	r1, #436
	ldr	r0, [fp, #-1228]
	bl	chmod
	sub	r3, fp, #1120
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1264]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42+68
	bl	die
	mov	r3, r0
	b	.L40
.L27:
	ldr	r0, [fp, #-1264]
	bl	close
	ldr	r1, [fp, #-1232]
	ldr	r0, [fp, #-1228]
	bl	link
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	b	.L29
.L28:
	mov	r3, #0
.L29:
	str	r3, [fp, #-1224]
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1228]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-1200]
	cmp	r3, #2
	bne	.L30
	ldr	r0, [fp, #-1132]
	ldr	r1, [fp, #-1128]
	ldr	r2, [fp, #-1220]
	ldr	r3, [fp, #-1216]
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L30
	ldr	r2, [fp, #-1120]
	ldr	r3, [fp, #-1208]
	cmp	r2, r3
	beq	.L31
.L30:
	mvn	r3, #0
	str	r3, [fp, #-1264]
	ldr	r3, [fp, #-1224]
	cmp	r3, #1
	bne	.L31
	mov	r2, #436
	mov	r1, #193
	ldr	r0, [fp, #-1232]
	bl	open
	str	r0, [fp, #-1264]
	ldr	r3, [fp, #-1264]
	cmp	r3, #0
	blt	.L32
	sub	r3, fp, #1120
	sub	r3, r3, #12
	mov	r1, r3
	ldr	r0, [fp, #-1264]
	bl	fstat
	mov	r3, r0
	cmp	r3, #0
	beq	.L33
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L42+72
	bl	die
	mov	r3, r0
	b	.L40
.L33:
	ldr	r0, [fp, #-1264]
	bl	close
	b	.L31
.L32:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L31
	mov	r3, #0
	str	r3, [fp, #-1260]
.L31:
	ldr	r0, [fp, #-1228]
	bl	unlink
	b	.L34
.L26:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #13
	bne	.L34
	mov	r3, #0
	str	r3, [fp, #-1260]
.L34:
	ldr	r3, [fp, #-1264]
	cmp	r3, #0
	bge	.L35
	ldr	r3, [fp, #-1260]
	sub	r2, r3, #1
	str	r2, [fp, #-1260]
	cmp	r3, #0
	beq	.L36
	mov	r0, #1
	bl	sleep
	b	.L35
.L36:
	mov	r2, #1
	ldr	r1, .L42+76
	mov	r0, #1
	bl	write
	mov	r3, #73
	b	.L40
.L35:
	ldr	r3, [fp, #-1264]
	cmp	r3, #0
	blt	.L37
	mov	r2, #1
	ldr	r1, .L42+80
	mov	r0, #1
	bl	write
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	sub	r3, fp, #1200
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-1232]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	ldr	r0, [fp, #-1132]
	ldr	r1, [fp, #-1128]
	ldr	r2, [fp, #-1220]
	ldr	r3, [fp, #-1216]
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L38
	ldr	r2, [fp, #-1120]
	ldr	r3, [fp, #-1208]
	cmp	r2, r3
	bne	.L38
	ldr	r0, [fp, #-1232]
	bl	unlink
	b	.L39
.L38:
	ldr	r3, [fp, #-1232]
	ldr	r2, [fp, #-1236]
	ldr	r1, .L42+84
	mov	r0, #5
	bl	syslog
.L39:
	mov	r3, #0
.L40:
	ldr	r2, .L42
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC22
	.word	299
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
