	.file	"extr_mlx5_diagnostics.c_mlx5_read_eeprom.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed reading EEPROM initial information\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Failed reading EEPROM\n"
	.text
	.p2align 4
	.globl	mlx5_read_eeprom
	.type	mlx5_read_eeprom, @function
mlx5_read_eeprom:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MLX5_I2C_ADDR_LOW[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	DWORD PTR 40[rsi], eax
	mov	eax, DWORD PTR MLX5_EEPROM_LOW_PAGE[rip]
	mov	QWORD PTR 32[rsi], 0
	mov	DWORD PTR 24[rsi], eax
	mov	QWORD PTR 16[rsi], 0
	call	mlx5_get_eeprom_info@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L10
	mov	esi, DWORD PTR M_MLX5_EEPROM[rip]
	mov	edx, DWORD PTR M_WAITOK[rip]
	mov	rdi, QWORD PTR MLX5_EEPROM_PAGE_LENGTH[rip]
	or	edx, DWORD PTR M_ZERO[rip]
	add	rdi, QWORD PTR 8[rbx]
	call	malloc@PLT
	mov	rsi, rbx
	mov	rdi, rbp
	mov	DWORD PTR [rbx], eax
	call	mlx5_get_eeprom@PLT
	test	eax, eax
	jne	.L11
.L4:
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR M_MLX5_EEPROM[rip]
	call	free@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	call	mlx5_core_err@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	mlx5_core_err@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx5_read_eeprom, .-mlx5_read_eeprom
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_MLX5_EEPROM,4,4
	.comm	MLX5_I2C_ADDR_LOW,4,4
	.comm	MLX5_EEPROM_PAGE_LENGTH,8,8
	.comm	MLX5_EEPROM_LOW_PAGE,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_mlx5_diagnostics.c_mlx5_read_eeprom.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed reading EEPROM initial information\012\000"
	.align	2
.LC1:
	.ascii	"Failed reading EEPROM\012\000"
	.text
	.align	2
	.global	mlx5_read_eeprom
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_read_eeprom, %function
mlx5_read_eeprom:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	ldr	ip, .L12
	ldr	r2, .L12+4
	ldr	ip, [ip]
	ldr	r2, [r2]
	push	{r4, r5, r6, r7, r8, lr}
	str	ip, [r1, #20]
	str	r2, [r1, #12]
	str	r3, [r1, #16]
	str	r3, [r1, #8]
	mov	r4, r1
	mov	r6, r0
	bl	mlx5_get_eeprom_info
	subs	r5, r0, #0
	bne	.L10
	ldr	r1, .L12+8
	ldr	r2, .L12+12
	ldr	r3, .L12+16
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r0, [r4, #4]
	ldr	r7, .L12+20
	orr	r2, r1, r2
	add	r0, r0, r3
	ldr	r1, [r7]
	bl	malloc
	mov	r1, r4
	str	r0, [r4]
	mov	r0, r6
	bl	mlx5_get_eeprom
	cmp	r0, #0
	bne	.L11
.L4:
	ldr	r1, [r7]
	ldr	r0, [r4]
	bl	free
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r6
	ldr	r1, .L12+24
	bl	mlx5_core_err
	b	.L4
.L10:
	mov	r0, r6
	ldr	r1, .L12+28
	bl	mlx5_core_err
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	MLX5_I2C_ADDR_LOW
	.word	MLX5_EEPROM_LOW_PAGE
	.word	M_WAITOK
	.word	M_ZERO
	.word	MLX5_EEPROM_PAGE_LENGTH
	.word	M_MLX5_EEPROM
	.word	.LC1
	.word	.LC0
	.size	mlx5_read_eeprom, .-mlx5_read_eeprom
	.comm	M_ZERO,4,4
	.comm	M_WAITOK,4,4
	.comm	M_MLX5_EEPROM,4,4
	.comm	MLX5_I2C_ADDR_LOW,4,4
	.comm	MLX5_EEPROM_PAGE_LENGTH,4,4
	.comm	MLX5_EEPROM_LOW_PAGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
