	.file	"30447.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"ntp_adjtime() failed : %s "
	.text
	.type	try_ntpadjtime, @function
try_ntpadjtime:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ntp_adjtime@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	try_ntpadjtime, .-try_ntpadjtime
	.type	reset_ntpadjtime, @function
reset_ntpadjtime:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -224[rbp], 3
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	try_ntpadjtime
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	reset_ntpadjtime, .-reset_ntpadjtime
	.section	.rodata
.LC1:
	.string	"freq range:"
.LC2:
	.string	"%4d ppm => "
.LC3:
	.string	"%4ld ppm : "
.LC4:
	.string	"ok"
.LC5:
	.string	"fail"
	.text
	.type	test_freqrange, @function
test_freqrange:
.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, 240
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -228[rbp], 0
	jmp	.L7
.L12:
	mov	DWORD PTR -224[rbp], 2
	mov	eax, DWORD PTR -228[rbp]
	sal	eax, 16
	cdqe
	mov	QWORD PTR -208[rbp], rax
	mov	eax, DWORD PTR -228[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	try_ntpadjtime
	test	eax, eax
	js	.L14
	mov	rax, QWORD PTR -208[rbp]
	lea	rdx, 65535[rax]
	test	rax, rax
	cmovs	rax, rdx
	sar	rax, 16
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR -228[rbp]
	sal	eax, 16
	cdqe
	cmp	rdx, rax
	jne	.L10
	lea	rax, .LC4[rip]
	jmp	.L11
.L10:
	lea	rax, .LC5[rip]
.L11:
	mov	rdi, rax
	call	puts@PLT
	jmp	.L9
.L14:
	nop
.L9:
	add	DWORD PTR -228[rbp], 50
.L7:
	cmp	DWORD PTR -228[rbp], 1000
	jle	.L12
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	test_freqrange, .-test_freqrange
	.globl	main
	.type	main, @function
main:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	test_freqrange
	call	reset_ntpadjtime
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.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	"30447.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ntp_adjtime() failed : %s \000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	try_ntpadjtime, %function
try_ntpadjtime:
	@ 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	r0, [fp, #-16]
	bl	ntp_adjtime
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L4
	bl	printf
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	try_ntpadjtime, .-try_ntpadjtime
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reset_ntpadjtime, %function
reset_ntpadjtime:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #3
	str	r3, [fp, #-136]
	mov	r3, #0
	str	r3, [fp, #-132]
	mov	r3, #0
	str	r3, [fp, #-128]
	sub	r3, fp, #136
	mov	r0, r3
	bl	try_ntpadjtime
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.size	reset_ntpadjtime, .-reset_ntpadjtime
	.section	.rodata
	.align	2
.LC2:
	.ascii	"freq range:\000"
	.align	2
.LC3:
	.ascii	"%4d ppm => \000"
	.align	2
.LC4:
	.ascii	"%4ld ppm : \000"
	.align	2
.LC5:
	.ascii	"ok\000"
	.align	2
.LC6:
	.ascii	"fail\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_freqrange, %function
test_freqrange:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L19+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-140]
	b	.L11
.L16:
	mov	r3, #2
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #16
	str	r3, [fp, #-128]
	ldr	r1, [fp, #-140]
	ldr	r0, .L19+8
	bl	printf
	sub	r3, fp, #136
	mov	r0, r3
	bl	try_ntpadjtime
	mov	r3, r0
	cmp	r3, #0
	blt	.L18
	ldr	r3, [fp, #-128]
	add	r2, r3, #65280
	add	r2, r2, #255
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L19+12
	bl	printf
	ldr	r2, [fp, #-128]
	ldr	r3, [fp, #-140]
	lsl	r3, r3, #16
	cmp	r2, r3
	bne	.L14
	ldr	r3, .L19+16
	b	.L15
.L14:
	ldr	r3, .L19+20
.L15:
	mov	r0, r3
	bl	puts
	b	.L13
.L18:
	nop
.L13:
	ldr	r3, [fp, #-140]
	add	r3, r3, #50
	str	r3, [fp, #-140]
.L11:
	ldr	r3, [fp, #-140]
	cmp	r3, #1000
	ble	.L16
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	test_freqrange, .-test_freqrange
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	test_freqrange
	bl	reset_ntpadjtime
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
