	.file	"extr_pnd2_edac.c_dnv_rd_reg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Read %s=%.8x_%.8x\n"
	.text
	.p2align 4
	.type	dnv_rd_reg, @function
dnv_rd_reg:
.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
	mov	r14, r9
	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, rcx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movsx	rbp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	edx, 4
	je	.L23
	mov	ebx, edi
	xor	eax, eax
	test	edx, edx
	jne	.L6
	cmp	edi, 76
	jne	.L6
	call	get_mem_ctrl_hub_base_addr@PLT
	mov	rsi, QWORD PTR DNV_MCHBAR_SIZE[rip]
	mov	rdi, rax
	test	rax, rax
	je	.L21
.L8:
	call	ioremap@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L21
	cmp	r13, 8
	jne	.L11
	mov	eax, DWORD PTR 4[rax+rbp]
	mov	DWORD PTR 4[r12], eax
.L11:
	mov	eax, DWORD PTR [rdi+rbp]
	mov	DWORD PTR [r12], eax
	call	iounmap@PLT
.L5:
	mov	r8d, DWORD PTR [r12]
	xor	ecx, ecx
	cmp	r13, 8
	jne	.L12
	mov	ecx, DWORD PTR 4[r12]
.L12:
	mov	rdx, r14
	lea	rsi, .LC0[rip]
	mov	edi, 2
	call	edac_dbg@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L6:
	.cfi_restore_state
	call	get_sideband_reg_base_addr@PLT
	test	rax, rax
	je	.L21
	sal	ebx, 16
	mov	rsi, QWORD PTR DNV_SB_PORT_SIZE[rip]
	movsx	rdi, ebx
	add	rdi, rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, DWORD PTR PCI_VENDOR_ID_INTEL[rip]
	xor	edx, edx
	mov	esi, 6528
	call	pci_get_device@PLT
	mov	r15, rax
	test	rax, rax
	jne	.L3
.L21:
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L3:
	.cfi_restore_state
	mov	rdx, r12
	mov	esi, ebp
	mov	rdi, rax
	call	pci_read_config_dword@PLT
	mov	rdi, r15
	call	pci_dev_put@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	dnv_rd_reg, .-dnv_rd_reg
	.comm	PCI_VENDOR_ID_INTEL,4,4
	.comm	ENODEV,4,4
	.comm	DNV_SB_PORT_SIZE,8,8
	.comm	DNV_MCHBAR_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_pnd2_edac.c_dnv_rd_reg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Read %s=%.8x_%.8x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dnv_rd_reg, %function
dnv_rd_reg:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	cmp	r2, #4
	sub	sp, sp, #12
	mov	r5, r1
	mov	r4, r3
	ldr	r6, [sp, #32]
	beq	.L17
	cmp	r2, #0
	cmpeq	r0, #76
	mov	r7, r0
	beq	.L18
	bl	get_sideband_reg_base_addr
	subs	r3, r0, #0
	beq	.L15
	ldr	r2, .L19
	add	r0, r3, r7, lsl #16
	ldr	r1, [r2]
.L8:
	bl	ioremap
	cmp	r0, #0
	beq	.L15
	cmp	r6, #8
	addeq	r3, r0, r5
	ldreq	r3, [r3, #4]
	streq	r3, [r4, #4]
	ldr	r3, [r0, r5]
	str	r3, [r4]
	bl	iounmap
.L5:
	ldr	r2, [r4]
	cmp	r6, #8
	ldreq	r3, [r4, #4]
	movne	r3, #0
	str	r2, [sp]
	ldr	r1, .L19+4
	ldr	r2, [sp, #36]
	mov	r0, #2
	bl	edac_dbg
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L18:
	bl	get_mem_ctrl_hub_base_addr
	cmp	r0, #0
	beq	.L15
	ldr	r3, .L19+8
	ldr	r1, [r3]
	b	.L8
.L17:
	ldr	r3, .L19+12
	mov	r2, #0
	mov	r1, #6528
	ldr	r0, [r3]
	bl	pci_get_device
	subs	r7, r0, #0
	bne	.L3
.L15:
	ldr	r3, .L19+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	mov	r1, r5
	mov	r2, r4
	bl	pci_read_config_dword
	mov	r0, r7
	bl	pci_dev_put
	b	.L5
.L20:
	.align	2
.L19:
	.word	DNV_SB_PORT_SIZE
	.word	.LC0
	.word	DNV_MCHBAR_SIZE
	.word	PCI_VENDOR_ID_INTEL
	.word	ENODEV
	.size	dnv_rd_reg, .-dnv_rd_reg
	.comm	PCI_VENDOR_ID_INTEL,4,4
	.comm	ENODEV,4,4
	.comm	DNV_SB_PORT_SIZE,4,4
	.comm	DNV_MCHBAR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
