	.file	"extr_rio.c_rio_std_route_clr_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rio_std_route_clr_table, @function
rio_std_route_clr_table:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR RIO_GLOBAL_TABLE[rip], rcx
	mov	DWORD PTR 16[rsp], 255
	je	.L2
.L6:
	mov	edi, 10
	call	udelay@PLT
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	ecx, DWORD PTR RIO_PEF_CAR[rip]
	mov	rbx, rdi
	mov	rbp, rsi
	mov	r12d, edx
	lea	r8, 20[rsp]
	mov	r14d, DWORD PTR RIO_INVALID_ROUTE[rip]
	call	rio_mport_read_config_32@PLT
	cmp	QWORD PTR [rbx], 0
	jne	.L3
	mov	edx, DWORD PTR 16[rsp]
.L4:
	mov	DWORD PTR 12[rsp], 1
	mov	r13d, DWORD PTR 20[rsp]
	and	r13d, DWORD PTR RIO_PEF_EXT_RT[rip]
	je	.L5
	mov	eax, DWORD PTR RIO_INVALID_ROUTE[rip]
	mov	DWORD PTR 12[rsp], 4
	mov	r13d, -2147483648
	mov	r14d, eax
	mov	ecx, eax
	sal	r14d, 24
	sal	ecx, 16
	or	r14d, ecx
	or	r14d, eax
	sal	eax, 8
	or	r14d, eax
.L5:
	test	edx, edx
	js	.L6
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR RIO_STD_RTE_CONF_DESTID_SEL_CSR[rip]
	mov	r8d, r13d
	mov	edx, r12d
	mov	rsi, rbp
	or	r8d, r15d
	mov	rdi, rbx
	call	rio_mport_write_config_32@PLT
	mov	r8d, r14d
	mov	edx, r12d
	mov	rsi, rbp
	mov	ecx, DWORD PTR RIO_STD_RTE_CONF_PORT_SEL_CSR[rip]
	mov	rdi, rbx
	call	rio_mport_write_config_32@PLT
	add	r15d, DWORD PTR 12[rsp]
	cmp	DWORD PTR 16[rsp], r15d
	jge	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	ecx, DWORD PTR RIO_SWITCH_RT_LIMIT[rip]
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, rbx
	lea	r8, 16[rsp]
	call	rio_mport_read_config_32@PLT
	mov	edx, DWORD PTR 16[rsp]
	and	edx, DWORD PTR RIO_RT_MAX_DESTID[rip]
	mov	DWORD PTR 16[rsp], edx
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rio_std_route_clr_table, .-rio_std_route_clr_table
	.comm	RIO_SWITCH_RT_LIMIT,4,4
	.comm	RIO_STD_RTE_CONF_PORT_SEL_CSR,4,4
	.comm	RIO_STD_RTE_CONF_DESTID_SEL_CSR,4,4
	.comm	RIO_RT_MAX_DESTID,4,4
	.comm	RIO_PEF_EXT_RT,4,4
	.comm	RIO_PEF_CAR,4,4
	.comm	RIO_INVALID_ROUTE,4,4
	.comm	RIO_GLOBAL_TABLE,8,8
	.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_rio.c_rio_std_route_clr_table.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rio_std_route_clr_table, %function
rio_std_route_clr_table:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #255
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	lr, .L15
	ldr	r4, .L15+4
	ldr	lr, [lr]
	sub	sp, sp, #28
	cmp	lr, r3
	ldr	r4, [r4]
	str	r4, [sp, #20]
	mov	r4,#0
	str	ip, [sp, #12]
	beq	.L2
.L6:
	mov	r0, #10
	bl	udelay
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r5, r0
	ldr	r3, .L15+8
	add	ip, sp, #16
	ldr	r4, .L15+12
	ldr	r3, [r3]
	str	ip, [sp]
	mov	r6, r1
	mov	r7, r2
	ldr	r9, [r4]
	bl	rio_mport_read_config_32
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L3
	ldr	r2, [sp, #12]
.L4:
	ldr	r3, .L15+16
	ldr	r8, [sp, #16]
	ldr	r3, [r3]
	ands	r8, r8, r3
	ldrne	r3, [r4]
	movne	r8, #-2147483648
	lslne	r9, r3, #16
	orrne	r9, r9, r3, lsl #24
	orrne	r9, r9, r3
	movne	r10, #4
	moveq	r10, #1
	orrne	r9, r9, r3, lsl #8
	cmp	r2, #0
	blt	.L6
	mov	r4, #0
	ldr	fp, .L15+20
.L7:
	orr	r3, r8, r4
	mov	r2, r7
	mov	r1, r6
	str	r3, [sp]
	mov	r0, r5
	ldr	r3, [fp]
	bl	rio_mport_write_config_32
	ldr	r3, .L15+24
	str	r9, [sp]
	ldr	r3, [r3]
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	rio_mport_write_config_32
	ldr	r3, [sp, #12]
	add	r4, r4, r10
	cmp	r3, r4
	bge	.L7
	b	.L6
.L3:
	ldr	r3, .L15+28
	add	r2, sp, #12
	ldr	r3, [r3]
	mov	r1, r6
	str	r2, [sp]
	mov	r0, r5
	mov	r2, r7
	bl	rio_mport_read_config_32
	ldr	r3, .L15+32
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	and	r2, r2, r3
	str	r2, [sp, #12]
	b	.L4
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	RIO_GLOBAL_TABLE
	.word	.LC0
	.word	RIO_PEF_CAR
	.word	RIO_INVALID_ROUTE
	.word	RIO_PEF_EXT_RT
	.word	RIO_STD_RTE_CONF_DESTID_SEL_CSR
	.word	RIO_STD_RTE_CONF_PORT_SEL_CSR
	.word	RIO_SWITCH_RT_LIMIT
	.word	RIO_RT_MAX_DESTID
	.size	rio_std_route_clr_table, .-rio_std_route_clr_table
	.comm	RIO_SWITCH_RT_LIMIT,4,4
	.comm	RIO_STD_RTE_CONF_PORT_SEL_CSR,4,4
	.comm	RIO_STD_RTE_CONF_DESTID_SEL_CSR,4,4
	.comm	RIO_RT_MAX_DESTID,4,4
	.comm	RIO_PEF_EXT_RT,4,4
	.comm	RIO_PEF_CAR,4,4
	.comm	RIO_INVALID_ROUTE,4,4
	.comm	RIO_GLOBAL_TABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
