	.file	"extr_iosf_mbi.c_iosf_mbi_pci_read_mdr.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PCI config access failed with %d\n"
	.text
	.p2align 4
	.type	iosf_mbi_pci_read_mdr, @function
iosf_mbi_pci_read_mdr:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r8, rdi
	mov	rdi, QWORD PTR mbi_pdev[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	test	rdi, rdi
	je	.L1
	mov	r13, rsi
	mov	r14, rdx
	test	r8, r8
	je	.L4
	mov	esi, DWORD PTR MBI_MCRX_OFFSET[rip]
	mov	rdx, r8
	call	pci_write_config_dword@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	rdi, QWORD PTR mbi_pdev[rip]
.L4:
	mov	esi, DWORD PTR MBI_MCR_OFFSET[rip]
	mov	rdx, r13
	call	pci_write_config_dword@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	esi, DWORD PTR MBI_MDR_OFFSET[rip]
	mov	rdi, QWORD PTR mbi_pdev[rip]
	mov	rdx, r14
	call	pci_read_config_dword@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	xor	r12d, r12d
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, QWORD PTR mbi_pdev[rip]
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iosf_mbi_pci_read_mdr, .-iosf_mbi_pci_read_mdr
	.comm	mbi_pdev,8,8
	.comm	MBI_MDR_OFFSET,4,4
	.comm	MBI_MCR_OFFSET,4,4
	.comm	MBI_MCRX_OFFSET,4,4
	.comm	ENODEV,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_iosf_mbi.c_iosf_mbi_pci_read_mdr.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PCI config access failed with %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iosf_mbi_pci_read_mdr, %function
iosf_mbi_pci_read_mdr:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L13
	mov	r3, r0
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L12
	cmp	r3, #0
	mov	r6, r1
	mov	r7, r2
	beq	.L4
	ldr	r1, .L13+4
	mov	r2, r3
	ldr	r1, [r1]
	bl	pci_write_config_dword
	subs	r4, r0, #0
	blt	.L5
	ldr	r0, [r5]
.L4:
	ldr	r3, .L13+8
	mov	r2, r6
	ldr	r1, [r3]
	bl	pci_write_config_dword
	subs	r4, r0, #0
	blt	.L5
	ldr	r3, .L13+12
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	pci_read_config_dword
	subs	r4, r0, #0
	movge	r4, #0
	bge	.L1
.L5:
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, .L13+16
	bl	dev_err
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L12:
	ldr	r3, .L13+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	mbi_pdev
	.word	MBI_MCRX_OFFSET
	.word	MBI_MCR_OFFSET
	.word	MBI_MDR_OFFSET
	.word	.LC0
	.word	ENODEV
	.size	iosf_mbi_pci_read_mdr, .-iosf_mbi_pci_read_mdr
	.comm	mbi_pdev,4,4
	.comm	MBI_MDR_OFFSET,4,4
	.comm	MBI_MCR_OFFSET,4,4
	.comm	MBI_MCRX_OFFSET,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
