	.file	"extr_host_pci.c_bcma_host_pci_switch_core.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Switched to core: 0x%X\n"
	.text
	.p2align 4
	.type	bcma_host_pci_switch_core, @function
bcma_host_pci_switch_core:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 8[rdi]
	mov	ebp, DWORD PTR BCMA_PCI_BAR0_WIN2[rip]
	cmp	QWORD PTR 16[rax], 0
	je	.L3
	mov	ebp, DWORD PTR BCMA_PCIE2_BAR0_WIN2[rip]
.L3:
	mov	edx, DWORD PTR 20[rbx]
	mov	edi, DWORD PTR 8[rax]
	mov	esi, DWORD PTR BCMA_PCI_BAR0_WIN[rip]
	call	pci_write_config_dword@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, ebp
	mov	edi, DWORD PTR 8[rax]
	call	pci_write_config_dword@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR [rbx]
	lea	rsi, .LC0[rip]
	mov	QWORD PTR [rdi], rbx
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	bcma_debug@PLT
	.cfi_endproc
.LFE0:
	.size	bcma_host_pci_switch_core, .-bcma_host_pci_switch_core
	.comm	BCMA_PCI_BAR0_WIN2,4,4
	.comm	BCMA_PCI_BAR0_WIN,4,4
	.comm	BCMA_PCIE2_BAR0_WIN2,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_host_pci.c_bcma_host_pci_switch_core.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Switched to core: 0x%X\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcma_host_pci_switch_core, %function
bcma_host_pci_switch_core:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r0, #4]
	ldr	r2, [r3, #8]
	ldr	r0, [r3, #4]
	cmp	r2, #0
	ldrne	r2, .L6
	ldreq	r2, .L6+4
	ldr	r5, [r2]
	ldr	r2, .L6+8
	ldr	r1, [r2]
	ldr	r2, [r4, #12]
	bl	pci_write_config_dword
	ldr	r3, [r4, #4]
	mov	r1, r5
	ldr	r2, [r4, #8]
	ldr	r0, [r3, #4]
	bl	pci_write_config_dword
	ldr	r0, [r4, #4]
	ldr	r2, [r4]
	ldr	r1, .L6+12
	str	r4, [r0]
	pop	{r4, r5, r6, lr}
	b	bcma_debug
.L7:
	.align	2
.L6:
	.word	BCMA_PCIE2_BAR0_WIN2
	.word	BCMA_PCI_BAR0_WIN2
	.word	BCMA_PCI_BAR0_WIN
	.word	.LC0
	.size	bcma_host_pci_switch_core, .-bcma_host_pci_switch_core
	.comm	BCMA_PCI_BAR0_WIN2,4,4
	.comm	BCMA_PCI_BAR0_WIN,4,4
	.comm	BCMA_PCIE2_BAR0_WIN2,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
