	.file	"131618.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: %s target_directory [seconds]\n"
	.align 8
.LC1:
	.string	"String length of target_directory is HUGE!"
.LC2:
	.string	"Directory %s does not exist\n"
.LC3:
	.string	"w+"
.LC4:
	.string	"Could not open log file %s\n"
	.align 8
.LC5:
	.string	"Delay argument not specified. Defaulting to 300 seconds"
	.align 8
.LC6:
	.string	"Could not parse delay option. Defaulting to 300 seconds"
.LC7:
	.string	"Delay interval %d seconds\n"
.LC8:
	.string	"Could not fork()"
.LC9:
	.string	"Started with pid %d\n"
.LC10:
	.string	"Could not setsid()"
.LC11:
	.string	"Step"
.LC12:
	.string	"%s %lu : %s"
	.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, 592
	mov	DWORD PTR -580[rbp], edi
	mov	QWORD PTR -592[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -552[rbp], 0
	mov	DWORD PTR -568[rbp], 0
	mov	DWORD PTR -564[rbp], 0
	mov	DWORD PTR -576[rbp], 300
	mov	DWORD PTR -572[rbp], 0
	mov	QWORD PTR -544[rbp], 1
	cmp	DWORD PTR -580[rbp], 1
	jle	.L2
	cmp	DWORD PTR -580[rbp], 3
	jle	.L3
.L2:
	mov	rax, QWORD PTR -592[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 500
	jbe	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	chdir@PLT
	test	eax, eax
	jns	.L5
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 8
	mov	rdx, QWORD PTR [rax]
	lea	rax, -528[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, -528[rbp]
	add	rax, rdx
	movabs	rcx, 7795279516896026927
	mov	QWORD PTR [rax], rcx
	mov	WORD PTR 8[rax], 26479
	mov	BYTE PTR 10[rax], 0
	lea	rax, -528[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
	cmp	QWORD PTR -552[rbp], 0
	jne	.L6
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L7
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -576[rbp], 300
.L7:
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L8
	mov	rax, QWORD PTR -592[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -576[rbp], eax
	cmp	DWORD PTR -576[rbp], 0
	jg	.L8
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -576[rbp], 300
.L8:
	mov	eax, DWORD PTR -576[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	fork@PLT
	mov	DWORD PTR -568[rbp], eax
	cmp	DWORD PTR -568[rbp], 0
	jns	.L9
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	cmp	DWORD PTR -568[rbp], 0
	jle	.L10
	mov	eax, DWORD PTR -568[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L10:
	mov	edi, 0
	call	umask@PLT
	call	setsid@PLT
	mov	DWORD PTR -564[rbp], eax
	cmp	DWORD PTR -564[rbp], 0
	jns	.L11
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	edi, 0
	call	close@PLT
	mov	edi, 1
	call	close@PLT
	mov	edi, 2
	call	close@PLT
.L14:
	cmp	DWORD PTR -572[rbp], 10
	jne	.L12
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -552[rbp], rax
	cmp	QWORD PTR -552[rbp], 0
	jne	.L13
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	DWORD PTR -572[rbp], 0
	add	QWORD PTR -544[rbp], 1
.L12:
	lea	rax, -560[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -560[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	asctime@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR -544[rbp]
	mov	rax, QWORD PTR -552[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC11[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -572[rbp], 1
	mov	eax, DWORD PTR -576[rbp]
	mov	edi, eax
	call	sleep@PLT
	jmp	.L14
	.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	"131618.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s target_directory [seconds]\012\000"
	.align	2
.LC1:
	.ascii	"String length of target_directory is HUGE!\000"
	.align	2
.LC2:
	.ascii	"Directory %s does not exist\012\000"
	.align	2
.LC3:
	.ascii	"/awake.log\000"
	.align	2
.LC4:
	.ascii	"w+\000"
	.align	2
.LC5:
	.ascii	"Could not open log file %s\012\000"
	.align	2
.LC6:
	.ascii	"Delay argument not specified. Defaulting to 300 sec"
	.ascii	"onds\000"
	.align	2
.LC7:
	.ascii	"Could not parse delay option. Defaulting to 300 sec"
	.ascii	"onds\000"
	.align	2
.LC8:
	.ascii	"Delay interval %d seconds\012\000"
	.align	2
.LC9:
	.ascii	"Could not fork()\000"
	.align	2
.LC10:
	.ascii	"Started with pid %d\012\000"
	.align	2
.LC11:
	.ascii	"Could not setsid()\000"
	.align	2
.LC12:
	.ascii	"Step\000"
	.align	2
.LC13:
	.ascii	"%s %lu : %s\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 560
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #568
	str	r0, [fp, #-560]
	str	r1, [fp, #-564]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-548]
	mov	r3, #0
	str	r3, [fp, #-532]
	mov	r3, #0
	str	r3, [fp, #-528]
	mov	r3, #300
	str	r3, [fp, #-544]
	mov	r3, #0
	str	r3, [fp, #-540]
	mov	r3, #1
	str	r3, [fp, #-536]
	ldr	r3, [fp, #-560]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-560]
	cmp	r3, #3
	ble	.L3
.L2:
	ldr	r3, [fp, #-564]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+4
	bl	printf
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	cmp	r3, #500
	bls	.L4
	ldr	r0, .L16+8
	bl	puts
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	chdir
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L16+12
	bl	printf
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-564]
	add	r3, r3, #4
	ldr	r2, [r3]
	sub	r3, fp, #520
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #520
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #520
	add	r3, r3, r2
	ldr	r2, .L16+16
	mov	r0, r3
	mov	r1, r2
	mov	r3, #11
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #520
	ldr	r1, .L16+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-548]
	ldr	r3, [fp, #-548]
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L16+24
	bl	printf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-564]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L16+28
	bl	puts
	mov	r3, #300
	str	r3, [fp, #-544]
.L7:
	ldr	r3, [fp, #-564]
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-564]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-544]
	ldr	r3, [fp, #-544]
	cmp	r3, #0
	bgt	.L8
	ldr	r0, .L16+32
	bl	puts
	mov	r3, #300
	str	r3, [fp, #-544]
.L8:
	ldr	r1, [fp, #-544]
	ldr	r0, .L16+36
	bl	printf
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L16+40
	bl	puts
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	ble	.L10
	ldr	r1, [fp, #-532]
	ldr	r0, .L16+44
	bl	printf
	mov	r0, #0
	bl	exit
.L10:
	mov	r0, #0
	bl	umask
	bl	setsid
	str	r0, [fp, #-528]
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L16+48
	bl	puts
	mov	r0, #1
	bl	exit
.L11:
	mov	r0, #0
	bl	close
	mov	r0, #1
	bl	close
	mov	r0, #2
	bl	close
.L14:
	ldr	r3, [fp, #-540]
	cmp	r3, #10
	bne	.L12
	ldr	r0, [fp, #-548]
	bl	fclose
	sub	r3, fp, #520
	ldr	r1, .L16+20
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-548]
	ldr	r3, [fp, #-548]
	cmp	r3, #0
	bne	.L13
	mov	r0, #1
	bl	exit
.L13:
	mov	r3, #0
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L12:
	sub	r3, fp, #552
	mov	r0, r3
	bl	time
	sub	r3, fp, #552
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-524]
	ldr	r0, [fp, #-524]
	bl	asctime
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-536]
	ldr	r2, .L16+52
	ldr	r1, .L16+56
	ldr	r0, [fp, #-548]
	bl	fprintf
	ldr	r0, [fp, #-548]
	bl	fflush
	ldr	r3, [fp, #-540]
	add	r3, r3, #1
	str	r3, [fp, #-540]
	ldr	r3, [fp, #-544]
	mov	r0, r3
	bl	sleep
	b	.L14
.L17:
	.align	2
.L16:
	.word	.LC14
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
