	.file	"extr_efx.c_efx_print_product_vpd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unable to read VPD\n"
.LC1:
	.string	"VPD Read-only not found\n"
.LC2:
	.string	"PN"
.LC3:
	.string	"Part number not found\n"
.LC4:
	.string	"Incomplete part number\n"
.LC5:
	.string	"Part Number : %.*s\n"
	.text
	.p2align 4
	.type	efx_print_product_vpd, @function
efx_print_product_vpd:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rdi, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR SFC_VPD_LEN[rip]
	mov	rcx, rsp
	mov	r12, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	mov	rcx, rsp
	mov	edx, r8d
	xor	esi, esi
	call	pci_read_vpd@PLT
	mov	r14d, eax
	test	eax, eax
	jle	.L20
	mov	ecx, DWORD PTR PCI_VPD_LRDT_RO_DATA[rip]
	mov	edx, eax
	xor	esi, esi
	mov	rdi, rsp
	call	pci_vpd_find_tag@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L21
	movsx	rdi, eax
	add	rdi, rsp
	call	pci_vpd_lrdt_size@PLT
	mov	esi, DWORD PTR PCI_VPD_LRDT_TAG_SIZE[rip]
	mov	rdi, rsp
	mov	edx, eax
	add	esi, ebx
	lea	ecx, [rax+rsi]
	mov	eax, r14d
	sub	eax, esi
	cmp	ecx, r14d
	lea	rcx, .LC2[rip]
	cmovg	edx, eax
	call	pci_vpd_find_info_keyword@PLT
	mov	ebx, eax
	test	eax, eax
	js	.L22
	movsx	rdi, eax
	add	rdi, rsp
	call	pci_vpd_info_field_size@PLT
	add	ebx, DWORD PTR PCI_VPD_INFO_FLD_HDR_SIZE[rip]
	mov	r8d, eax
	lea	eax, [rax+rbx]
	cmp	eax, r14d
	jg	.L23
	mov	edx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR drv[rip]
	movsx	rbx, ebx
	mov	rdi, r13
	lea	r9, [rsp+rbx]
	lea	rcx, .LC5[rip]
	call	netif_info@PLT
	mov	rsp, r12
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR drv[rip]
	lea	rcx, .LC0[rip]
	mov	rdi, r13
	call	netif_err@PLT
.L6:
	mov	rsp, r12
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR drv[rip]
	lea	rcx, .LC1[rip]
	mov	rdi, r13
	call	netif_err@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR drv[rip]
	lea	rcx, .LC3[rip]
	mov	rdi, r13
	call	netif_err@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edx, DWORD PTR 0[r13]
	mov	esi, DWORD PTR drv[rip]
	lea	rcx, .LC4[rip]
	mov	rdi, r13
	call	netif_err@PLT
	jmp	.L6
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	efx_print_product_vpd, .-efx_print_product_vpd
	.comm	drv,4,4
	.comm	SFC_VPD_LEN,4,4
	.comm	PCI_VPD_LRDT_TAG_SIZE,8,8
	.comm	PCI_VPD_LRDT_RO_DATA,4,4
	.comm	PCI_VPD_INFO_FLD_HDR_SIZE,8,8
	.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_efx.c_efx_print_product_vpd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unable to read VPD\012\000"
	.align	2
.LC1:
	.ascii	"VPD Read-only not found\012\000"
	.align	2
.LC2:
	.ascii	"PN\000"
	.align	2
.LC3:
	.ascii	"Part number not found\012\000"
	.align	2
.LC4:
	.ascii	"Incomplete part number\012\000"
	.align	2
.LC5:
	.ascii	"Part Number : %.*s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_print_product_vpd, %function
efx_print_product_vpd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	ldr	r3, .L17
	mov	r8, sp
	ldr	r2, [r3]
	ldr	ip, .L17+4
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r7, sp, #8
	mov	r4, r0
	mov	r3, r7
	mov	r1, #0
	ldr	r0, [r0, #4]
	ldr	ip, [ip]
	str	ip, [fp, #-32]
	mov	ip,#0
	bl	pci_read_vpd
	subs	r5, r0, #0
	ble	.L12
	ldr	r3, .L17+8
	mov	r2, r5
	mov	r1, #0
	mov	r0, r7
	ldr	r3, [r3]
	bl	pci_vpd_find_tag
	subs	r6, r0, #0
	blt	.L13
	add	r0, r7, r6
	bl	pci_vpd_lrdt_size
	ldr	r3, .L17+12
	mov	r2, r0
	ldr	r1, [r3]
	add	r1, r6, r1
	add	r3, r0, r1
	cmp	r3, r5
	subgt	r2, r5, r1
	mov	r0, r7
	ldr	r3, .L17+16
	bl	pci_vpd_find_info_keyword
	subs	r6, r0, #0
	blt	.L14
	add	r0, r7, r6
	bl	pci_vpd_info_field_size
	ldr	r3, .L17+20
	ldr	r3, [r3]
	add	r6, r6, r3
	add	r3, r0, r6
	cmp	r3, r5
	bgt	.L15
	ldr	r3, .L17+24
	add	r7, r7, r6
	ldr	r1, [r3]
	ldr	r2, [r4]
	ldr	r3, .L17+28
	stm	sp, {r0, r7}
	mov	r0, r4
	bl	netif_info
	mov	sp, r8
.L1:
	ldr	r3, .L17+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L12:
	ldr	r2, .L17+24
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, .L17+32
	ldr	r2, [r4]
	bl	netif_err
.L3:
	mov	sp, r8
	b	.L1
.L14:
	ldr	r2, .L17+24
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, .L17+36
	ldr	r2, [r4]
	bl	netif_err
	b	.L3
.L13:
	ldr	r2, .L17+24
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, .L17+40
	ldr	r2, [r4]
	bl	netif_err
	b	.L3
.L15:
	ldr	r2, .L17+24
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, .L17+44
	ldr	r2, [r4]
	bl	netif_err
	b	.L3
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	SFC_VPD_LEN
	.word	.LC6
	.word	PCI_VPD_LRDT_RO_DATA
	.word	PCI_VPD_LRDT_TAG_SIZE
	.word	.LC2
	.word	PCI_VPD_INFO_FLD_HDR_SIZE
	.word	drv
	.word	.LC5
	.word	.LC0
	.word	.LC3
	.word	.LC1
	.word	.LC4
	.size	efx_print_product_vpd, .-efx_print_product_vpd
	.comm	drv,4,4
	.comm	SFC_VPD_LEN,4,4
	.comm	PCI_VPD_LRDT_TAG_SIZE,4,4
	.comm	PCI_VPD_LRDT_RO_DATA,4,4
	.comm	PCI_VPD_INFO_FLD_HDR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
