	.file	"752997.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	out_desc, @object
	.size	out_desc, 4
out_desc:
	.long	1
	.section	.rodata
.LC0:
	.string	"CLOCK_REALTIME"
.LC1:
	.string	"CLOCK_REALTIME_COARSE"
.LC2:
	.string	"CLOCK_MONOTONIC"
.LC3:
	.string	"CLOCK_MONOTONIC_COARSE"
.LC4:
	.string	"CLOCK_MONOTONIC_RAW"
.LC5:
	.string	"CLOCK_BOOTTIME"
.LC6:
	.string	"CLOCK_PROCESS_CPUTIME_ID"
.LC7:
	.string	"CLOCK_THREAD_CPUTIME_ID"
	.section	.data.rel.local,"aw"
	.align 32
	.type	clocks, @object
	.size	clocks, 128
clocks:
	.quad	.LC0
	.long	0
	.zero	4
	.quad	.LC1
	.long	5
	.zero	4
	.quad	.LC2
	.long	1
	.zero	4
	.quad	.LC3
	.long	6
	.zero	4
	.quad	.LC4
	.long	4
	.zero	4
	.quad	.LC5
	.long	7
	.zero	4
	.quad	.LC6
	.long	2
	.zero	4
	.quad	.LC7
	.long	3
	.zero	4
	.data
	.align 8
	.type	clock_n, @object
	.size	clock_n, 8
clock_n:
	.quad	8
	.local	clockid
	.comm	clockid,4,4
	.section	.rodata
.LC8:
	.string	"[ERR] send error\n"
	.text
	.type	send_msg, @function
send_msg:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR out_desc[rip]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L3
	lea	rax, .LC8[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	send_msg, .-send_msg
	.section	.rodata
.LC9:
	.string	"clock_gettimeERR: ping\n"
.LC10:
	.string	"%lu.%09lu ping\n"
	.text
	.type	handler, @function
handler:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	DWORD PTR -292[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR clockid[rip]
	lea	rdx, -288[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	clock_gettime@PLT
	test	eax, eax
	je	.L5
	lea	rdi, .LC9[rip]
	call	send_msg
	jmp	.L8
.L5:
	mov	rdx, QWORD PTR -280[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rcx, rax
	lea	rax, -272[rbp]
	mov	r8, rdx
	lea	rdx, .LC10[rip]
	mov	esi, 255
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	send_msg
.L8:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handler, .-handler
	.section	.rodata
.LC11:
	.string	"[ERR] `%s` isn't an integer\n"
	.text
	.type	safe_atoll, @function
safe_atoll:
.LFB8:
	.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, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -40[rbp], 0
	lea	rcx, -40[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtoll@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -56[rbp]
	mov	rbx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, 19
	mov	rdi, rax
	call	strnlen@PLT
	cmp	rbx, rax
	je	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	safe_atoll, .-safe_atoll
	.section	.rodata
	.align 8
.LC12:
	.string	"Usage: %s <time ms> <repetitions> <clock> [out file]\n"
.LC13:
	.string	"supported clocks: \n"
.LC14:
	.string	"- %s\n"
	.text
	.type	print_help, @function
print_help:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	QWORD PTR -8[rbp], 0
	jmp	.L14
.L15:
	mov	rax, QWORD PTR -8[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, clocks[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	QWORD PTR -8[rbp], 1
.L14:
	mov	rax, QWORD PTR clock_n[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L15
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_help, .-print_help
	.section	.rodata
.LC15:
	.string	"supplied clock: '%s'\n"
	.align 8
.LC16:
	.string	"Couldn't open file `%s`, errno: %d\n"
	.align 8
.LC17:
	.string	"[ERR] Couldn't set signal disposition, errno: %d\n"
	.align 8
.LC18:
	.string	"[ERR] Couldn't create the timer: %d\n"
	.align 8
.LC19:
	.string	"[ERR] Couldn't set timer time: %d\n"
.LC20:
	.string	"[INFO] Sent msg"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -308[rbp], 5
	je	.L17
	cmp	DWORD PTR -308[rbp], 4
	je	.L17
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	print_help
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	safe_atoll
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	safe_atoll
	mov	QWORD PTR -264[rbp], rax
	mov	QWORD PTR -280[rbp], 0
	jmp	.L18
.L22:
	mov	rax, QWORD PTR clock_n[rip]
	cmp	QWORD PTR -280[rbp], rax
	jne	.L19
	mov	rax, QWORD PTR -320[rbp]
	mov	rdi, rax
	call	print_help
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -280[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, clocks[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L20
	mov	rax, QWORD PTR -280[rbp]
	sal	rax, 4
	mov	rdx, rax
	lea	rax, clocks[rip+8]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR clockid[rip], eax
	jmp	.L21
.L20:
	add	QWORD PTR -280[rbp], 1
.L18:
	mov	rax, QWORD PTR clock_n[rip]
	cmp	QWORD PTR -280[rbp], rax
	jbe	.L22
.L21:
	cmp	DWORD PTR -308[rbp], 5
	jne	.L23
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 32
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR out_desc[rip], eax
	mov	eax, DWORD PTR out_desc[rip]
	test	eax, eax
	jns	.L23
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -320[rbp]
	add	rax, 32
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, handler[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	call	__libc_current_sigrtmin@PLT
	mov	ecx, eax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	sigaction@PLT
	test	eax, eax
	je	.L24
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	lea	rax, -224[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -212[rbp], 0
	call	__libc_current_sigrtmin@PLT
	mov	DWORD PTR -216[rbp], eax
	lea	rax, -288[rbp]
	mov	QWORD PTR -224[rbp], rax
	mov	eax, DWORD PTR clockid[rip]
	lea	rdx, -288[rbp]
	lea	rcx, -224[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	timer_create@PLT
	cmp	eax, -1
	jne	.L25
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	lea	rax, -256[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 10000000
	mov	rcx, QWORD PTR -272[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -256[rbp], rax
	mov	rcx, QWORD PTR -272[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000
	mov	rax, rcx
	sub	rax, rdx
	imul	rax, rax, 1000000
	mov	QWORD PTR -248[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	lea	rdx, -256[rbp]
	mov	ecx, 0
	mov	esi, 0
	mov	rdi, rax
	call	timer_settime@PLT
	cmp	eax, -1
	jne	.L26
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	DWORD PTR -292[rbp], 0
	jmp	.L27
.L29:
	call	pause@PLT
	test	eax, eax
	jns	.L28
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L28
	mov	eax, DWORD PTR out_desc[rip]
	test	eax, eax
	je	.L28
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L28:
	add	DWORD PTR -292[rbp], 1
.L27:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	cmp	QWORD PTR -264[rbp], rax
	jge	.L29
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.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	"752997.c"
	.text
	.data
	.align	2
	.type	out_desc, %object
	.size	out_desc, 4
out_desc:
	.word	1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CLOCK_REALTIME\000"
	.align	2
.LC1:
	.ascii	"CLOCK_REALTIME_COARSE\000"
	.align	2
.LC2:
	.ascii	"CLOCK_MONOTONIC\000"
	.align	2
.LC3:
	.ascii	"CLOCK_MONOTONIC_COARSE\000"
	.align	2
.LC4:
	.ascii	"CLOCK_MONOTONIC_RAW\000"
	.align	2
.LC5:
	.ascii	"CLOCK_BOOTTIME\000"
	.align	2
.LC6:
	.ascii	"CLOCK_PROCESS_CPUTIME_ID\000"
	.align	2
.LC7:
	.ascii	"CLOCK_THREAD_CPUTIME_ID\000"
	.data
	.align	2
	.type	clocks, %object
	.size	clocks, 64
clocks:
	.word	.LC0
	.word	0
	.word	.LC1
	.word	5
	.word	.LC2
	.word	1
	.word	.LC3
	.word	6
	.word	.LC4
	.word	4
	.word	.LC5
	.word	7
	.word	.LC6
	.word	2
	.word	.LC7
	.word	3
	.align	2
	.type	clock_n, %object
	.size	clock_n, 4
clock_n:
	.word	8
	.local	clockid
	.comm	clockid,4,4
	.section	.rodata
	.align	2
.LC8:
	.ascii	"[ERR] send error\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_msg, %function
send_msg:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	ldr	r3, .L4
	ldr	r4, [r3]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-24]
	mov	r0, r4
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L3
	ldr	r3, .L4+4
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-16]
	mov	r0, #1
	bl	write
	mov	r0, #1
	bl	exit
.L3:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	out_desc
	.word	.LC8
	.size	send_msg, .-send_msg
	.section	.rodata
	.align	2
.LC9:
	.ascii	"clock_gettimeERR: ping\012\000"
	.align	2
.LC10:
	.ascii	"%llu.%09lu ping\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-280]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	ldr	r3, [r3]
	sub	r2, fp, #272
	mov	r1, r2
	mov	r0, r3
	bl	clock_gettime
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L11+8
	bl	send_msg
	b	.L10
.L7:
	ldr	r3, [fp, #-272]
	mov	r2, r3
	asr	r3, r2, #31
	ldr	r1, [fp, #-268]
	sub	r0, fp, #264
	str	r1, [sp, #8]
	stm	sp, {r2-r3}
	ldr	r2, .L11+12
	mov	r1, #255
	bl	snprintf
	sub	r3, fp, #264
	mov	r0, r3
	bl	send_msg
.L10:
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC11
	.word	clockid
	.word	.LC9
	.word	.LC10
	.size	handler, .-handler
	.section	.rodata
	.align	2
.LC12:
	.ascii	"[ERR] `%s` isn't an integer\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	safe_atoll, %function
safe_atoll:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	sub	r3, fp, #32
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	strtoll
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	sub	r3, r2, r3
	mov	r4, r3
	mov	r1, #19
	ldr	r0, [fp, #-40]
	bl	strnlen
	mov	r3, r0
	cmp	r4, r3
	beq	.L14
	ldr	r3, .L17+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L17+8
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L14:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	ldr	r1, .L17
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC13
	.word	stderr
	.word	.LC12
	.size	safe_atoll, .-safe_atoll
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Usage: %s <time ms> <repetitions> <clock> [out file"
	.ascii	"]\012\000"
	.align	2
.LC15:
	.ascii	"supported clocks: \012\000"
	.align	2
.LC16:
	.ascii	"- %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_help, %function
print_help:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L22
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L22+4
	bl	fprintf
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L22+8
	bl	fwrite
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L20
.L21:
	ldr	r3, .L22
	ldr	r0, [r3]
	ldr	r2, .L22+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #3]
	mov	r2, r3
	ldr	r1, .L22+16
	bl	fprintf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L20:
	ldr	r3, .L22+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcc	.L21
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stderr
	.word	.LC14
	.word	.LC15
	.word	clocks
	.word	.LC16
	.word	clock_n
	.size	print_help, .-print_help
	.section	.rodata
	.align	2
.LC17:
	.ascii	"supplied clock: '%s'\012\000"
	.align	2
.LC18:
	.ascii	"Couldn't open file `%s`, errno: %d\012\000"
	.align	2
.LC19:
	.ascii	"[ERR] Couldn't set signal disposition, errno: %d\012"
	.ascii	"\000"
	.align	2
.LC20:
	.ascii	"[ERR] Couldn't create the timer: %d\012\000"
	.global	__aeabi_ldivmod
	.align	2
.LC21:
	.ascii	"[ERR] Couldn't set timer time: %d\012\000"
	.align	2
.LC22:
	.ascii	"[INFO] Sent msg\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #264
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-272]
	cmp	r3, #5
	beq	.L25
	ldr	r3, [fp, #-272]
	cmp	r3, #4
	beq	.L25
	ldr	r0, [fp, #-276]
	bl	print_help
	mov	r0, #1
	bl	exit
.L25:
	ldr	r3, [fp, #-276]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	safe_atoll
	str	r0, [fp, #-252]
	str	r1, [fp, #-248]
	ldr	r3, [fp, #-276]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	safe_atoll
	str	r0, [fp, #-244]
	str	r1, [fp, #-240]
	mov	r3, #0
	str	r3, [fp, #-260]
	b	.L26
.L30:
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-260]
	cmp	r2, r3
	bne	.L27
	ldr	r0, [fp, #-276]
	bl	print_help
	ldr	r3, .L39+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-276]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-276]
	add	r3, r3, #12
	ldr	r2, [r3]
	ldr	r1, .L39+16
	ldr	r3, [fp, #-260]
	ldr	r3, [r1, r3, lsl #3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r2, .L39+16
	ldr	r3, [fp, #-260]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	ldr	r2, .L39+20
	str	r3, [r2]
	b	.L29
.L28:
	ldr	r3, [fp, #-260]
	add	r3, r3, #1
	str	r3, [fp, #-260]
.L26:
	ldr	r3, .L39+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-260]
	cmp	r2, r3
	bls	.L30
.L29:
	ldr	r3, [fp, #-272]
	cmp	r3, #5
	bne	.L31
	ldr	r3, [fp, #-276]
	add	r3, r3, #16
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L39+24
	str	r3, [r2]
	ldr	r3, .L39+24
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L31
	ldr	r3, .L39+8
	ldr	r4, [r3]
	ldr	r3, [fp, #-276]
	add	r3, r3, #16
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r1, .L39+28
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L31:
	sub	r3, fp, #156
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L39+32
	str	r3, [fp, #-156]
	sub	r3, fp, #156
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	bl	__libc_current_sigrtmin
	sub	r3, fp, #156
	mov	r2, #0
	mov	r1, r3
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r3, .L39+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39+36
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L32:
	sub	r3, fp, #220
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-212]
	bl	__libc_current_sigrtmin
	mov	r3, r0
	str	r3, [fp, #-216]
	sub	r3, fp, #264
	str	r3, [fp, #-220]
	ldr	r3, .L39+20
	ldr	r3, [r3]
	sub	r2, fp, #264
	sub	r1, fp, #220
	mov	r0, r3
	bl	timer_create
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	ldr	r3, .L39+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39+40
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L33:
	sub	r3, fp, #236
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-228]
	ldr	r3, .L39+44
	str	r3, [fp, #-224]
	sub	r1, fp, #252
	ldmia	r1, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	str	r3, [fp, #-236]
	sub	r1, fp, #252
	ldmia	r1, {r0-r1}
	mov	r2, #1000
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r1, r2
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	str	r3, [fp, #-232]
	ldr	r0, [fp, #-264]
	sub	r2, fp, #236
	mov	r3, #0
	mov	r1, #0
	bl	timer_settime
	mov	r3, r0
	cmn	r3, #1
	bne	.L34
	ldr	r3, .L39+8
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L39+48
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L34:
	mov	r3, #0
	str	r3, [fp, #-256]
	b	.L35
.L37:
	bl	pause
	mov	r3, r0
	cmp	r3, #0
	bge	.L36
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L36
	ldr	r3, .L39+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L36
	ldr	r0, .L39+52
	bl	puts
.L36:
	ldr	r3, [fp, #-256]
	add	r3, r3, #1
	str	r3, [fp, #-256]
.L35:
	ldr	r3, [fp, #-256]
	mov	r2, r3
	asr	r3, r2, #31
	sub	r1, fp, #244
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L37
	mov	r0, #0
	bl	exit
.L40:
	.align	2
.L39:
	.word	.LC23
	.word	clock_n
	.word	stderr
	.word	.LC17
	.word	clocks
	.word	clockid
	.word	out_desc
	.word	.LC18
	.word	handler
	.word	.LC19
	.word	.LC20
	.word	10000000
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
