	.file	"extr_setup-bus.c_pci_setup_bridge_io.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"PCI bridge to [bus %02x-%02x]\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"  bridge window %pR\n"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"  bridge window [io  disabled]\n"
	.text
	.p2align 4
	.type	pci_setup_bridge_io, @function
pci_setup_bridge_io:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rbp, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rdi, rbp
	call	pci_is_enabled@PLT
	test	rax, rax
	je	.L9
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.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	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR 12[rbx]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	dev_info@PLT
	mov	rax, QWORD PTR [rbx]
	lea	rsi, 16[rsp]
	mov	rdi, rbp
	mov	r13, QWORD PTR [rax]
	mov	rdx, r13
	call	pcibios_resource_to_bus@PLT
	mov	eax, DWORD PTR 0[r13]
	and	eax, DWORD PTR IORESOURCE_IO[rip]
	mov	r12d, eax
	je	.L4
	mov	esi, DWORD PTR PCI_IO_BASE[rip]
	lea	rdx, 12[rsp]
	mov	rdi, rbp
	call	pci_read_config_dword@PLT
	mov	eax, DWORD PTR 20[rsp]
	mov	edx, DWORD PTR 12[rsp]
	mov	rdi, rbp
	mov	r12d, DWORD PTR 16[rsp]
	lea	rsi, .LC1[rip]
	mov	ecx, eax
	xor	dx, dx
	xor	ax, ax
	and	ecx, 61440
	or	edx, ecx
	mov	ecx, r12d
	sar	r12d, 16
	sar	ecx, 8
	or	r12d, eax
	xor	eax, eax
	and	ecx, 240
	or	edx, ecx
	mov	DWORD PTR 12[rsp], edx
	mov	rdx, r13
	call	dev_info@PLT
.L5:
	mov	esi, DWORD PTR PCI_IO_BASE_UPPER16[rip]
	mov	rdi, rbp
	mov	edx, 65535
	call	pci_write_config_dword@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR PCI_IO_BASE[rip]
	mov	rdi, rbp
	call	pci_write_config_dword@PLT
	mov	esi, DWORD PTR PCI_IO_BASE_UPPER16[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	pci_write_config_dword@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 240
	call	dev_info@PLT
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	pci_setup_bridge_io, .-pci_setup_bridge_io
	.comm	PCI_IO_BASE_UPPER16,4,4
	.comm	PCI_IO_BASE,4,4
	.comm	IORESOURCE_IO,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_setup-bus.c_pci_setup_bridge_io.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PCI bridge to [bus %02x-%02x]\012\000"
	.align	2
.LC1:
	.ascii	"  bridge window %pR\012\000"
	.align	2
.LC2:
	.ascii	"  bridge window [io  disabled]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pci_setup_bridge_io, %function
pci_setup_bridge_io:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r5, [r0, #12]
	ldr	r3, .L11
	sub	sp, sp, #20
	mov	r4, r0
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	pci_is_enabled
	cmp	r0, #0
	beq	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	ldr	r3, [r4, #4]
	ldr	r2, [r4, #8]
	ldr	r1, .L11+4
	mov	r0, r5
	bl	dev_info
	ldr	r3, [r4]
	mov	r0, r5
	ldr	r7, [r3]
	add	r1, sp, #4
	mov	r2, r7
	bl	pcibios_resource_to_bus
	ldr	r2, .L11+8
	ldr	r3, [r7]
	ldr	r4, [r2]
	ands	r4, r3, r4
	beq	.L4
	ldr	r6, .L11+12
	mov	r2, sp
	ldr	r1, [r6]
	mov	r0, r5
	bl	pci_read_config_dword
	ldr	r1, [sp, #8]
	ldr	r4, [sp, #4]
	ldr	ip, [sp]
	ldr	r3, .L11+16
	and	r2, r1, #61440
	asr	r0, r4, #8
	and	ip, ip, r3
	and	r0, r0, #240
	orr	ip, ip, r2
	orr	ip, ip, r0
	and	r3, r3, r1
	mov	r2, r7
	mov	r0, r5
	ldr	r1, .L11+20
	str	ip, [sp]
	orr	r4, r3, r4, asr #16
	bl	dev_info
.L5:
	ldr	r7, .L11+24
	mov	r0, r5
	ldr	r1, [r7]
	ldr	r2, .L11+28
	bl	pci_write_config_dword
	ldr	r1, [r6]
	ldr	r2, [sp]
	mov	r0, r5
	bl	pci_write_config_dword
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [r7]
	bl	pci_write_config_dword
	b	.L1
.L4:
	mov	r3, #240
	mov	r0, r5
	ldr	r1, .L11+32
	str	r3, [sp]
	ldr	r6, .L11+12
	bl	dev_info
	b	.L5
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC0
	.word	IORESOURCE_IO
	.word	PCI_IO_BASE
	.word	-65536
	.word	.LC1
	.word	PCI_IO_BASE_UPPER16
	.word	65535
	.word	.LC2
	.size	pci_setup_bridge_io, .-pci_setup_bridge_io
	.comm	PCI_IO_BASE_UPPER16,4,4
	.comm	PCI_IO_BASE,4,4
	.comm	IORESOURCE_IO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
