	.file	"extr_ntp.c_sync_rtc_clock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sync_rtc_clock, @function
sync_rtc_clock:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR CONFIG_RTC_SYSTOHC[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	IS_ENABLED@PLT
	test	eax, eax
	jne	.L11
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, 12[rsp]
	call	ktime_get_real_ts64@PLT
	cmp	QWORD PTR persistent_clock_is_local[rip], 0
	mov	edi, DWORD PTR 12[rsp]
	je	.L3
	mov	eax, DWORD PTR sys_tz[rip]
	mov	edx, eax
	sal	edx, 4
	sub	eax, edx
	lea	edi, [rdi+rax*4]
.L3:
	lea	rsi, 16[rsp]
	call	rtc_set_ntp_time@PLT
	mov	edx, eax
	add	eax, DWORD PTR ENODEV[rip]
	je	.L1
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 12[rsp]
	call	sched_sync_hw_clock@PLT
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	sync_rtc_clock, .-sync_rtc_clock
	.comm	sys_tz,4,4
	.comm	persistent_clock_is_local,8,8
	.comm	ENODEV,4,4
	.comm	CONFIG_RTC_SYSTOHC,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_rtc_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_rtc_clock, %function
sync_rtc_clock:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L16
	ldr	r2, .L16+4
	sub	sp, sp, #20
	ldr	r0, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	bl	IS_ENABLED
	cmp	r0, #0
	bne	.L14
.L1:
	ldr	r3, .L16+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #20
	@ sp needed
	ldr	pc, [sp], #4
.L14:
	add	r0, sp, #8
	bl	ktime_get_real_ts64
	ldr	r3, .L16+8
	ldr	r0, [sp, #8]
	ldr	r3, [r3]
	add	r1, sp, #4
	cmp	r3, #0
	ldrne	r3, .L16+12
	ldrne	r3, [r3]
	subne	r3, r3, r3, lsl #4
	addne	r0, r0, r3, lsl #2
	bl	rtc_set_ntp_time
	ldr	r3, .L16+16
	mov	r2, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L1
	ldr	r1, [sp, #4]
	ldr	r0, [sp, #8]
	bl	sched_sync_hw_clock
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	CONFIG_RTC_SYSTOHC
	.word	.LC0
	.word	persistent_clock_is_local
	.word	sys_tz
	.word	ENODEV
	.size	sync_rtc_clock, .-sync_rtc_clock
	.comm	sys_tz,4,4
	.comm	persistent_clock_is_local,4,4
	.comm	ENODEV,4,4
	.comm	CONFIG_RTC_SYSTOHC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
