	.file	"extr_rtc-mrst.c_mrst_set_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mrst_set_time, @function
mrst_set_time:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR [rsi]
	lea	ebp, -72[rax]
	cmp	ebp, 100
	jbe	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	movzx	eax, BYTE PTR 10[rsi]
	xor	r12d, r12d
	mov	ebx, DWORD PTR 4[rsi]
	lea	rdi, rtc_lock[rip]
	movzx	r14d, BYTE PTR 8[rsi]
	movzx	r13d, BYTE PTR 9[rsi]
	movzx	r15d, BYTE PTR 11[rsi]
	mov	rsi, r12
	mov	BYTE PTR 15[rsp], al
	call	spin_lock_irqsave@PLT
	mov	esi, DWORD PTR RTC_YEAR[rip]
	mov	edi, ebp
	call	vrtc_cmos_write@PLT
	mov	esi, DWORD PTR RTC_MONTH[rip]
	lea	edi, 1[rbx]
	movzx	edi, dil
	call	vrtc_cmos_write@PLT
	mov	esi, DWORD PTR RTC_DAY_OF_MONTH[rip]
	movzx	edi, r14b
	call	vrtc_cmos_write@PLT
	mov	esi, DWORD PTR RTC_HOURS[rip]
	movzx	edi, r13b
	call	vrtc_cmos_write@PLT
	movzx	edi, BYTE PTR 15[rsp]
	mov	esi, DWORD PTR RTC_MINUTES[rip]
	call	vrtc_cmos_write@PLT
	mov	esi, DWORD PTR RTC_SECONDS[rip]
	movzx	edi, r15b
	call	vrtc_cmos_write@PLT
	mov	rsi, r12
	lea	rdi, rtc_lock[rip]
	call	spin_unlock_irqrestore@PLT
	mov	esi, DWORD PTR IPC_CMD_VRTC_SETTIME[rip]
	mov	edi, DWORD PTR IPCMSG_VRTC[rip]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	intel_scu_ipc_simple_command@PLT
	.cfi_endproc
.LFE0:
	.size	mrst_set_time, .-mrst_set_time
	.comm	rtc_lock,4,4
	.comm	RTC_YEAR,4,4
	.comm	RTC_SECONDS,4,4
	.comm	RTC_MONTH,4,4
	.comm	RTC_MINUTES,4,4
	.comm	RTC_HOURS,4,4
	.comm	RTC_DAY_OF_MONTH,4,4
	.comm	IPC_CMD_VRTC_SETTIME,4,4
	.comm	IPCMSG_VRTC,4,4
	.comm	EINVAL,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_rtc-mrst.c_mrst_set_time.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mrst_set_time, %function
mrst_set_time:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r4, [r1]
	sub	r4, r4, #72
	cmp	r4, #100
	bls	.L2
	ldr	r3, .L7
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	mov	r6, #0
	mov	r3, r1
	ldr	r0, .L7+4
	mov	r1, r6
	ldr	r5, [r3, #4]
	ldrb	r10, [r3, #8]	@ zero_extendqisi2
	ldrb	r9, [r3, #9]	@ zero_extendqisi2
	ldrb	r8, [r3, #10]	@ zero_extendqisi2
	ldrb	r7, [r3, #11]	@ zero_extendqisi2
	bl	spin_lock_irqsave
	ldr	r3, .L7+8
	and	r0, r4, #255
	ldr	r1, [r3]
	bl	vrtc_cmos_write
	ldr	r3, .L7+12
	add	r0, r5, #1
	ldr	r1, [r3]
	and	r0, r0, #255
	bl	vrtc_cmos_write
	ldr	r3, .L7+16
	mov	r0, r10
	ldr	r1, [r3]
	bl	vrtc_cmos_write
	ldr	r3, .L7+20
	mov	r0, r9
	ldr	r1, [r3]
	bl	vrtc_cmos_write
	ldr	r3, .L7+24
	mov	r0, r8
	ldr	r1, [r3]
	bl	vrtc_cmos_write
	ldr	r3, .L7+28
	mov	r0, r7
	ldr	r1, [r3]
	bl	vrtc_cmos_write
	mov	r1, r6
	ldr	r0, .L7+4
	bl	spin_unlock_irqrestore
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L7+32
	ldr	r3, .L7+36
	ldr	r1, [r2]
	ldr	r0, [r3]
	b	intel_scu_ipc_simple_command
.L8:
	.align	2
.L7:
	.word	EINVAL
	.word	rtc_lock
	.word	RTC_YEAR
	.word	RTC_MONTH
	.word	RTC_DAY_OF_MONTH
	.word	RTC_HOURS
	.word	RTC_MINUTES
	.word	RTC_SECONDS
	.word	IPC_CMD_VRTC_SETTIME
	.word	IPCMSG_VRTC
	.size	mrst_set_time, .-mrst_set_time
	.comm	rtc_lock,4,4
	.comm	RTC_YEAR,4,4
	.comm	RTC_SECONDS,4,4
	.comm	RTC_MONTH,4,4
	.comm	RTC_MINUTES,4,4
	.comm	RTC_HOURS,4,4
	.comm	RTC_DAY_OF_MONTH,4,4
	.comm	IPC_CMD_VRTC_SETTIME,4,4
	.comm	IPCMSG_VRTC,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
