	.file	"extr_slicoss.c_slic_read_eeprom.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"invalid checksum in eeprom\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"timed out while waiting for eeprom data\n"
	.text
	.p2align 4
	.type	slic_read_eeprom, @function
slic_read_eeprom:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 4[rax]
	call	PCI_FUNC@PLT
	mov	rdi, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	lea	rdx, 12[rsp]
	mov	esi, DWORD PTR SLIC_EEPROM_SIZE[rip]
	mov	r13, QWORD PTR 32[rbp]
	mov	r15d, eax
	call	dma_alloc_coherent@PLT
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	test	rax, rax
	je	.L1
	mov	edx, DWORD PTR SLIC_ICR_INT_OFF[rip]
	mov	esi, DWORD PTR SLIC_REG_ICR[rip]
	mov	rdi, rbp
	mov	r12, rax
	call	slic_write@PLT
	mov	edi, DWORD PTR 24[rbp]
	call	lower_32_bits@PLT
	mov	esi, DWORD PTR SLIC_REG_ISP[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	slic_write@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR SLIC_UPR_CONFIG[rip]
	mov	rdi, rbp
	call	slic_new_upr@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L4
	mov	ebx, 5000
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, 1
	call	mdelay@PLT
	sub	ebx, 1
	je	.L19
.L6:
	mov	edi, DWORD PTR 0[r13]
	call	le32_to_cpu@PLT
	test	DWORD PTR SLIC_ISR_UPC[rip], eax
	je	.L20
	mov	rdi, rbp
	call	slic_dequeue_upr@PLT
	mov	rdi, rax
	call	kfree@PLT
	mov	esi, DWORD PTR SLIC_REG_ISP[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	slic_write@PLT
	mov	esi, DWORD PTR SLIC_REG_ISR[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	slic_write@PLT
	mov	rdi, rbp
	call	slic_flush_write@PLT
.L10:
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [r12]
	mov	rdx, QWORD PTR 16[r12]
	mov	QWORD PTR 24[rsp], rax
	mov	QWORD PTR 16[rsp], rdx
	call	le16_to_cpu@PLT
	mov	rdi, r12
	mov	esi, eax
	call	slic_eeprom_valid@PLT
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, QWORD PTR 16[rsp+r15*8]
	mov	edi, DWORD PTR [rax]
	call	ether_addr_copy@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, DWORD PTR SLIC_REG_ISP[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	slic_write@PLT
	mov	esi, DWORD PTR SLIC_REG_ISR[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	slic_write@PLT
	mov	rdi, rbp
	call	slic_flush_write@PLT
.L9:
	mov	rdi, QWORD PTR 8[rbp]
	mov	ecx, DWORD PTR 12[rsp]
	mov	rdx, r12
	mov	esi, DWORD PTR SLIC_EEPROM_SIZE[rip]
	call	dma_free_coherent@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rdi, rbp
	mov	ebx, DWORD PTR ETIMEDOUT[rip]
	call	slic_dequeue_upr@PLT
	mov	rdi, rax
	call	kfree@PLT
	mov	esi, DWORD PTR SLIC_REG_ISP[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	slic_write@PLT
	mov	esi, DWORD PTR SLIC_REG_ISR[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	slic_write@PLT
	mov	rdi, rbp
	call	slic_flush_write@PLT
	test	ebx, ebx
	je	.L10
	neg	ebx
	mov	r14d, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	r14d, DWORD PTR EINVAL[rip]
	neg	r14d
	jmp	.L9
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	slic_read_eeprom, .-slic_read_eeprom
	.comm	SLIC_UPR_CONFIG,4,4
	.comm	SLIC_REG_ISR,4,4
	.comm	SLIC_REG_ISP,4,4
	.comm	SLIC_REG_ICR,4,4
	.comm	SLIC_MODEL_OASIS,8,8
	.comm	SLIC_ISR_UPC,4,4
	.comm	SLIC_ICR_INT_OFF,4,4
	.comm	SLIC_EEPROM_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENOMEM,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_slicoss.c_slic_read_eeprom.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid checksum in eeprom\012\000"
	.align	2
.LC1:
	.ascii	"timed out while waiting for eeprom data\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	slic_read_eeprom, %function
slic_read_eeprom:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #4]
	ldr	r2, .L25
	sub	sp, sp, #28
	mov	r5, r0
	ldr	r0, [r3, #4]
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	bl	PCI_FUNC
	mov	ip, r0
	ldr	r3, .L25+4
	ldr	r10, .L25+8
	ldr	r0, [r5, #4]
	ldr	r3, [r3]
	ldr	r1, [r10]
	add	r2, sp, #8
	ldr	r7, [r5, #16]
	str	ip, [sp, #4]
	bl	dma_alloc_coherent
	subs	r6, r0, #0
	beq	.L19
	ldr	r3, .L25+12
	ldr	r2, .L25+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r5
	ldr	fp, .L25+20
	bl	slic_write
	ldr	r0, [r5, #12]
	ldr	r4, [fp]
	bl	lower_32_bits
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	slic_write
	ldr	r3, .L25+24
	mov	r0, r5
	ldr	r2, [sp, #8]
	ldr	r1, [r3]
	bl	slic_new_upr
	subs	r9, r0, #0
	beq	.L20
	mov	r2, #0
	ldr	r1, [fp]
	mov	r0, r5
	bl	slic_write
	ldr	r3, .L25+28
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r3]
	bl	slic_write
	mov	r0, r5
	bl	slic_flush_write
.L9:
	mov	r2, r6
	ldr	r1, [r10]
	ldr	r0, [r5, #4]
	ldr	r3, [sp, #8]
	bl	dma_free_coherent
.L1:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r9
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L20:
	ldr	r4, .L25+32
	ldr	r8, .L25+36
	b	.L6
.L23:
	mov	r0, #1
	bl	mdelay
	subs	r4, r4, #1
	beq	.L22
.L6:
	ldr	r0, [r7]
	bl	le32_to_cpu
	ldr	r3, [r8]
	tst	r0, r3
	beq	.L23
	mov	r0, r5
	bl	slic_dequeue_upr
	bl	kfree
	mov	r2, #0
	ldr	r1, [fp]
	mov	r0, r5
	bl	slic_write
	ldr	r3, .L25+28
	mov	r2, #0
	mov	r0, r5
	ldr	r1, [r3]
	bl	slic_write
	mov	r0, r5
	bl	slic_flush_write
.L10:
	ldm	r6, {r0, r2, r3}
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	bl	le16_to_cpu
	mov	r1, r0
	mov	r0, r6
	bl	slic_eeprom_valid
	cmp	r0, #0
	beq	.L24
	ldr	r1, [sp, #4]
	ldr	r3, [r5, #8]
	add	r2, sp, #24
	add	r2, r2, r1, lsl #2
	ldr	r1, [r2, #-12]
	ldr	r0, [r3]
	bl	ether_addr_copy
	b	.L9
.L19:
	ldr	r3, .L25+40
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L1
.L22:
	ldr	r1, .L25+44
	ldr	r0, [r5, #4]
	bl	dev_err
	ldr	r3, .L25+48
	mov	r0, r5
	ldr	r7, [r3]
	bl	slic_dequeue_upr
	bl	kfree
	mov	r2, r4
	ldr	r1, [fp]
	mov	r0, r5
	bl	slic_write
	ldr	r3, .L25+28
	mov	r2, r4
	ldr	r1, [r3]
	mov	r0, r5
	bl	slic_write
	mov	r0, r5
	bl	slic_flush_write
	cmp	r7, #0
	rsbne	r9, r7, #0
	beq	.L10
	b	.L9
.L24:
	ldr	r1, .L25+52
	ldr	r0, [r5, #4]
	bl	dev_err
	ldr	r3, .L25+56
	ldr	r9, [r3]
	rsb	r9, r9, #0
	b	.L9
.L21:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC2
	.word	GFP_KERNEL
	.word	SLIC_EEPROM_SIZE
	.word	SLIC_REG_ICR
	.word	SLIC_ICR_INT_OFF
	.word	SLIC_REG_ISP
	.word	SLIC_UPR_CONFIG
	.word	SLIC_REG_ISR
	.word	5000
	.word	SLIC_ISR_UPC
	.word	ENOMEM
	.word	.LC1
	.word	ETIMEDOUT
	.word	.LC0
	.word	EINVAL
	.size	slic_read_eeprom, .-slic_read_eeprom
	.comm	SLIC_UPR_CONFIG,4,4
	.comm	SLIC_REG_ISR,4,4
	.comm	SLIC_REG_ISP,4,4
	.comm	SLIC_REG_ICR,4,4
	.comm	SLIC_MODEL_OASIS,4,4
	.comm	SLIC_ISR_UPC,4,4
	.comm	SLIC_ICR_INT_OFF,4,4
	.comm	SLIC_EEPROM_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ETIMEDOUT,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
