	.file	"extr_rtc-r9701.c_r9701_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"cannot read RTC register\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"trying to repair invalid date/time\n"
	.section	.rodata.str1.1
.LC2:
	.string	"cannot repair RTC register\n"
.LC3:
	.string	"r9701"
	.text
	.p2align 4
	.type	r9701_probe, @function
r9701_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	edx, 1
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 64
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	movzx	eax, BYTE PTR R100CNT[rip]
	lea	rsi, 15[rsp]
	mov	BYTE PTR 15[rsp], al
	call	read_regs@PLT
	test	eax, eax
	jne	.L2
	cmp	BYTE PTR 15[rsp], 32
	je	.L3
.L2:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	lea	r13, 16[rsp]
	mov	rdi, rbp
	mov	r12d, eax
	mov	rsi, r13
	call	r9701_get_datetime@PLT
	test	rax, rax
	je	.L5
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	dev_info@PLT
	mov	rsi, r13
	mov	rdi, rbp
	movabs	rax, 429496729601
	mov	QWORD PTR 16[rsp], rax
	mov	QWORD PTR 24[rsp], 0
	mov	QWORD PTR 32[rsp], 0
	mov	QWORD PTR 40[rsp], 0
	mov	QWORD PTR 48[rsp], 0
	call	r9701_set_datetime@PLT
	test	rax, rax
	jne	.L7
	mov	rsi, r13
	mov	rdi, rbp
	call	r9701_get_datetime@PLT
	test	rax, rax
	jne	.L7
.L5:
	mov	ecx, DWORD PTR THIS_MODULE[rip]
	mov	rdi, rbp
	lea	rdx, r9701_rtc_ops[rip]
	lea	rsi, .LC3[rip]
	call	devm_rtc_device_register@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L16
	mov	rsi, r13
	mov	rdi, rbp
	call	spi_set_drvdata@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	dev_err@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	r9701_probe, .-r9701_probe
	.comm	r9701_rtc_ops,4,4
	.comm	THIS_MODULE,4,4
	.comm	R100CNT,1,1
	.comm	ENODEV,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-r9701.c_r9701_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"cannot read RTC register\012\000"
	.align	2
.LC1:
	.ascii	"trying to repair invalid date/time\012\000"
	.align	2
.LC2:
	.ascii	"cannot repair RTC register\012\000"
	.align	2
.LC3:
	.ascii	"r9701\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	r9701_probe, %function
r9701_probe:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L17
	sub	sp, sp, #32
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	ip, .L17+4
	mov	r2, #1
	add	r1, sp, #3
	ldr	ip, [ip]
	str	ip, [sp, #28]
	mov	ip,#0
	mov	r4, r0
	strb	r3, [sp, #3]
	bl	read_regs
	subs	r5, r0, #0
	bne	.L2
	ldrb	r3, [sp, #3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L3
.L2:
	mov	r0, r4
	ldr	r1, .L17+8
	bl	dev_err
	ldr	r3, .L17+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r5
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	add	r1, sp, #4
	bl	r9701_get_datetime
	cmp	r0, #0
	beq	.L5
	ldr	r1, .L17+16
	mov	r0, r4
	bl	dev_info
	mov	r2, #1
	mov	r3, #100
	mov	r0, r4
	add	r1, sp, #4
	stmib	sp, {r2, r3}
	str	r5, [sp, #24]
	str	r5, [sp, #20]
	str	r5, [sp, #16]
	str	r5, [sp, #12]
	bl	r9701_set_datetime
	cmp	r0, #0
	bne	.L7
	mov	r0, r4
	add	r1, sp, #4
	bl	r9701_get_datetime
	cmp	r0, #0
	bne	.L7
.L5:
	ldr	r3, .L17+20
	ldr	r2, .L17+24
	ldr	r3, [r3]
	ldr	r1, .L17+28
	mov	r0, r4
	bl	devm_rtc_device_register
	mov	r6, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L16
	mov	r1, r6
	mov	r0, r4
	bl	spi_set_drvdata
	b	.L1
.L7:
	mov	r0, r4
	ldr	r1, .L17+32
	bl	dev_err
	ldr	r3, .L17+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L16:
	mov	r0, r6
	bl	PTR_ERR
	mov	r5, r0
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	R100CNT
	.word	.LC4
	.word	.LC0
	.word	ENODEV
	.word	.LC1
	.word	THIS_MODULE
	.word	r9701_rtc_ops
	.word	.LC3
	.word	.LC2
	.size	r9701_probe, .-r9701_probe
	.comm	r9701_rtc_ops,4,4
	.comm	THIS_MODULE,4,4
	.comm	R100CNT,1,1
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
