	.file	"extr_ntp.c_sync_cmos_clock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sync_cmos_clock, @function
sync_cmos_clock:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR CONFIG_GENERIC_CMOS_UPDATE[rip]
	mov	ebp, DWORD PTR EPROTO[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	ebx, DWORD PTR NSEC_PER_SEC[rip]
	call	IS_ENABLED@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	mov	r12d, DWORD PTR no_cmos.1943[rip]
	test	r12d, r12d
	je	.L13
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	esi, ebx
	mov	r13, rsp
	shr	esi, 31
	mov	rdi, r13
	add	ebx, esi
	call	ktime_get_real_ts64@PLT
	sar	ebx
	lea	rsi, 4[rsp]
	mov	rdx, r13
	mov	edi, ebx
	neg	edi
	call	rtc_tv_nsec_ok@PLT
	test	rax, rax
	je	.L3
	cmp	QWORD PTR persistent_clock_is_local[rip], 0
	je	.L4
	mov	eax, DWORD PTR sys_tz[rip]
	mov	edx, eax
	sal	edx, 4
	sub	eax, edx
	sal	eax, 2
	add	DWORD PTR 4[rsp], eax
.L4:
	mov	edi, DWORD PTR 4[rsp]
	call	update_persistent_clock64@PLT
	mov	edx, eax
	add	eax, DWORD PTR ENODEV[rip]
	je	.L15
.L5:
	mov	edi, DWORD PTR [rsp]
	movsx	rsi, ebx
	mov	r12d, 1
	call	sched_sync_hw_clock@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edx, ebp
	neg	edx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	DWORD PTR no_cmos.1943[rip], 1
	jmp	.L1
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sync_cmos_clock, .-sync_cmos_clock
	.local	no_cmos.1943
	.comm	no_cmos.1943,4,4
	.comm	sys_tz,4,4
	.comm	persistent_clock_is_local,8,8
	.comm	NSEC_PER_SEC,4,4
	.comm	EPROTO,4,4
	.comm	ENODEV,4,4
	.comm	CONFIG_GENERIC_CMOS_UPDATE,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_ntp.c_sync_cmos_clock.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sync_cmos_clock, %function
sync_cmos_clock:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r1, .L18
	ldr	r2, .L18+4
	ldr	r3, .L18+8
	ldr	r0, [r1]
	ldr	r1, .L18+12
	sub	sp, sp, #20
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	ldr	r6, [r2]
	ldr	r5, [r3]
	bl	IS_ENABLED
	subs	r4, r0, #0
	beq	.L1
	ldr	r7, .L18+16
	ldr	r4, [r7]
	cmp	r4, #0
	movne	r4, #0
	beq	.L16
.L1:
	ldr	r3, .L18+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L16:
	add	r5, r5, r5, lsr #31
	asr	r5, r5, #1
	add	r0, sp, #4
	bl	ktime_get_real_ts64
	add	r2, sp, #4
	rsb	r0, r5, #0
	add	r1, sp, #8
	bl	rtc_tv_nsec_ok
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L18+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L18+24
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	sub	r3, r3, r3, lsl #4
	add	r3, r2, r3, lsl #2
	str	r3, [sp, #8]
.L4:
	ldr	r0, [sp, #8]
	bl	update_persistent_clock64
	ldr	r3, .L18+28
	mov	r2, r0
	ldr	r3, [r3]
	cmn	r0, r3
	moveq	r3, #1
	streq	r3, [r7]
	beq	.L1
	mov	r1, r5
	ldr	r0, [sp, #4]
	bl	sched_sync_hw_clock
	mov	r4, #1
	b	.L1
.L3:
	mov	r1, r5
	ldr	r0, [sp, #4]
	rsb	r2, r6, #0
	bl	sched_sync_hw_clock
	mov	r4, #1
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	CONFIG_GENERIC_CMOS_UPDATE
	.word	EPROTO
	.word	NSEC_PER_SEC
	.word	.LC0
	.word	.LANCHOR0
	.word	persistent_clock_is_local
	.word	sys_tz
	.word	ENODEV
	.size	sync_cmos_clock, .-sync_cmos_clock
	.comm	sys_tz,4,4
	.comm	persistent_clock_is_local,4,4
	.comm	NSEC_PER_SEC,4,4
	.comm	EPROTO,4,4
	.comm	ENODEV,4,4
	.comm	CONFIG_GENERIC_CMOS_UPDATE,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	no_cmos.4227, %object
	.size	no_cmos.4227, 4
no_cmos.4227:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
