	.file	"extr_rtc-max8907.c_max8907_rtc_read_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	max8907_rtc_read_time, @function
max8907_rtc_read_time:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	mov	r12, rsi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	call	dev_get_drvdata@PLT
	movsx	rdx, DWORD PTR TIME_NUM[rip]
	mov	rsi, rsp
	mov	r8, rdx
	lea	rdx, 15[0+rdx*4]
	mov	rcx, rdx
	and	rdx, -4096
	sub	rsi, rdx
	and	rcx, -16
	mov	rdx, rsi
	cmp	rsp, rdx
	je	.L3
.L12:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rdx
	jne	.L12
.L3:
	and	ecx, 4095
	sub	rsp, rcx
	test	rcx, rcx
	jne	.L13
.L4:
	mov	r13, rsp
	mov	esi, DWORD PTR MAX8907_REG_RTC_SEC[rip]
	mov	edi, DWORD PTR [rax]
	mov	ecx, r8d
	mov	rdx, r13
	call	regmap_bulk_read@PLT
	test	eax, eax
	js	.L1
	mov	rsi, r12
	mov	rdi, r13
	call	regs_to_tm@PLT
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR -24[rbp]
	xor	rcx, QWORD PTR fs:40
	jne	.L14
	lea	rsp, -16[rbp]
	pop	r12
	pop	r13
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rcx], 0
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	max8907_rtc_read_time, .-max8907_rtc_read_time
	.comm	TIME_NUM,4,4
	.comm	MAX8907_REG_RTC_SEC,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-max8907.c_max8907_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	max8907_rtc_read_time, %function
max8907_rtc_read_time:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r3, .L7
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	bl	dev_get_drvdata
	ldr	r3, .L7+4
	ldr	r1, .L7+8
	ldr	r3, [r3]
	ldr	r0, [r0]
	lsl	r2, r3, #2
	add	r2, r2, #7
	bic	r2, r2, #7
	sub	sp, sp, r2
	mov	r5, sp
	ldr	r1, [r1]
	mov	r2, r5
	bl	regmap_bulk_read
	cmp	r0, #0
	blt	.L1
	mov	r1, r4
	mov	r0, r5
	bl	regs_to_tm
	mov	r0, #0
.L1:
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	TIME_NUM
	.word	MAX8907_REG_RTC_SEC
	.size	max8907_rtc_read_time, .-max8907_rtc_read_time
	.comm	TIME_NUM,4,4
	.comm	MAX8907_REG_RTC_SEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
