	.file	"474949.c"
	.intel_syntax noprefix
	.text
	.local	file
	.comm	file,8,8
	.local	timeout
	.comm	timeout,4,4
	.local	pid
	.comm	pid,4,4
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"execv"
.LC2:
	.string	"waitpid"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -180[rbp], 3
	jle	.L2
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, timeout[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L3
.L2:
	call	usage
	jmp	.L9
.L3:
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR file[rip], rax
	call	fork@PLT
	mov	DWORD PTR pid[rip], eax
	mov	eax, DWORD PTR pid[rip]
	test	eax, eax
	jne	.L5
	mov	rax, QWORD PTR -192[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 2
	jmp	.L9
.L5:
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 1
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 2
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 3
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 4
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 5
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 6
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 7
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 8
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 10
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 12
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 13
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 14
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 15
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 16
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 18
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 20
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 21
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 22
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 23
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 24
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 25
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 26
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 27
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 28
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 29
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 30
	call	sigaction@PLT
	mov	edx, 0
	lea	rsi, act.2[rip]
	mov	edi, 31
	call	sigaction@PLT
	mov	edi, 14
	call	signal_handler
	mov	edi, 1
	call	alarm@PLT
.L7:
	mov	eax, DWORD PTR pid[rip]
	lea	rcx, -168[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	waitpid@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L7
.L6:
	cmp	DWORD PTR -164[rbp], 0
	jns	.L8
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -168[rbp]
	sar	eax, 8
	movzx	eax, al
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.string	"Usage: mtimeout <file> <timeout> <cmd> [<args> ... ]\n"
	.text
	.type	usage, @function
usage:
.LFB1:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 53
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	usage, .-usage
	.section	.rodata
	.align 8
.LC4:
	.string	"mtimeout: timed out, killing process\n"
	.text
	.type	signal_handler, @function
signal_handler:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 14
	jne	.L14
	mov	edi, 1
	call	alarm@PLT
	mov	rax, QWORD PTR file[rip]
	lea	rdx, -160[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	js	.L15
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR prev_mtime.1[rip]
	cmp	rdx, rax
	jne	.L16
.L15:
	mov	eax, DWORD PTR ticks_without_update.0[rip]
	add	eax, 1
	mov	DWORD PTR ticks_without_update.0[rip], eax
	jmp	.L17
.L16:
	mov	DWORD PTR ticks_without_update.0[rip], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR prev_mtime.1[rip], rax
.L17:
	mov	edx, DWORD PTR ticks_without_update.0[rip]
	mov	eax, DWORD PTR timeout[rip]
	cmp	edx, eax
	jl	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, DWORD PTR pid[rip]
	mov	esi, 15
	mov	edi, eax
	call	kill@PLT
	jmp	.L21
.L14:
	mov	eax, DWORD PTR pid[rip]
	mov	edx, DWORD PTR -164[rbp]
	mov	esi, edx
	mov	edi, eax
	call	kill@PLT
.L21:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	signal_handler, .-signal_handler
	.section	.data.rel.local,"aw"
	.align 32
	.type	act.2, @object
	.size	act.2, 152
act.2:
	.quad	signal_handler
	.quad	0
	.zero	120
	.long	0
	.zero	4
	.quad	0
	.local	prev_mtime.1
	.comm	prev_mtime.1,8,8
	.local	ticks_without_update.0
	.comm	ticks_without_update.0,4,4
	.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	"474949.c"
	.text
	.local	file
	.comm	file,4,4
	.local	timeout
	.comm	timeout,4,4
	.local	pid
	.comm	pid,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"execv\000"
	.align	2
.LC2:
	.ascii	"waitpid\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-112]
	cmp	r3, #3
	ble	.L2
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-116]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r2, .L11+4
	ldr	r1, .L11+8
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L3
.L2:
	bl	usage
	mov	r3, r0
	b	.L9
.L3:
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #4]
	ldr	r2, .L11+12
	str	r3, [r2]
	bl	fork
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L11+16
	str	r2, [r3]
	ldr	r3, .L11+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-116]
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r3, [fp, #-116]
	add	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	execvp
	ldr	r0, .L11+20
	bl	perror
	mov	r3, #2
	b	.L9
.L5:
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #1
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #2
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #3
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #4
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #5
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #6
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #7
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #8
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #10
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #12
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #13
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #14
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #15
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #16
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #18
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #20
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #21
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #22
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #23
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #24
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #25
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #26
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #27
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #28
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #29
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #30
	bl	sigaction
	mov	r2, #0
	ldr	r1, .L11+24
	mov	r0, #31
	bl	sigaction
	mov	r0, #14
	bl	signal_handler
	mov	r0, #1
	bl	alarm
.L7:
	ldr	r3, .L11+16
	ldr	r3, [r3]
	sub	r1, fp, #108
	mov	r2, #0
	mov	r0, r3
	bl	waitpid
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L7
.L6:
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L11+28
	bl	perror
	mov	r3, #1
	b	.L9
.L8:
	ldr	r3, [fp, #-108]
	asr	r3, r3, #8
	and	r3, r3, #255
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	timeout
	.word	.LC0
	.word	file
	.word	pid
	.word	.LC1
	.word	act.5188
	.word	.LC2
	.size	main, .-main
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage: mtimeout <file> <timeout> <cmd> [<args> ... "
	.ascii	"]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #53
	mov	r1, #1
	ldr	r0, .L15+4
	bl	fwrite
	mov	r3, #1
	mov	r0, r3
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	stderr
	.word	.LC4
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC5:
	.ascii	"mtimeout: timed out, killing process\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	str	r0, [fp, #-104]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-104]
	cmp	r3, #14
	bne	.L18
	mov	r0, #1
	bl	alarm
	ldr	r3, .L26+4
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	blt	.L19
	ldr	r2, [fp, #-36]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L20
.L19:
	ldr	r3, .L26+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L26+12
	str	r3, [r2]
	b	.L21
.L20:
	ldr	r3, .L26+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-36]
	ldr	r2, .L26+8
	str	r3, [r2]
.L21:
	ldr	r3, .L26+12
	ldr	r2, [r3]
	ldr	r3, .L26+16
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L25
	ldr	r3, .L26+20
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L26+24
	bl	fwrite
	ldr	r3, .L26+28
	ldr	r3, [r3]
	mov	r1, #15
	mov	r0, r3
	bl	kill
	b	.L25
.L18:
	ldr	r3, .L26+28
	ldr	r3, [r3]
	ldr	r1, [fp, #-104]
	mov	r0, r3
	bl	kill
.L25:
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC6
	.word	file
	.word	prev_mtime.5199
	.word	ticks_without_update.5200
	.word	timeout
	.word	stderr
	.word	.LC5
	.word	pid
	.size	signal_handler, .-signal_handler
	.data
	.align	2
	.type	act.5188, %object
	.size	act.5188, 140
act.5188:
	.word	signal_handler
	.word	0
	.space	124
	.word	0
	.word	0
	.local	prev_mtime.5199
	.comm	prev_mtime.5199,4,4
	.local	ticks_without_update.5200
	.comm	ticks_without_update.5200,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
