	.file	"extr_adjtimed.c_ResetClockRate.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"adjtimed: resetting the clock"
.LC1:
	.string	"resetting the clock"
.LC2:
	.string	"set clock rate: %m"
.LC3:
	.string	"adjtimed: set clock rate"
	.text
	.p2align 4
	.globl	ResetClockRate
	.type	ResetClockRate, @function
ResetClockRate:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ITIMER_REAL[rip]
	xor	edx, edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rsi, rsp
	mov	QWORD PTR [rsp], 0
	mov	QWORD PTR 8[rsp], 0
	call	setitimer@PLT
	cmp	DWORD PTR verbose[rip], 2
	jg	.L10
.L2:
	cmp	DWORD PTR sysdebug[rip], 2
	jg	.L11
.L3:
	xor	eax, eax
	call	GetClockRate@PLT
	mov	rdi, QWORD PTR default_rate[rip]
	cmp	rax, rdi
	jne	.L12
.L5:
	mov	QWORD PTR oldrate[rip], 0x000000000
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	call	SetClockRate@PLT
	cmp	eax, -1
	jne	.L5
	mov	edi, DWORD PTR LOG_ERR[rip]
	lea	rsi, .LC2[rip]
	call	msyslog@PLT
	lea	rdi, .LC3[rip]
	call	perror@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR LOG_INFO[rip]
	lea	rsi, .LC1[rip]
	call	msyslog@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L2
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ResetClockRate, .-ResetClockRate
	.comm	verbose,4,4
	.comm	sysdebug,4,4
	.comm	oldrate,8,8
	.comm	default_rate,8,8
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	ITIMER_REAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_adjtimed.c_ResetClockRate.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"adjtimed: resetting the clock\000"
	.align	2
.LC1:
	.ascii	"resetting the clock\000"
	.align	2
.LC2:
	.ascii	"set clock rate: %m\000"
	.align	2
.LC3:
	.ascii	"adjtimed: set clock rate\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ResetClockRate
	.syntax unified
	.arm
	.fpu softvfp
	.type	ResetClockRate, %function
ResetClockRate:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	str	lr, [sp, #-4]!
	ldr	r3, .L14
	sub	sp, sp, #20
	ldr	r0, [r3]
	ldr	r3, .L14+4
	add	r1, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	str	r2, [sp, #8]
	str	r2, [sp, #4]
	bl	setitimer
	ldr	r3, .L14+8
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L10
.L2:
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L11
.L3:
	bl	GetClockRate
	ldr	r3, .L14+16
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L12
.L5:
	mov	r0, #0
	mov	r1, #0
	ldr	r3, .L14+20
	stm	r3, {r0-r1}
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #20
	@ sp needed
	ldr	pc, [sp], #4
.L12:
	mov	r0, r3
	bl	SetClockRate
	cmn	r0, #1
	bne	.L5
	ldr	r3, .L14+24
	ldr	r1, .L14+28
	ldr	r0, [r3]
	bl	msyslog
	ldr	r0, .L14+32
	bl	perror
	b	.L5
.L11:
	ldr	r3, .L14+36
	ldr	r1, .L14+40
	ldr	r0, [r3]
	bl	msyslog
	b	.L3
.L10:
	ldr	r0, .L14+44
	bl	puts
	b	.L2
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	ITIMER_REAL
	.word	.LC4
	.word	verbose
	.word	sysdebug
	.word	default_rate
	.word	oldrate
	.word	LOG_ERR
	.word	.LC2
	.word	.LC3
	.word	LOG_INFO
	.word	.LC1
	.word	.LC0
	.size	ResetClockRate, .-ResetClockRate
	.comm	verbose,4,4
	.comm	sysdebug,4,4
	.comm	oldrate,8,8
	.comm	default_rate,4,4
	.comm	LOG_INFO,4,4
	.comm	LOG_ERR,4,4
	.comm	ITIMER_REAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
