	.file	"extr_if_dc.c_dc_eeprom_idle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dc_eeprom_idle, @function
dc_eeprom_idle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, 25
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR DC_SIO_EESEL[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	call	CSR_WRITE_4@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	mov	edx, DWORD PTR DC_SIO_ROMCTL_READ[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	call	DC_SETBIT@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	mov	edx, DWORD PTR DC_SIO_EE_CLK[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	call	DC_CLRBIT@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	mov	edx, DWORD PTR DC_SIO_EE_CS[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	call	DC_SETBIT@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR DC_SIO_EE_CLK[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	call	DC_CLRBIT@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	mov	edx, DWORD PTR DC_SIO_EE_CLK[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	call	DC_SETBIT@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	sub	ebx, 1
	jne	.L2
	mov	edx, DWORD PTR DC_SIO_EE_CLK[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	call	DC_CLRBIT@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	mov	edx, DWORD PTR DC_SIO_EE_CS[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	call	DC_CLRBIT@PLT
	mov	rdi, rbp
	call	dc_delay@PLT
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbp
	xor	edx, edx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	CSR_WRITE_4@PLT
	.cfi_endproc
.LFE0:
	.size	dc_eeprom_idle, .-dc_eeprom_idle
	.comm	DC_SIO_ROMCTL_READ,4,4
	.comm	DC_SIO_EE_CS,4,4
	.comm	DC_SIO_EE_CLK,4,4
	.comm	DC_SIO_EESEL,4,4
	.comm	DC_SIO,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_if_dc.c_dc_eeprom_idle.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dc_eeprom_idle, %function
dc_eeprom_idle:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r3, .L6
	ldr	r6, .L6+4
	ldr	r2, [r3]
	ldr	r1, [r6]
	bl	CSR_WRITE_4
	mov	r0, r4
	bl	dc_delay
	ldr	r3, .L6+8
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r4
	ldr	r7, .L6+12
	bl	DC_SETBIT
	mov	r0, r4
	bl	dc_delay
	ldr	r8, .L6+16
	ldr	r1, [r6]
	ldr	r2, [r7]
	mov	r0, r4
	bl	DC_CLRBIT
	mov	r0, r4
	bl	dc_delay
	ldr	r1, [r6]
	ldr	r2, [r8]
	mov	r0, r4
	bl	DC_SETBIT
	mov	r0, r4
	bl	dc_delay
	mov	r5, #25
.L2:
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r0, r4
	bl	DC_CLRBIT
	mov	r0, r4
	bl	dc_delay
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r0, r4
	bl	DC_SETBIT
	mov	r0, r4
	bl	dc_delay
	subs	r5, r5, #1
	bne	.L2
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r0, r4
	bl	DC_CLRBIT
	mov	r0, r4
	bl	dc_delay
	ldr	r2, [r8]
	ldr	r1, [r6]
	mov	r0, r4
	bl	DC_CLRBIT
	mov	r0, r4
	bl	dc_delay
	mov	r2, r5
	mov	r0, r4
	ldr	r1, [r6]
	pop	{r4, r5, r6, r7, r8, lr}
	b	CSR_WRITE_4
.L7:
	.align	2
.L6:
	.word	DC_SIO_EESEL
	.word	DC_SIO
	.word	DC_SIO_ROMCTL_READ
	.word	DC_SIO_EE_CLK
	.word	DC_SIO_EE_CS
	.size	dc_eeprom_idle, .-dc_eeprom_idle
	.comm	DC_SIO_ROMCTL_READ,4,4
	.comm	DC_SIO_EE_CS,4,4
	.comm	DC_SIO_EE_CLK,4,4
	.comm	DC_SIO_EESEL,4,4
	.comm	DC_SIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
