	.file	"extr_rtc-ds1216.c_ds1216_rtc_read_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ds1216_rtc_read_time, @function
ds1216_rtc_read_time:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	to_platform_device@PLT
	mov	rdi, rax
	call	platform_get_drvdata@PLT
	mov	edi, DWORD PTR [rax]
	mov	rbx, rax
	call	ds1216_switch_ds_to_clock@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, rsp
	call	ds1216_read@PLT
	mov	edi, DWORD PTR [rsp]
	call	bcd2bin@PLT
	mov	edi, DWORD PTR 4[rsp]
	mov	QWORD PTR 40[rbp], rax
	call	bcd2bin@PLT
	mov	edi, DWORD PTR 8[rsp]
	mov	QWORD PTR 32[rbp], rax
	test	DWORD PTR DS1216_HOUR_1224[rip], edi
	je	.L2
	and	edi, 31
	call	bcd2bin@PLT
	mov	ecx, DWORD PTR 8[rsp]
	test	DWORD PTR DS1216_HOUR_AMPM[rip], ecx
	lea	edx, 12[rax]
	cmovne	eax, edx
	mov	DWORD PTR 0[rbp], eax
.L3:
	mov	eax, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR 16[rsp]
	and	eax, 7
	and	edi, 63
	sub	eax, 1
	mov	DWORD PTR 4[rbp], eax
	call	bcd2bin@PLT
	mov	edi, DWORD PTR 20[rsp]
	mov	QWORD PTR 24[rbp], rax
	and	edi, 31
	call	bcd2bin@PLT
	mov	edi, DWORD PTR 24[rsp]
	mov	QWORD PTR 16[rbp], rax
	call	bcd2bin@PLT
	mov	rdi, rbp
	cmp	eax, 69
	lea	edx, 100[rax]
	cmovle	eax, edx
	mov	DWORD PTR 8[rbp], eax
	call	rtc_valid_tm@PLT
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	and	edi, 63
	call	bcd2bin@PLT
	mov	DWORD PTR 0[rbp], eax
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ds1216_rtc_read_time, .-ds1216_rtc_read_time
	.comm	DS1216_HOUR_AMPM,4,4
	.comm	DS1216_HOUR_1224,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-ds1216.c_ds1216_rtc_read_time.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds1216_rtc_read_time, %function
ds1216_rtc_read_time:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L14
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r4, r1
	bl	to_platform_device
	bl	platform_get_drvdata
	mov	r5, r0
	ldr	r0, [r0]
	bl	ds1216_switch_ds_to_clock
	mov	r1, sp
	ldr	r0, [r5]
	bl	ds1216_read
	ldr	r0, [sp]
	bl	bcd2bin
	mov	r3, r0
	ldr	r0, [sp, #4]
	str	r3, [r4, #24]
	bl	bcd2bin
	ldr	r2, .L14+4
	ldr	r3, [sp, #8]
	ldr	r2, [r2]
	str	r0, [r4, #20]
	tst	r3, r2
	beq	.L2
	and	r0, r3, #31
	bl	bcd2bin
	ldr	r3, .L14+8
	ldr	r2, [sp, #8]
	ldr	r3, [r3]
	str	r0, [r4]
	tst	r2, r3
	addne	r0, r0, #12
	strne	r0, [r4]
.L3:
	ldr	r3, [sp, #12]
	ldr	r0, [sp, #16]
	and	r3, r3, #7
	sub	r3, r3, #1
	str	r3, [r4, #4]
	and	r0, r0, #63
	bl	bcd2bin
	ldr	r3, [sp, #20]
	str	r0, [r4, #16]
	and	r0, r3, #31
	bl	bcd2bin
	mov	r3, r0
	ldr	r0, [sp, #24]
	str	r3, [r4, #12]
	bl	bcd2bin
	cmp	r0, #69
	addle	r0, r0, #100
	str	r0, [r4, #8]
	mov	r0, r4
	bl	rtc_valid_tm
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	and	r0, r3, #63
	bl	bcd2bin
	str	r0, [r4]
	b	.L3
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	DS1216_HOUR_1224
	.word	DS1216_HOUR_AMPM
	.size	ds1216_rtc_read_time, .-ds1216_rtc_read_time
	.comm	DS1216_HOUR_AMPM,4,4
	.comm	DS1216_HOUR_1224,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
