	.file	"extr_bnxt_ethtool.c_bnxt_get_nvram_item.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"dma_alloc_coherent failure, length = %u\n"
	.text
	.p2align 4
	.type	bnxt_get_nvram_item, @function
bnxt_get_nvram_item:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	netdev_priv@PLT
	pxor	xmm0, xmm0
	movaps	XMMWORD PTR 32[rsp], xmm0
	movaps	XMMWORD PTR 48[rsp], xmm0
	test	rbp, rbp
	jne	.L2
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR [rax]
	mov	rsi, rbp
	mov	rbx, rax
	lea	rdx, 28[rsp]
	call	dma_alloc_coherent@PLT
	test	rax, rax
	je	.L10
	mov	edx, DWORD PTR HWRM_NVM_READ[rip]
	lea	r12, 32[rsp]
	mov	ecx, -1
	mov	rdi, rbx
	mov	rsi, r12
	mov	r8d, -1
	mov	QWORD PTR 8[rsp], rax
	call	bnxt_hwrm_cmd_hdr_init@PLT
	mov	edi, DWORD PTR 28[rsp]
	call	cpu_to_le64@PLT
	mov	rdi, r15
	mov	DWORD PTR 52[rsp], eax
	call	cpu_to_le16@PLT
	mov	rdi, r14
	mov	DWORD PTR 48[rsp], eax
	call	cpu_to_le32@PLT
	mov	rdi, rbp
	mov	QWORD PTR 40[rsp], rax
	call	cpu_to_le32@PLT
	mov	rsi, r12
	mov	edx, 32
	mov	rdi, rbx
	mov	ecx, DWORD PTR HWRM_CMD_TIMEOUT[rip]
	mov	QWORD PTR 32[rsp], rax
	call	hwrm_send_message@PLT
	mov	r9, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	je	.L11
.L5:
	mov	ecx, DWORD PTR 28[rsp]
	mov	rdi, QWORD PTR [rbx]
	mov	rdx, r9
	mov	rsi, rbp
	call	dma_free_coherent@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, r9
	mov	rdx, rbp
	mov	rdi, r13
	call	memcpy@PLT
	mov	r9, QWORD PTR 8[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, r12
	mov	edx, ebp
	lea	rsi, .LC0[rip]
	call	netdev_err@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bnxt_get_nvram_item, .-bnxt_get_nvram_item
	.comm	HWRM_NVM_READ,4,4
	.comm	HWRM_CMD_TIMEOUT,4,4
	.comm	GFP_KERNEL,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_bnxt_ethtool.c_bnxt_get_nvram_item.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"dma_alloc_coherent failure, length = %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnxt_get_nvram_item, %function
bnxt_get_nvram_item:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r3
	ldr	r3, .L12
	sub	sp, sp, #40
	mov	r7, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r10, r0
	ldr	r8, [sp, #72]
	bl	netdev_priv
	mov	ip, #0
	cmp	r4, ip
	str	ip, [sp, #16]
	str	ip, [sp, #20]
	str	ip, [sp, #24]
	str	ip, [sp, #28]
	str	ip, [sp, #32]
	bne	.L2
	ldr	r3, .L12+4
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	mov	r0, r6
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L12+8
	mov	r5, r0
	mov	r1, r4
	ldr	r3, [r3]
	ldr	r0, [r0]
	add	r2, sp, #12
	bl	dma_alloc_coherent
	subs	r9, r0, #0
	beq	.L10
	mvn	r3, #0
	ldr	r2, .L12+12
	str	r3, [sp]
	ldr	r2, [r2]
	add	r1, sp, #16
	mov	r0, r5
	bl	bnxt_hwrm_cmd_hdr_init
	ldr	r0, [sp, #12]
	bl	cpu_to_le64
	mov	r3, r0
	mov	r0, r7
	str	r3, [sp, #28]
	bl	cpu_to_le16
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #24]
	bl	cpu_to_le32
	mov	r3, r0
	mov	r0, r4
	str	r3, [sp, #20]
	bl	cpu_to_le32
	mov	ip, r0
	ldr	r3, .L12+16
	mov	r2, #20
	mov	r0, r5
	ldr	r3, [r3]
	add	r1, sp, #16
	str	ip, [sp, #16]
	bl	hwrm_send_message
	subs	r6, r0, #0
	beq	.L11
.L5:
	mov	r2, r9
	mov	r1, r4
	ldr	r0, [r5]
	ldr	r3, [sp, #12]
	bl	dma_free_coherent
	b	.L1
.L11:
	mov	r0, r8
	mov	r2, r4
	mov	r1, r9
	bl	memcpy
	b	.L5
.L10:
	mov	r2, r4
	mov	r0, r10
	ldr	r1, .L12+20
	bl	netdev_err
	ldr	r3, .L12+24
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	EINVAL
	.word	GFP_KERNEL
	.word	HWRM_NVM_READ
	.word	HWRM_CMD_TIMEOUT
	.word	.LC0
	.word	ENOMEM
	.size	bnxt_get_nvram_item, .-bnxt_get_nvram_item
	.comm	HWRM_NVM_READ,4,4
	.comm	HWRM_CMD_TIMEOUT,4,4
	.comm	GFP_KERNEL,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
