	.file	"extr_rtc-sa1100.c_sa1100_rtc_ioctl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sa1100_rtc_ioctl, @function
sa1100_rtc_ioctl:
.LFB0:
	.cfi_startproc
	endbr64
	add	esi, -128
	cmp	esi, 7
	ja	.L2
	lea	rcx, .L4[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	movsx	rax, DWORD PTR [rcx+rsi*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L11-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rdi, sa1100_rtc_lock[rip]
	call	spin_lock_irq@PLT
	lea	rdi, sa1100_rtc_lock[rip]
	mov	eax, DWORD PTR RTSR_ALE[rip]
	or	DWORD PTR RTSR[rip], eax
	call	spin_unlock_irq@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rdi, sa1100_rtc_lock[rip]
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR RTSR_ALE[rip]
.L22:
	lea	rdi, sa1100_rtc_lock[rip]
	not	eax
	and	DWORD PTR RTSR[rip], eax
	call	spin_unlock_irq@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rdi, sa1100_rtc_lock[rip]
	call	spin_lock_irq@PLT
	lea	rdi, sa1100_rtc_lock[rip]
	mov	eax, DWORD PTR RTSR_HZE[rip]
	or	DWORD PTR RTSR[rip], eax
	call	spin_unlock_irq@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, sa1100_rtc_lock[rip]
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR RTSR_HZE[rip]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, sa1100_rtc_lock[rip]
	call	spin_lock_irq@PLT
	mov	rax, QWORD PTR timer_freq[rip]
	xor	edx, edx
	lea	rdi, sa1100_rtc_lock[rip]
	mov	DWORD PTR rtc_timer1_count[rip], 1
	div	QWORD PTR rtc_freq[rip]
	add	rax, QWORD PTR OSCR[rip]
	mov	QWORD PTR OSMR1[rip], rax
	mov	eax, DWORD PTR OIER_E1[rip]
	or	DWORD PTR OIER[rip], eax
	call	spin_unlock_irq@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, sa1100_rtc_lock[rip]
	call	spin_lock_irq@PLT
	mov	eax, DWORD PTR OIER_E1[rip]
	lea	rdi, sa1100_rtc_lock[rip]
	not	eax
	and	DWORD PTR OIER[rip], eax
	call	spin_unlock_irq@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	test	rdx, rdx
	je	.L13
	cmp	QWORD PTR timer_freq[rip], rdx
	jb	.L13
	mov	QWORD PTR rtc_freq[rip], rdx
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR rtc_freq[rip]
	mov	rsi, rdx
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	put_user@PLT
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L2:
	.cfi_def_cfa_offset 8
	mov	eax, DWORD PTR ENOIOCTLCMD[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	sa1100_rtc_ioctl, .-sa1100_rtc_ioctl
	.comm	timer_freq,8,8
	.comm	sa1100_rtc_lock,4,4
	.comm	rtc_timer1_count,4,4
	.comm	rtc_freq,8,8
	.comm	RTSR_HZE,4,4
	.comm	RTSR_ALE,4,4
	.comm	RTSR,4,4
	.comm	OSMR1,8,8
	.comm	OSCR,8,8
	.comm	OIER_E1,4,4
	.comm	OIER,4,4
	.comm	ENOIOCTLCMD,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-sa1100.c_sa1100_rtc_ioctl.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sa1100_rtc_ioctl, %function
sa1100_rtc_ioctl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r3, r1, #128
	push	{r4, lr}
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L11
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	ldr	r0, .L22
	bl	spin_lock_irq
	ldr	r2, .L22+4
	ldr	r1, .L22+8
.L19:
	ldr	r3, [r2]
	ldr	r1, [r1]
	ldr	r0, .L22
	bic	r3, r3, r1
	str	r3, [r2]
	bl	spin_unlock_irq
	mov	r0, #0
	pop	{r4, pc}
.L11:
	ldr	r0, .L22
	bl	spin_lock_irq
	ldr	r2, .L22+4
	ldr	r1, .L22+12
.L20:
	ldr	r3, [r2]
	ldr	r1, [r1]
	ldr	r0, .L22
	orr	r3, r3, r1
	str	r3, [r2]
	bl	spin_unlock_irq
	mov	r0, #0
	pop	{r4, pc}
.L10:
	ldr	r0, .L22
	bl	spin_lock_irq
	ldr	r2, .L22+4
	ldr	r1, .L22+12
	b	.L19
.L9:
	ldr	r0, .L22
	bl	spin_lock_irq
	ldr	r2, .L22+16
	ldr	r3, .L22+20
	ldr	r0, [r2]
	ldr	r1, [r3]
	bl	__aeabi_uidiv
	mov	ip, #1
	ldr	r1, .L22+24
	ldr	r2, .L22+28
	ldr	r3, .L22+32
	ldr	lr, [r1]
	ldr	r1, [r3]
	ldr	r3, [r2]
	add	r0, r0, lr
	ldr	lr, .L22+36
	orr	r3, r3, r1
	ldr	r1, .L22+40
	str	r0, [lr]
	ldr	r0, .L22
	str	r3, [r2]
	str	ip, [r1]
	bl	spin_unlock_irq
	mov	r0, #0
	pop	{r4, pc}
.L8:
	ldr	r0, .L22
	bl	spin_lock_irq
	ldr	r2, .L22+28
	ldr	r1, .L22+32
	b	.L19
.L7:
	cmp	r2, #0
	beq	.L13
	ldr	r3, .L22+16
	ldr	r3, [r3]
	cmp	r3, r2
	bcc	.L13
	ldr	r3, .L22+20
	mov	r0, #0
	str	r2, [r3]
	pop	{r4, pc}
.L6:
	ldr	r3, .L22+20
	mov	r1, r2
	pop	{r4, lr}
	ldr	r0, [r3]
	b	put_user
.L5:
	ldr	r0, .L22
	bl	spin_lock_irq
	ldr	r2, .L22+4
	ldr	r1, .L22+8
	b	.L20
.L13:
	ldr	r3, .L22+44
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L2:
	ldr	r3, .L22+48
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L23:
	.align	2
.L22:
	.word	sa1100_rtc_lock
	.word	RTSR
	.word	RTSR_ALE
	.word	RTSR_HZE
	.word	timer_freq
	.word	rtc_freq
	.word	OSCR
	.word	OIER
	.word	OIER_E1
	.word	OSMR1
	.word	rtc_timer1_count
	.word	EINVAL
	.word	ENOIOCTLCMD
	.size	sa1100_rtc_ioctl, .-sa1100_rtc_ioctl
	.comm	timer_freq,4,4
	.comm	sa1100_rtc_lock,4,4
	.comm	rtc_timer1_count,4,4
	.comm	rtc_freq,4,4
	.comm	RTSR_HZE,4,4
	.comm	RTSR_ALE,4,4
	.comm	RTSR,4,4
	.comm	OSMR1,4,4
	.comm	OSCR,4,4
	.comm	OIER_E1,4,4
	.comm	OIER,4,4
	.comm	ENOIOCTLCMD,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
