	.file	"extr_cevt-ds1287.c_ds1287_set_base_clock.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ds1287_set_base_clock
	.type	ds1287_set_base_clock, @function
ds1287_set_base_clock:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	edi, 256
	je	.L4
	cmp	edi, 1024
	je	.L5
	cmp	edi, 128
	je	.L6
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, 6
.L2:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	esi, DWORD PTR RTC_REG_A[rip]
	or	edi, DWORD PTR RTC_REF_CLCK_32KHZ[rip]
	call	CMOS_WRITE@PLT
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, 9
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, 8
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ds1287_set_base_clock, .-ds1287_set_base_clock
	.comm	RTC_REG_A,4,4
	.comm	RTC_REF_CLCK_32KHZ,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_cevt-ds1287.c_ds1287_set_base_clock.c"
	.text
	.align	2
	.global	ds1287_set_base_clock
	.syntax unified
	.arm
	.fpu softvfp
	.type	ds1287_set_base_clock, %function
ds1287_set_base_clock:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #256
	beq	.L4
	cmp	r0, #1024
	beq	.L5
	cmp	r0, #128
	beq	.L6
	ldr	r3, .L11
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L5:
	mov	r3, #6
.L2:
	ldr	r1, .L11+4
	ldr	r2, .L11+8
	ldr	r0, [r1]
	push	{r4, lr}
	ldr	r1, [r2]
	orr	r0, r3, r0
	bl	CMOS_WRITE
	mov	r0, #0
	pop	{r4, pc}
.L6:
	mov	r3, #9
	b	.L2
.L4:
	mov	r3, #8
	b	.L2
.L12:
	.align	2
.L11:
	.word	EINVAL
	.word	RTC_REF_CLCK_32KHZ
	.word	RTC_REG_A
	.size	ds1287_set_base_clock, .-ds1287_set_base_clock
	.comm	RTC_REG_A,4,4
	.comm	RTC_REF_CLCK_32KHZ,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
