	.file	"89200692.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"setitimer-helper: runs a program with a virtual CPU limit\nusage: %s TIMEOUT PROGRAM [ARG...]\n  where TIMEOUT is the virtual CPU limit, in seconds,\n    and remaining arguments specify the program to run\n    and its argument.\n"
.LC4:
	.string	"%s: setitimer: %s\n"
	.align 8
.LC5:
	.string	"%s: invalid timeout value \"%s\"\n"
.LC6:
	.string	"%s: couldn't exec \"%s\": %s\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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
	cmp	DWORD PTR -68[rbp], 2
	jg	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	strtod@PLT
	movq	rax, xmm0
	mov	QWORD PTR -56[rbp], rax
	movsd	xmm0, QWORD PTR -56[rbp]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	jb	.L4
	movsd	xmm0, QWORD PTR .LC2[rip]
	comisd	xmm0, QWORD PTR -56[rbp]
	jbe	.L4
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	movsd	xmm0, QWORD PTR -56[rbp]
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	movq	xmm0, rax
	call	floor@PLT
	movsd	xmm1, QWORD PTR -56[rbp]
	subsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	mulsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -48[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	setitimer@PLT
	test	eax, eax
	jns	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L12
.L4:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -64[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L8
.L12:
	nop
.L8:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -64[rbp]
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
.L3:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1138753536
	.align 8
.LC3:
	.long	0
	.long	1093567616
	.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	"89200692.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"setitimer-helper: runs a program with a virtual CPU"
	.ascii	" limit\012usage: %s TIMEOUT PROGRAM [ARG...]\012  w"
	.ascii	"here TIMEOUT is the virtual CPU limit, in seconds,\012"
	.ascii	"    and remaining arguments specify the program to "
	.ascii	"run\012    and its argument.\012\000"
	.global	__aeabi_dcmpge
	.global	__aeabi_dcmplt
	.global	__aeabi_d2iz
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.align	2
.LC1:
	.ascii	"%s: setitimer: %s\012\000"
	.align	2
.LC2:
	.ascii	"%s: invalid timeout value \"%s\"\012\000"
	.align	2
.LC3:
	.ascii	"%s: couldn't exec \"%s\": %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	bgt	.L2
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L13+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	strtod
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpge
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	floor
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L13+20
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #32
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	setitimer
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L13+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-48]
	ldr	r1, .L13+24
	mov	r0, r4
	bl	fprintf
	b	.L12
.L4:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	ldr	r1, .L13+28
	bl	fprintf
	b	.L8
.L12:
	nop
.L8:
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	ldr	r3, .L13+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #8
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r5
	ldr	r2, [fp, #-48]
	ldr	r1, .L13+32
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
.L3:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	stderr
	.word	.LC0
	.word	-4194304
	.word	1105199103
	.word	1093567616
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
