	.file	"extr_pci_pci.c_pcib_get_io_decode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pcib_get_io_decode, @function
pcib_get_io_decode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, DWORD PTR PCIR_IOBASEL_1[rip]
	mov	edx, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	r12d, DWORD PTR 16[rdi]
	mov	rbx, rdi
	mov	edi, r12d
	call	pci_read_config@PLT
	mov	ebp, eax
	and	eax, DWORD PTR PCIM_BRIO_MASK[rip]
	cmp	eax, DWORD PTR PCIM_BRIO_32[rip]
	je	.L8
	mov	esi, ebp
	xor	edi, edi
	call	PCI_PPBIOBASE@PLT
	mov	QWORD PTR 8[rbx], rax
.L3:
	mov	esi, DWORD PTR PCIR_IOLIMITL_1[rip]
	mov	edx, 1
	mov	edi, r12d
	call	pci_read_config@PLT
	mov	ebp, eax
	mov	eax, DWORD PTR PCIM_BRIO_MASK[rip]
	and	eax, ebp
	cmp	eax, DWORD PTR PCIM_BRIO_32[rip]
	je	.L9
	mov	esi, ebp
	xor	edi, edi
	call	PCI_PPBIOLIMIT@PLT
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR PCIR_IOBASEH_1[rip]
	mov	edx, 2
	mov	edi, r12d
	call	pci_read_config@PLT
	mov	esi, ebp
	mov	edi, eax
	call	PCI_PPBIOBASE@PLT
	mov	QWORD PTR 8[rbx], rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR PCIR_IOLIMITH_1[rip]
	mov	edi, r12d
	mov	edx, 2
	call	pci_read_config@PLT
	mov	esi, ebp
	mov	edi, eax
	call	PCI_PPBIOLIMIT@PLT
	mov	QWORD PTR [rbx], rax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pcib_get_io_decode, .-pcib_get_io_decode
	.comm	PCIR_IOLIMITL_1,4,4
	.comm	PCIR_IOLIMITH_1,4,4
	.comm	PCIR_IOBASEL_1,4,4
	.comm	PCIR_IOBASEH_1,4,4
	.comm	PCIM_BRIO_MASK,4,4
	.comm	PCIM_BRIO_32,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_pci_pci.c_pcib_get_io_decode.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcib_get_io_decode, %function
pcib_get_io_decode:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L10
	ldr	r6, [r0, #8]
	mov	r2, #1
	ldr	r1, [r3]
	mov	r4, r0
	mov	r0, r6
	bl	pci_read_config
	ldr	r8, .L10+4
	ldr	r7, .L10+8
	ldr	r3, [r8]
	ldr	r2, [r7]
	and	r3, r3, r0
	cmp	r3, r2
	mov	r5, r0
	beq	.L8
	mov	r1, r0
	mov	r0, #0
	bl	PCI_PPBIOBASE
	str	r0, [r4, #4]
.L3:
	ldr	r3, .L10+12
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r6
	bl	pci_read_config
	ldr	r3, [r8]
	ldr	r2, [r7]
	and	r3, r3, r0
	cmp	r3, r2
	mov	r5, r0
	beq	.L9
	mov	r1, r0
	mov	r0, #0
	bl	PCI_PPBIOLIMIT
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L10+16
	mov	r2, #2
	ldr	r1, [r3]
	mov	r0, r6
	bl	pci_read_config
	mov	r1, r5
	bl	PCI_PPBIOBASE
	str	r0, [r4, #4]
	b	.L3
.L9:
	ldr	r3, .L10+20
	mov	r2, #2
	ldr	r1, [r3]
	mov	r0, r6
	bl	pci_read_config
	mov	r1, r5
	bl	PCI_PPBIOLIMIT
	str	r0, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	PCIR_IOBASEL_1
	.word	PCIM_BRIO_MASK
	.word	PCIM_BRIO_32
	.word	PCIR_IOLIMITL_1
	.word	PCIR_IOBASEH_1
	.word	PCIR_IOLIMITH_1
	.size	pcib_get_io_decode, .-pcib_get_io_decode
	.comm	PCIR_IOLIMITL_1,4,4
	.comm	PCIR_IOLIMITH_1,4,4
	.comm	PCIR_IOBASEL_1,4,4
	.comm	PCIR_IOBASEH_1,4,4
	.comm	PCIM_BRIO_MASK,4,4
	.comm	PCIM_BRIO_32,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
