	.file	"extr_if_dc.c_dc_eeprom_putbyte.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dc_eeprom_putbyte, @function
dc_eeprom_putbyte:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, 2
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR DC_EECMD_READ[rip]
	sar	r13d, 6
.L4:
	bt	r13d, ebp
	mov	edx, DWORD PTR DC_SIO_EE_DATAIN[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbx
	jnc	.L2
	call	DC_SETBIT@PLT
.L3:
	mov	rdi, rbx
	sub	ebp, 1
	call	dc_delay@PLT
	mov	edx, DWORD PTR DC_SIO_EE_CLK[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbx
	call	DC_SETBIT@PLT
	mov	rdi, rbx
	call	dc_delay@PLT
	mov	edx, DWORD PTR DC_SIO_EE_CLK[rip]
	mov	esi, DWORD PTR DC_SIO[rip]
	mov	rdi, rbx
	call	DC_CLRBIT@PLT
	mov	rdi, rbx
	call	dc_delay@PLT
	cmp	ebp, -1
	jne	.L4
	mov	eax, DWORD PTR [rbx]
	lea	ebp, -1[rax]
	test	eax, eax
	jne	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	call	SIO_SET@PLT
.L7:
	mov	rdi, rbx
	sub	ebp, 1
	call	dc_delay@PLT
	mov	edi, DWORD PTR DC_SIO_EE_CLK[rip]
	call	SIO_SET@PLT
	mov	rdi, rbx
	call	dc_delay@PLT
	mov	edi, DWORD PTR DC_SIO_EE_CLK[rip]
	call	SIO_CLR@PLT
	mov	rdi, rbx
	call	dc_delay@PLT
	cmp	ebp, -1
	je	.L1
.L5:
	bt	r12d, ebp
	mov	edi, DWORD PTR DC_SIO_EE_DATAIN[rip]
	jc	.L14
	call	SIO_CLR@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	call	DC_CLRBIT@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dc_eeprom_putbyte, .-dc_eeprom_putbyte
	.comm	DC_SIO_EE_DATAIN,4,4
	.comm	DC_SIO_EE_CLK,4,4
	.comm	DC_SIO,4,4
	.comm	DC_EECMD_READ,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_putbyte.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dc_eeprom_putbyte, %function
dc_eeprom_putbyte:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r0
	mov	r8, r1
	mov	r5, #2
	ldr	r3, .L15
	ldr	r9, .L15+4
	ldr	r10, [r3]
	ldr	r7, .L15+8
	ldr	r6, .L15+12
	asr	r10, r10, #6
.L4:
	asr	r3, r10, r5
	tst	r3, #1
	mov	r0, r4
	ldr	r1, [r9]
	ldr	r2, [r7]
	beq	.L2
	bl	DC_SETBIT
.L3:
	mov	r0, r4
	bl	dc_delay
	ldr	r2, [r6]
	ldr	r1, [r9]
	mov	r0, r4
	bl	DC_SETBIT
	mov	r0, r4
	bl	dc_delay
	ldr	r2, [r6]
	ldr	r1, [r9]
	mov	r0, r4
	bl	DC_CLRBIT
	sub	r5, r5, #1
	mov	r0, r4
	bl	dc_delay
	cmn	r5, #1
	bne	.L4
	ldr	r5, [r4]
	cmp	r5, #0
	sub	r5, r5, #1
	bne	.L5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	bl	SIO_SET
.L7:
	mov	r0, r4
	bl	dc_delay
	ldr	r0, [r6]
	bl	SIO_SET
	mov	r0, r4
	bl	dc_delay
	ldr	r0, [r6]
	bl	SIO_CLR
	sub	r5, r5, #1
	mov	r0, r4
	bl	dc_delay
	cmn	r5, #1
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	asr	r3, r8, r5
	tst	r3, #1
	ldr	r0, [r7]
	bne	.L14
	bl	SIO_CLR
	b	.L7
.L2:
	bl	DC_CLRBIT
	b	.L3
.L16:
	.align	2
.L15:
	.word	DC_EECMD_READ
	.word	DC_SIO
	.word	DC_SIO_EE_DATAIN
	.word	DC_SIO_EE_CLK
	.size	dc_eeprom_putbyte, .-dc_eeprom_putbyte
	.comm	DC_SIO_EE_DATAIN,4,4
	.comm	DC_SIO_EE_CLK,4,4
	.comm	DC_SIO,4,4
	.comm	DC_EECMD_READ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
