	.file	"extr_tunnel.c_tb_tunnel_alloc_pci.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"PCIe Down"
.LC1:
	.string	"PCIe Up"
	.text
	.p2align 4
	.globl	tb_tunnel_alloc_pci
	.type	tb_tunnel_alloc_pci, @function
tb_tunnel_alloc_pci:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdx
	mov	edx, DWORD PTR TB_TUNNEL_PCI[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	mov	esi, 2
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	tb_tunnel_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	eax, DWORD PTR tb_pci_activate[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rcx, r13
	mov	rsi, r14
	mov	QWORD PTR 16[r12], r14
	mov	edx, DWORD PTR TB_PCI_HOPID[rip]
	xor	r9d, r9d
	mov	rdi, rbp
	mov	DWORD PTR 24[r12], eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR 8[r12], r13
	mov	r8d, edx
	push	rax
	.cfi_def_cfa_offset 64
	call	tb_path_alloc@PLT
	pop	rcx
	.cfi_def_cfa_offset 56
	pop	rsi
	.cfi_def_cfa_offset 48
	mov	rbx, rax
	test	rax, rax
	je	.L9
	mov	rdi, rax
	call	tb_pci_init_path@PLT
	mov	rax, QWORD PTR [r12]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	r9d, r9d
	mov	rdx, QWORD PTR TB_PCI_PATH_DOWN[rip]
	mov	rcx, r14
	mov	rsi, r13
	mov	rdi, rbp
	mov	QWORD PTR [rax+rdx*8], rbx
	lea	rax, .LC1[rip]
	mov	edx, DWORD PTR TB_PCI_HOPID[rip]
	push	rax
	.cfi_def_cfa_offset 64
	mov	r8d, edx
	call	tb_path_alloc@PLT
	mov	rbx, rax
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	test	rbx, rbx
	je	.L9
	mov	rdi, rbx
	call	tb_pci_init_path@PLT
	mov	rax, QWORD PTR [r12]
	mov	rdx, QWORD PTR TB_PCI_PATH_UP[rip]
	mov	QWORD PTR [rax+rdx*8], rbx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.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
.L9:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	tb_tunnel_free@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	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	tb_tunnel_alloc_pci, .-tb_tunnel_alloc_pci
	.comm	tb_pci_activate,4,4
	.comm	TB_TUNNEL_PCI,4,4
	.comm	TB_PCI_PATH_UP,8,8
	.comm	TB_PCI_PATH_DOWN,8,8
	.comm	TB_PCI_HOPID,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_tunnel.c_tb_tunnel_alloc_pci.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"PCIe Down\000"
	.align	2
.LC1:
	.ascii	"PCIe Up\000"
	.text
	.align	2
	.global	tb_tunnel_alloc_pci
	.syntax unified
	.arm
	.fpu softvfp
	.type	tb_tunnel_alloc_pci, %function
tb_tunnel_alloc_pci:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L12
	mov	r5, r1
	mov	r6, r2
	mov	r1, #2
	ldr	r2, [r3]
	sub	sp, sp, #16
	mov	r7, r0
	bl	tb_tunnel_alloc
	subs	r4, r0, #0
	beq	.L1
	mov	r9, #0
	ldr	r3, .L12+4
	ldr	r10, .L12+8
	ldr	r1, [r3]
	ldr	r2, [r10]
	ldr	r3, .L12+12
	str	r1, [r4, #12]
	stmib	r4, {r5, r6}
	mov	r1, r6
	str	r3, [sp, #8]
	mov	r0, r7
	mov	r3, r5
	stm	sp, {r2, r9}
	bl	tb_path_alloc
	subs	r8, r0, #0
	beq	.L10
	bl	tb_pci_init_path
	ldr	r3, .L12+16
	ldr	r2, [r10]
	ldr	lr, [r4]
	ldr	r10, [r3]
	ldr	ip, .L12+20
	mov	r1, r5
	str	r8, [lr, r10, lsl #2]
	mov	r3, r6
	mov	r0, r7
	stm	sp, {r2, r9, ip}
	bl	tb_path_alloc
	subs	r5, r0, #0
	beq	.L11
	bl	tb_pci_init_path
	ldr	r2, .L12+24
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r5, [r3, r2, lsl #2]
.L1:
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, r4
	bl	tb_tunnel_free
	mov	r4, r8
	b	.L1
.L11:
	mov	r0, r4
	bl	tb_tunnel_free
	mov	r4, r5
	b	.L1
.L13:
	.align	2
.L12:
	.word	TB_TUNNEL_PCI
	.word	tb_pci_activate
	.word	TB_PCI_HOPID
	.word	.LC0
	.word	TB_PCI_PATH_DOWN
	.word	.LC1
	.word	TB_PCI_PATH_UP
	.size	tb_tunnel_alloc_pci, .-tb_tunnel_alloc_pci
	.comm	tb_pci_activate,4,4
	.comm	TB_TUNNEL_PCI,4,4
	.comm	TB_PCI_PATH_UP,4,4
	.comm	TB_PCI_PATH_DOWN,4,4
	.comm	TB_PCI_HOPID,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
