	.file	"extr_rtc-mrst.c_vrtc_mrst_do_probe.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"i/o mem already in use.\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"TODO: support more than 24-hr BCD mode\n"
	.align 8
.LC2:
	.string	"IRQ %d is already in use, err %d\n"
	.section	.rodata.str1.1
.LC3:
	.string	"initialised\n"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"rtc-mrst: unable to initialise\n"
	.text
	.p2align 4
	.type	vrtc_mrst_do_probe, @function
vrtc_mrst_do_probe:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	QWORD PTR mrst_rtc[rip+8], 0
	je	.L2
.L22:
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12, rsi
	test	rsi, rsi
	je	.L24
	mov	r14d, DWORD PTR driver_name[rip]
	mov	rbp, rdi
	mov	rdi, rsi
	mov	r13d, edx
	call	resource_size@PLT
	mov	esi, DWORD PTR [r12]
	mov	rdi, rbp
	mov	edx, eax
	mov	ecx, r14d
	call	devm_request_mem_region@PLT
	mov	r12, rax
	test	rax, rax
	je	.L25
	lea	rsi, mrst_rtc[rip]
	mov	rdi, rbp
	mov	DWORD PTR mrst_rtc[rip], r13d
	mov	QWORD PTR mrst_rtc[rip+8], rbp
	call	dev_set_drvdata@PLT
	mov	rdi, rbp
	call	devm_rtc_allocate_device@PLT
	mov	rdi, rax
	mov	QWORD PTR mrst_rtc[rip+16], rax
	call	IS_ERR@PLT
	mov	rdi, QWORD PTR mrst_rtc[rip+16]
	test	rax, rax
	jne	.L26
	lea	rax, mrst_rtc_ops[rip]
	mov	QWORD PTR 8[rdi], rax
	call	dev_name@PLT
	mov	rdi, r12
	mov	esi, eax
	call	rename_region@PLT
	lea	rdi, rtc_lock[rip]
	call	spin_lock_irq@PLT
	mov	esi, DWORD PTR RTC_PIE[rip]
	lea	rdi, mrst_rtc[rip]
	or	esi, DWORD PTR RTC_AIE[rip]
	call	mrst_irq_disable@PLT
	mov	edi, DWORD PTR RTC_CONTROL[rip]
	call	vrtc_cmos_read@PLT
	lea	rdi, rtc_lock[rip]
	mov	r12d, eax
	call	spin_unlock_irq@PLT
	test	BYTE PTR RTC_24H[rip], r12b
	je	.L7
	test	BYTE PTR RTC_DM_BINARY[rip], r12b
	je	.L8
.L7:
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
.L8:
	mov	r12, QWORD PTR mrst_rtc[rip+16]
	test	r13d, r13d
	je	.L9
	mov	rdi, r12
	call	dev_name@PLT
	mov	edx, DWORD PTR mrst_rtc_irq[rip]
	mov	r9, r12
	xor	ecx, ecx
	mov	r8d, eax
	mov	esi, r13d
	mov	rdi, rbp
	call	devm_request_irq@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L10
	mov	r12, QWORD PTR mrst_rtc[rip+16]
.L9:
	mov	rdi, r12
	call	rtc_register_device@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L11
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	ecx, eax
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	mov	QWORD PTR mrst_rtc[rip+8], 0
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	dev_dbg@PLT
	jmp	.L22
	.cfi_endproc
.LFE0:
	.size	vrtc_mrst_do_probe, .-vrtc_mrst_do_probe
	.comm	rtc_lock,4,4
	.comm	mrst_rtc_ops,4,4
	.comm	mrst_rtc_irq,4,4
	.comm	mrst_rtc,24,16
	.comm	driver_name,4,4
	.comm	RTC_PIE,4,4
	.comm	RTC_DM_BINARY,1,1
	.comm	RTC_CONTROL,4,4
	.comm	RTC_AIE,4,4
	.comm	RTC_24H,1,1
	.comm	ENODEV,4,4
	.comm	EBUSY,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_vrtc_mrst_do_probe.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i/o mem already in use.\012\000"
	.align	2
.LC1:
	.ascii	"TODO: support more than 24-hr BCD mode\012\000"
	.align	2
.LC2:
	.ascii	"IRQ %d is already in use, err %d\012\000"
	.align	2
.LC3:
	.ascii	"initialised\012\000"
	.align	2
.LC4:
	.ascii	"rtc-mrst: unable to initialise\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vrtc_mrst_do_probe, %function
vrtc_mrst_do_probe:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, .L27
	sub	sp, sp, #12
	ldr	r3, [r6, #4]
	cmp	r3, #0
	beq	.L2
.L22:
	ldr	r3, .L27+4
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	cmp	r1, #0
	beq	.L24
	mov	r4, r0
	mov	r0, r1
	ldr	r5, [r1]
	mov	r7, r2
	bl	resource_size
	ldr	r3, .L27+8
	mov	r2, r0
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r3]
	bl	devm_request_mem_region
	subs	r5, r0, #0
	beq	.L25
	mov	r1, r6
	mov	r0, r4
	str	r7, [r6]
	str	r4, [r6, #4]
	bl	dev_set_drvdata
	mov	r0, r4
	bl	devm_rtc_allocate_device
	str	r0, [r6, #8]
	bl	IS_ERR
	cmp	r0, #0
	ldr	r0, [r6, #8]
	bne	.L26
	ldr	r3, .L27+12
	str	r3, [r0, #4]
	bl	dev_name
	mov	r1, r0
	mov	r0, r5
	bl	rename_region
	ldr	r0, .L27+16
	bl	spin_lock_irq
	ldr	r2, .L27+20
	ldr	r3, .L27+24
	ldr	r1, [r2]
	ldr	r3, [r3]
	mov	r0, r6
	orr	r1, r1, r3
	bl	mrst_irq_disable
	ldr	r3, .L27+28
	ldr	r0, [r3]
	bl	vrtc_cmos_read
	mov	r5, r0
	ldr	r0, .L27+16
	bl	spin_unlock_irq
	ldr	r3, .L27+32
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	beq	.L7
	ldr	r3, .L27+36
	ldrb	r3, [r3]	@ zero_extendqisi2
	tst	r5, r3
	beq	.L8
.L7:
	mov	r0, r4
	ldr	r1, .L27+40
	bl	dev_dbg
.L8:
	cmp	r7, #0
	ldr	r0, [r6, #8]
	beq	.L9
	ldr	r3, .L27+44
	ldr	r5, [r3]
	bl	dev_name
	ldr	r3, [r6, #8]
	mov	r2, r5
	stm	sp, {r0, r3}
	mov	r1, r7
	mov	r3, #0
	mov	r0, r4
	bl	devm_request_irq
	subs	r5, r0, #0
	blt	.L10
	ldr	r0, [r6, #8]
.L9:
	bl	rtc_register_device
	subs	r5, r0, #0
	bne	.L11
	mov	r0, r4
	ldr	r1, .L27+48
	bl	dev_dbg
	b	.L1
.L26:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	PTR_ERR
.L24:
	ldr	r3, .L27+52
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r2, r7
	mov	r3, r5
	mov	r0, r4
	ldr	r1, .L27+56
	bl	dev_dbg
.L11:
	mov	r3, #0
	mov	r0, r4
	ldr	r1, .L27+60
	str	r3, [r6, #4]
	bl	dev_err
	b	.L1
.L25:
	mov	r0, r4
	ldr	r1, .L27+64
	bl	dev_dbg
	b	.L22
.L28:
	.align	2
.L27:
	.word	mrst_rtc
	.word	EBUSY
	.word	driver_name
	.word	mrst_rtc_ops
	.word	rtc_lock
	.word	RTC_PIE
	.word	RTC_AIE
	.word	RTC_CONTROL
	.word	RTC_24H
	.word	RTC_DM_BINARY
	.word	.LC1
	.word	mrst_rtc_irq
	.word	.LC3
	.word	ENODEV
	.word	.LC2
	.word	.LC4
	.word	.LC0
	.size	vrtc_mrst_do_probe, .-vrtc_mrst_do_probe
	.comm	rtc_lock,4,4
	.comm	mrst_rtc_ops,4,4
	.comm	mrst_rtc_irq,4,4
	.comm	mrst_rtc,12,4
	.comm	driver_name,4,4
	.comm	RTC_PIE,4,4
	.comm	RTC_DM_BINARY,1,1
	.comm	RTC_CONTROL,4,4
	.comm	RTC_AIE,4,4
	.comm	RTC_24H,1,1
	.comm	ENODEV,4,4
	.comm	EBUSY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
