	.file	"extr_netxen_nic_ethtool.c_netxen_nic_get_regs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	netxen_nic_get_regs, @function
netxen_nic_get_regs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	edx, DWORD PTR NETXEN_NIC_REGS_LEN[rip]
	xor	esi, esi
	mov	rdi, r12
	mov	rbx, rax
	mov	ebp, DWORD PTR [rax]
	call	memset@PLT
	mov	eax, DWORD PTR 32[rbx]
	mov	rdx, QWORD PTR 40[rbx]
	sal	eax, 16
	or	eax, DWORD PTR [rdx]
	or	eax, 16777216
	mov	DWORD PTR 0[r13], eax
	mov	rax, QWORD PTR NETXEN_ADAPTER_UP_MAGIC[rip]
	cmp	QWORD PTR 8[rbx], rax
	je	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rsi, QWORD PTR CRB_CMDPEG_STATE[rip]
	mov	rdi, rbx
	call	NXRD32@PLT
	mov	rsi, QWORD PTR CRB_RCVPEG_STATE[rip]
	mov	rdi, rbx
	mov	DWORD PTR [r12], eax
	call	NXRD32@PLT
	mov	rsi, QWORD PTR CRB_FW_CAPABILITIES_1[rip]
	mov	rdi, rbx
	mov	DWORD PTR 4[r12], eax
	call	NXRD32@PLT
	mov	rdi, rbx
	mov	DWORD PTR 8[r12], eax
	mov	esi, DWORD PTR 36[rbx]
	call	NXRDIO@PLT
	mov	rsi, QWORD PTR NX_CRB_DEV_REF_COUNT[rip]
	mov	rdi, rbx
	mov	DWORD PTR 12[r12], eax
	call	NXRD32@PLT
	mov	rsi, QWORD PTR NX_CRB_DEV_STATE[rip]
	mov	rdi, rbx
	mov	DWORD PTR 16[r12], eax
	call	NXRD32@PLT
	mov	rsi, QWORD PTR NETXEN_PEG_ALIVE_COUNTER[rip]
	mov	rdi, rbx
	mov	DWORD PTR 20[r12], eax
	call	NXRD32@PLT
	mov	rsi, QWORD PTR NETXEN_PEG_HALT_STATUS1[rip]
	mov	rdi, rbx
	mov	DWORD PTR 24[r12], eax
	call	NXRD32@PLT
	mov	rsi, QWORD PTR NETXEN_PEG_HALT_STATUS2[rip]
	mov	rdi, rbx
	mov	DWORD PTR 28[r12], eax
	call	NXRD32@PLT
	mov	rdi, rbx
	mov	DWORD PTR 32[r12], eax
	mov	rax, QWORD PTR NETXEN_CRB_PEG_NET_0[rip]
	lea	rsi, 60[rax]
	call	NXRD32@PLT
	mov	rdi, rbx
	mov	DWORD PTR 36[r12], eax
	mov	rax, QWORD PTR NETXEN_CRB_PEG_NET_1[rip]
	lea	rsi, 60[rax]
	call	NXRD32@PLT
	mov	rdi, rbx
	mov	DWORD PTR 40[r12], eax
	mov	rax, QWORD PTR NETXEN_CRB_PEG_NET_2[rip]
	lea	rsi, 60[rax]
	call	NXRD32@PLT
	mov	rdi, rbx
	mov	DWORD PTR 44[r12], eax
	mov	rax, QWORD PTR NETXEN_CRB_PEG_NET_3[rip]
	lea	rsi, 60[rax]
	call	NXRD32@PLT
	mov	DWORD PTR 48[r12], eax
	mov	edi, DWORD PTR 32[rbx]
	call	NX_IS_REVISION_P3@PLT
	test	rax, rax
	jne	.L10
	mov	rsi, QWORD PTR NETXEN_NIU_XGE_CONFIG_0[rip]
	sal	ebp, 16
	mov	rdi, rbx
	movsx	rbp, ebp
	add	rsi, rbp
	call	NXRD32@PLT
	mov	rsi, QWORD PTR NETXEN_NIU_XGE_CONFIG_1[rip]
	mov	rdi, rbx
	mov	DWORD PTR 56[r12], eax
	add	rsi, rbp
	call	NXRD32@PLT
	mov	rsi, QWORD PTR CRB_XG_STATE[rip]
	mov	rdi, rbx
	mov	DWORD PTR 60[r12], eax
	call	NXRD32@PLT
	mov	rdi, rbx
	mov	DWORD PTR 64[r12], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	esi, DWORD PTR 4[rax]
	call	NXRDIO@PLT
	mov	DWORD PTR 68[r12], eax
.L4:
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, rbx
	mov	esi, DWORD PTR [rax]
	call	NXRDIO@PLT
	mov	rdi, rbx
	mov	DWORD PTR 72[r12], eax
	mov	rax, QWORD PTR 56[rbx]
	mov	esi, DWORD PTR [rax]
	call	NXRDIO@PLT
	mov	rdi, rbx
	mov	DWORD PTR 76[r12], eax
	mov	rax, QWORD PTR 56[rbx]
	mov	esi, DWORD PTR 4[rax]
	call	NXRDIO@PLT
	mov	DWORD PTR 80[r12], eax
	mov	eax, DWORD PTR 16[rbx]
	mov	DWORD PTR 84[r12], eax
	mov	eax, DWORD PTR 16[rbx]
	test	eax, eax
	jle	.L1
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 48[rbx]
	mov	rdi, rbx
	mov	esi, DWORD PTR [rax+rbp*4]
	call	NXRDIO@PLT
	mov	DWORD PTR 88[r12+rbp*4], eax
	add	rbp, 1
	cmp	DWORD PTR 16[rbx], ebp
	jg	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rax, QWORD PTR NETXEN_CRB_PEG_NET_4[rip]
	mov	rdi, rbx
	lea	rsi, 60[rax]
	call	NXRD32@PLT
	mov	rsi, QWORD PTR CRB_XG_STATE_P3[rip]
	mov	rdi, rbx
	mov	DWORD PTR 52[r12], eax
	call	NXRD32@PLT
	mov	DWORD PTR 64[r12], eax
	mov	rax, QWORD PTR 24[rbx]
	mov	rax, QWORD PTR 8[rax]
	mov	edi, DWORD PTR [rax]
	call	le32_to_cpu@PLT
	mov	DWORD PTR 68[r12], eax
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	netxen_nic_get_regs, .-netxen_nic_get_regs
	.comm	NX_CRB_DEV_STATE,8,8
	.comm	NX_CRB_DEV_REF_COUNT,8,8
	.comm	NETXEN_PEG_HALT_STATUS2,8,8
	.comm	NETXEN_PEG_HALT_STATUS1,8,8
	.comm	NETXEN_PEG_ALIVE_COUNTER,8,8
	.comm	NETXEN_NIU_XGE_CONFIG_1,8,8
	.comm	NETXEN_NIU_XGE_CONFIG_0,8,8
	.comm	NETXEN_NIC_REGS_LEN,4,4
	.comm	NETXEN_CRB_PEG_NET_4,8,8
	.comm	NETXEN_CRB_PEG_NET_3,8,8
	.comm	NETXEN_CRB_PEG_NET_2,8,8
	.comm	NETXEN_CRB_PEG_NET_1,8,8
	.comm	NETXEN_CRB_PEG_NET_0,8,8
	.comm	NETXEN_ADAPTER_UP_MAGIC,8,8
	.comm	CRB_XG_STATE_P3,8,8
	.comm	CRB_XG_STATE,8,8
	.comm	CRB_RCVPEG_STATE,8,8
	.comm	CRB_FW_CAPABILITIES_1,8,8
	.comm	CRB_CMDPEG_STATE,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_netxen_nic_ethtool.c_netxen_nic_get_regs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	netxen_nic_get_regs, %function
netxen_nic_get_regs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r5, r2
	bl	netdev_priv
	mov	r4, r0
	ldr	r3, .L10
	mov	r1, #0
	ldr	r2, [r3]
	mov	r0, r5
	ldr	r7, [r4]
	bl	memset
	ldr	r3, [r4, #24]
	ldr	r2, .L10+4
	ldr	r3, [r3]
	ldr	r0, [r4, #16]
	ldr	r2, [r2]
	ldr	r1, [r4, #4]
	orr	r3, r3, r0, lsl #16
	orr	r3, r3, #16777216
	cmp	r1, r2
	str	r3, [r6]
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L10+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	NXRD32
	ldr	r3, .L10+12
	str	r0, [r5]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, .L10+16
	str	r0, [r5, #4]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	str	r0, [r5, #8]
	ldr	r1, [r4, #20]
	mov	r0, r4
	bl	NXRDIO
	ldr	r3, .L10+20
	str	r0, [r5, #12]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, .L10+24
	str	r0, [r5, #16]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, .L10+28
	str	r0, [r5, #20]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, .L10+32
	str	r0, [r5, #24]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, .L10+36
	str	r0, [r5, #28]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, .L10+40
	str	r0, [r5, #32]
	ldr	r1, [r3]
	mov	r0, r4
	add	r1, r1, #60
	bl	NXRD32
	ldr	r3, .L10+44
	str	r0, [r5, #36]
	ldr	r1, [r3]
	mov	r0, r4
	add	r1, r1, #60
	bl	NXRD32
	ldr	r3, .L10+48
	str	r0, [r5, #40]
	ldr	r1, [r3]
	mov	r0, r4
	add	r1, r1, #60
	bl	NXRD32
	ldr	r3, .L10+52
	str	r0, [r5, #44]
	ldr	r1, [r3]
	mov	r0, r4
	add	r1, r1, #60
	bl	NXRD32
	str	r0, [r5, #48]
	ldr	r0, [r4, #16]
	bl	NX_IS_REVISION_P3
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L10+56
	mov	r0, r4
	ldr	r1, [r3]
	lsl	r6, r7, #16
	add	r1, r1, r7, lsl #16
	bl	NXRD32
	ldr	r3, .L10+60
	str	r0, [r5, #56]
	ldr	r1, [r3]
	mov	r0, r4
	add	r1, r6, r1
	bl	NXRD32
	ldr	r3, .L10+64
	str	r0, [r5, #60]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, [r4, #12]
	str	r0, [r5, #64]
	ldr	r1, [r3, #4]
	mov	r0, r4
	bl	NXRDIO
	str	r0, [r5, #68]
.L4:
	ldr	r3, [r4, #12]
	mov	r0, r4
	ldr	r1, [r3]
	bl	NXRDIO
	ldr	r3, [r4, #32]
	str	r0, [r5, #72]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRDIO
	ldr	r3, [r4, #32]
	str	r0, [r5, #76]
	ldr	r1, [r3, #4]
	mov	r0, r4
	bl	NXRDIO
	str	r0, [r5, #80]
	ldr	r3, [r4, #8]
	str	r3, [r5, #84]
	ldr	r3, [r4, #8]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r6, #0
	add	r5, r5, #84
.L5:
	ldr	r3, [r4, #28]
	mov	r0, r4
	ldr	r1, [r3, r6, lsl #2]
	bl	NXRDIO
	str	r0, [r5, #4]!
	ldr	r3, [r4, #8]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L5
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10+68
	mov	r0, r4
	ldr	r1, [r3]
	add	r1, r1, #60
	bl	NXRD32
	ldr	r3, .L10+72
	str	r0, [r5, #52]
	ldr	r1, [r3]
	mov	r0, r4
	bl	NXRD32
	ldr	r3, [r4, #12]
	str	r0, [r5, #64]
	ldr	r3, [r3, #8]
	ldr	r0, [r3]
	bl	le32_to_cpu
	str	r0, [r5, #68]
	b	.L4
.L11:
	.align	2
.L10:
	.word	NETXEN_NIC_REGS_LEN
	.word	NETXEN_ADAPTER_UP_MAGIC
	.word	CRB_CMDPEG_STATE
	.word	CRB_RCVPEG_STATE
	.word	CRB_FW_CAPABILITIES_1
	.word	NX_CRB_DEV_REF_COUNT
	.word	NX_CRB_DEV_STATE
	.word	NETXEN_PEG_ALIVE_COUNTER
	.word	NETXEN_PEG_HALT_STATUS1
	.word	NETXEN_PEG_HALT_STATUS2
	.word	NETXEN_CRB_PEG_NET_0
	.word	NETXEN_CRB_PEG_NET_1
	.word	NETXEN_CRB_PEG_NET_2
	.word	NETXEN_CRB_PEG_NET_3
	.word	NETXEN_NIU_XGE_CONFIG_0
	.word	NETXEN_NIU_XGE_CONFIG_1
	.word	CRB_XG_STATE
	.word	NETXEN_CRB_PEG_NET_4
	.word	CRB_XG_STATE_P3
	.size	netxen_nic_get_regs, .-netxen_nic_get_regs
	.comm	NX_CRB_DEV_STATE,4,4
	.comm	NX_CRB_DEV_REF_COUNT,4,4
	.comm	NETXEN_PEG_HALT_STATUS2,4,4
	.comm	NETXEN_PEG_HALT_STATUS1,4,4
	.comm	NETXEN_PEG_ALIVE_COUNTER,4,4
	.comm	NETXEN_NIU_XGE_CONFIG_1,4,4
	.comm	NETXEN_NIU_XGE_CONFIG_0,4,4
	.comm	NETXEN_NIC_REGS_LEN,4,4
	.comm	NETXEN_CRB_PEG_NET_4,4,4
	.comm	NETXEN_CRB_PEG_NET_3,4,4
	.comm	NETXEN_CRB_PEG_NET_2,4,4
	.comm	NETXEN_CRB_PEG_NET_1,4,4
	.comm	NETXEN_CRB_PEG_NET_0,4,4
	.comm	NETXEN_ADAPTER_UP_MAGIC,4,4
	.comm	CRB_XG_STATE_P3,4,4
	.comm	CRB_XG_STATE,4,4
	.comm	CRB_RCVPEG_STATE,4,4
	.comm	CRB_FW_CAPABILITIES_1,4,4
	.comm	CRB_CMDPEG_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
