	.file	"154827305.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Usage:\n"
	.align 8
.LC1:
	.string	" timeout -t seconds [-v verbose] command line\n"
.LC2:
	.string	"t:v"
	.align 8
.LC3:
	.string	"timeout must be at least 1 second\n"
.LC4:
	.string	"error with calloc.\n"
.LC5:
	.string	"Running: %s\n"
.LC6:
	.string	"Will kill in %d seconds.\n"
.LC7:
	.string	"exec error:%d (%m)\n"
.LC8:
	.string	"Killing %s [pid %d]\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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -52[rbp], -1
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	cmp	DWORD PTR -68[rbp], 1
	jg	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 7
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 46
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 0
	jmp	.L3
.L7:
	cmp	DWORD PTR -36[rbp], 116
	je	.L5
	cmp	DWORD PTR -36[rbp], 118
	je	.L6
	jmp	.L4
.L5:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -52[rbp], eax
	add	DWORD PTR -48[rbp], 2
	jmp	.L4
.L6:
	mov	DWORD PTR -44[rbp], 1
	add	DWORD PTR -48[rbp], 1
	nop
.L4:
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -68[rbp]
	lea	rdx, .LC2[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L7
	cmp	DWORD PTR -52[rbp], 0
	jg	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L3
.L8:
	mov	eax, DWORD PTR -68[rbp]
	sub	eax, DWORD PTR -48[rbp]
	sub	eax, 1
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	mov	esi, 8
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L3
.L9:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L10
.L12:
	mov	esi, 1
	mov	edi, 100
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L3
.L11:
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	eax, edx
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 100
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	add	DWORD PTR -40[rbp], 1
.L10:
	mov	eax, DWORD PTR -40[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jl	.L12
	cmp	DWORD PTR -44[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jle	.L14
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L15
.L14:
	call	getppid@PLT
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	sleep@PLT
	cmp	DWORD PTR -44[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
	mov	eax, 0
	jmp	.L3
.L15:
	mov	eax, 0
.L3:
	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	"154827305.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:\012\000"
	.align	2
.LC1:
	.ascii	" timeout -t seconds [-v verbose] command line\012\000"
	.align	2
.LC2:
	.ascii	"t:v\000"
	.align	2
.LC3:
	.ascii	"timeout must be at least 1 second\012\000"
	.align	2
.LC4:
	.ascii	"error with calloc.\012\000"
	.align	2
.LC5:
	.ascii	"Running: %s\012\000"
	.align	2
.LC6:
	.ascii	"Will kill in %d seconds.\012\000"
	.align	2
.LC7:
	.ascii	"exec error:%d (%m)\012\000"
	.align	2
.LC8:
	.ascii	"Killing %s [pid %d]\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	mvn	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	cmp	r3, #1
	bgt	.L4
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #7
	mov	r1, #1
	ldr	r0, .L17+4
	bl	fwrite
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #46
	mov	r1, #1
	ldr	r0, .L17+8
	bl	fwrite
	mov	r3, #0
	b	.L3
.L7:
	ldr	r3, [fp, #-32]
	cmp	r3, #116
	beq	.L5
	ldr	r3, [fp, #-32]
	cmp	r3, #118
	beq	.L6
	b	.L4
.L5:
	ldr	r3, .L17+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #2
	str	r3, [fp, #-44]
	b	.L4
.L6:
	mov	r3, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	nop
.L4:
	ldr	r2, .L17+16
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	getopt
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmn	r3, #1
	bne	.L7
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bgt	.L8
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L17+20
	bl	fwrite
	mvn	r3, #0
	b	.L3
.L8:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	sub	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L17+24
	bl	fwrite
	mvn	r3, #0
	b	.L3
.L9:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L10
.L12:
	mov	r1, #1
	mov	r0, #100
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L17
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L17+24
	bl	fwrite
	mvn	r3, #0
	b	.L3
.L11:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-44]
	add	r3, r2, r3
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #100
	mov	r1, r3
	bl	strncpy
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L10:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L12
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+28
	bl	printf
	ldr	r1, [fp, #-48]
	ldr	r0, .L17+32
	bl	printf
.L13:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L14
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	execvp
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L17+36
	mov	r0, r3
	bl	fprintf
	b	.L15
.L14:
	bl	getppid
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-48]
	mov	r0, r3
	bl	sleep
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L17+40
	bl	printf
.L16:
	mov	r1, #15
	ldr	r0, [fp, #-16]
	bl	kill
	mov	r3, #0
	b	.L3
.L15:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	optarg
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
