	.file	"extr_mv_pci.c_mv_pcib_route_interrupt.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not route pin %d for device %d.%d\n"
	.text
	.p2align 4
	.type	mv_pcib_route_interrupt, @function
mv_pcib_route_interrupt:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, edi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r15, 4[rsp]
	call	device_get_softc@PLT
	mov	esi, 4
	mov	rdi, r15
	mov	DWORD PTR 8[rsp], r12d
	mov	r14, rax
	call	bzero@PLT
	mov	edi, ebp
	call	pci_get_bus@PLT
	mov	ecx, DWORD PTR OFW_PCI_PHYS_HI_BUSSHIFT[rip]
	mov	edi, ebp
	sal	eax, cl
	mov	ebx, eax
	call	pci_get_slot@PLT
	mov	ecx, DWORD PTR OFW_PCI_PHYS_HI_DEVICESHIFT[rip]
	mov	edi, ebp
	sal	eax, cl
	or	ebx, eax
	call	pci_get_function@PLT
	mov	ecx, DWORD PTR OFW_PCI_PHYS_HI_FUNCTIONSHIFT[rip]
	mov	edi, ebp
	sal	eax, cl
	or	eax, ebx
	mov	DWORD PTR 4[rsp], eax
	call	ofw_bus_get_node@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	rdx, r15
	mov	rsi, r14
	mov	edi, eax
	lea	rax, 20[rsp]
	mov	r9d, 4
	mov	ecx, 4
	push	rax
	.cfi_def_cfa_offset 128
	push	16
	.cfi_def_cfa_offset 136
	lea	rbx, 40[rsp]
	push	rbx
	.cfi_def_cfa_offset 144
	lea	r8, 40[rsp]
	call	ofw_bus_lookup_imap@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 112
	test	eax, eax
	jg	.L8
	cmp	r12d, 4
	jle	.L9
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L9:
	.cfi_restore_state
	mov	edi, ebp
	call	pci_get_function@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	pci_get_slot@PLT
	mov	edx, r12d
	mov	r8d, ebx
	mov	edi, r13d
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	call	device_printf@PLT
	mov	r12d, DWORD PTR PCI_INVALID_IRQ[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 12[rsp]
	mov	rcx, rbx
	mov	edx, eax
	mov	edi, ebp
	call	ofw_bus_map_intr@PLT
	mov	r12d, eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mv_pcib_route_interrupt, .-mv_pcib_route_interrupt
	.comm	PCI_INVALID_IRQ,4,4
	.comm	OFW_PCI_PHYS_HI_FUNCTIONSHIFT,4,4
	.comm	OFW_PCI_PHYS_HI_DEVICESHIFT,4,4
	.comm	OFW_PCI_PHYS_HI_BUSSHIFT,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_mv_pci.c_mv_pcib_route_interrupt.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not route pin %d for device %d.%d\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mv_pcib_route_interrupt, %function
mv_pcib_route_interrupt:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L11
	sub	sp, sp, #60
	mov	r6, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	mov	r7, r0
	bl	device_get_softc
	mov	r1, #4
	mov	r9, r0
	add	r0, sp, #24
	str	r5, [sp, #28]
	bl	bzero
	mov	r0, r6
	bl	pci_get_bus
	mov	r4, r0
	ldr	r3, .L11+4
	mov	r0, r6
	ldr	r3, [r3]
	add	r8, sp, #36
	lsl	r4, r4, r3
	bl	pci_get_slot
	mov	r2, r0
	ldr	r3, .L11+8
	mov	r0, r6
	ldr	r3, [r3]
	orr	r4, r4, r2, lsl r3
	bl	pci_get_function
	mov	r2, r0
	ldr	r3, .L11+12
	mov	r0, r6
	ldr	r3, [r3]
	orr	r4, r4, r2, lsl r3
	str	r4, [sp, #24]
	bl	ofw_bus_get_node
	mov	ip, #16
	mov	r3, #4
	add	lr, sp, #32
	str	ip, [sp, #12]
	add	ip, sp, #28
	add	r2, sp, #24
	mov	r1, r9
	str	r3, [sp, #4]
	str	lr, [sp, #16]
	str	r8, [sp, #8]
	str	ip, [sp]
	bl	ofw_bus_lookup_imap
	subs	r2, r0, #0
	bgt	.L8
	cmp	r5, #4
	movgt	r0, r5
	ble	.L9
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	mov	r0, r6
	bl	pci_get_slot
	mov	r4, r0
	mov	r0, r6
	bl	pci_get_function
	mov	r3, r4
	str	r0, [sp]
	mov	r2, r5
	mov	r0, r7
	ldr	r1, .L11+16
	bl	device_printf
	ldr	r3, .L11+20
	ldr	r0, [r3]
	b	.L1
.L8:
	mov	r3, r8
	mov	r0, r6
	ldr	r1, [sp, #32]
	bl	ofw_bus_map_intr
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	OFW_PCI_PHYS_HI_BUSSHIFT
	.word	OFW_PCI_PHYS_HI_DEVICESHIFT
	.word	OFW_PCI_PHYS_HI_FUNCTIONSHIFT
	.word	.LC0
	.word	PCI_INVALID_IRQ
	.size	mv_pcib_route_interrupt, .-mv_pcib_route_interrupt
	.comm	PCI_INVALID_IRQ,4,4
	.comm	OFW_PCI_PHYS_HI_FUNCTIONSHIFT,4,4
	.comm	OFW_PCI_PHYS_HI_DEVICESHIFT,4,4
	.comm	OFW_PCI_PHYS_HI_BUSSHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
