	.file	"extr_r8180_93cx6.c_eprom_w.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	eprom_w
	.type	eprom_w, @function
eprom_w:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r8d, esi
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR EPROM_CMD[rip]
	test	r8w, r8w
	je	.L2
	mov	ecx, DWORD PTR EPROM_W_SHIFT[rip]
	mov	ebx, 1
	sal	ebx, cl
	call	read_nic_byte@PLT
	mov	esi, DWORD PTR EPROM_CMD[rip]
	mov	rdi, rbp
	or	ebx, eax
	mov	edx, ebx
	call	write_nic_byte@PLT
.L3:
	mov	rdi, rbp
	call	force_pci_posting@PLT
	mov	edi, DWORD PTR EPROM_DELAY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	udelay@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	read_nic_byte@PLT
	mov	edx, DWORD PTR EPROM_W_SHIFT[rip]
	mov	esi, DWORD PTR EPROM_CMD[rip]
	mov	rdi, rbp
	btr	eax, edx
	mov	edx, eax
	call	write_nic_byte@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	eprom_w, .-eprom_w
	.comm	EPROM_W_SHIFT,4,4
	.comm	EPROM_DELAY,4,4
	.comm	EPROM_CMD,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_r8180_93cx6.c_eprom_w.c"
	.text
	.align	2
	.global	eprom_w
	.syntax unified
	.arm
	.fpu softvfp
	.type	eprom_w, %function
eprom_w:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, [r3]
	beq	.L2
	mov	r6, #1
	ldr	r3, .L6+4
	mov	r1, r5
	ldr	r2, [r3]
	lsl	r6, r6, r2
	bl	read_nic_byte
	mov	r1, r5
	orr	r2, r6, r0
	mov	r0, r4
	bl	write_nic_byte
.L3:
	mov	r0, r4
	bl	force_pci_posting
	pop	{r4, r5, r6, lr}
	ldr	r3, .L6+8
	ldr	r0, [r3]
	b	udelay
.L2:
	mov	r1, r5
	bl	read_nic_byte
	mov	ip, #1
	mov	r3, r0
	ldr	r2, .L6+4
	mov	r1, r5
	ldr	r2, [r2]
	mov	r0, r4
	bic	r2, r3, ip, lsl r2
	bl	write_nic_byte
	b	.L3
.L7:
	.align	2
.L6:
	.word	EPROM_CMD
	.word	EPROM_W_SHIFT
	.word	EPROM_DELAY
	.size	eprom_w, .-eprom_w
	.comm	EPROM_W_SHIFT,4,4
	.comm	EPROM_DELAY,4,4
	.comm	EPROM_CMD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
