	.file	"extr_chip.c_force_logical_link_state_down.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"logical state forced to LINK_DOWN\n"
	.text
	.p2align 4
	.type	force_logical_link_state_down, @function
force_logical_link_state_down:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	edx, 1
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbp, QWORD PTR [rdi]
	mov	esi, DWORD PTR DC_LCB_CFG_TX_FIFOS_RESET[rip]
	mov	rdi, rbp
	call	write_csr@PLT
	mov	edx, DWORD PTR DC_LCB_CFG_IGNORE_LOST_RCLK_EN_SMASK[rip]
	mov	esi, DWORD PTR DC_LCB_CFG_IGNORE_LOST_RCLK[rip]
	mov	rdi, rbp
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_LANE_WIDTH[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_REINIT_AS_SLAVE[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_CNT_FOR_SKIP_STALL[rip]
	mov	rdi, rbp
	mov	edx, 272
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_LOOPBACK[rip]
	mov	rdi, rbp
	mov	edx, 2
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_TX_FIFOS_RESET[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_TX_FIFOS_RESET[rip]
	mov	rdi, rbp
	call	read_csr@PLT
	mov	edi, 3
	call	udelay@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_ALLOW_LINK_UP[rip]
	mov	rdi, rbp
	mov	edx, 1
	call	write_csr@PLT
	mov	rcx, QWORD PTR DC_LCB_CFG_RUN_EN_SHIFT[rip]
	mov	edx, 1
	mov	rdi, rbp
	mov	esi, DWORD PTR DC_LCB_CFG_RUN[rip]
	sal	rdx, cl
	call	write_csr@PLT
	mov	rdi, rbp
	mov	esi, 100
	call	wait_link_transfer_active@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_TX_FIFOS_RESET[rip]
	mov	rdi, rbp
	mov	edx, 1
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_ALLOW_LINK_UP[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	write_csr@PLT
	mov	esi, DWORD PTR DC_LCB_CFG_IGNORE_LOST_RCLK[rip]
	mov	rdi, rbp
	xor	edx, edx
	call	write_csr@PLT
	mov	rdi, QWORD PTR [rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	lea	rsi, .LC0[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	dd_dev_info@PLT
	.cfi_endproc
.LFE0:
	.size	force_logical_link_state_down, .-force_logical_link_state_down
	.comm	DC_LCB_CFG_TX_FIFOS_RESET,4,4
	.comm	DC_LCB_CFG_RUN_EN_SHIFT,8,8
	.comm	DC_LCB_CFG_RUN,4,4
	.comm	DC_LCB_CFG_REINIT_AS_SLAVE,4,4
	.comm	DC_LCB_CFG_LOOPBACK,4,4
	.comm	DC_LCB_CFG_LANE_WIDTH,4,4
	.comm	DC_LCB_CFG_IGNORE_LOST_RCLK_EN_SMASK,4,4
	.comm	DC_LCB_CFG_IGNORE_LOST_RCLK,4,4
	.comm	DC_LCB_CFG_CNT_FOR_SKIP_STALL,4,4
	.comm	DC_LCB_CFG_ALLOW_LINK_UP,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_chip.c_force_logical_link_state_down.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"logical state forced to LINK_DOWN\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	force_logical_link_state_down, %function
force_logical_link_state_down:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, #1
	mov	r5, r0
	ldr	r4, [r0]
	ldr	r6, .L4
	mov	r2, r9
	ldr	r1, [r6]
	mov	r0, r4
	bl	write_csr
	ldr	r7, .L4+4
	ldr	r3, .L4+8
	ldr	r1, [r7]
	ldr	r2, [r3]
	mov	r0, r4
	bl	write_csr
	ldr	r3, .L4+12
	mov	r0, r4
	ldr	r1, [r3]
	mov	r2, #0
	bl	write_csr
	ldr	r3, .L4+16
	mov	r0, r4
	ldr	r1, [r3]
	mov	r2, #0
	bl	write_csr
	ldr	r3, .L4+20
	mov	r0, r4
	ldr	r1, [r3]
	mov	r2, #272
	bl	write_csr
	ldr	r3, .L4+24
	mov	r0, r4
	ldr	r1, [r3]
	mov	r2, #2
	bl	write_csr
	mov	r2, #0
	ldr	r1, [r6]
	mov	r0, r4
	bl	write_csr
	ldr	r8, .L4+28
	ldr	r1, [r6]
	mov	r0, r4
	bl	read_csr
	mov	r0, #3
	bl	udelay
	mov	r2, r9
	ldr	r1, [r8]
	mov	r0, r4
	bl	write_csr
	ldr	r2, .L4+32
	ldr	r3, .L4+36
	ldr	r2, [r2]
	ldr	r1, [r3]
	lsl	r2, r9, r2
	mov	r0, r4
	bl	write_csr
	mov	r0, r4
	mov	r1, #100
	bl	wait_link_transfer_active
	mov	r2, r9
	ldr	r1, [r6]
	mov	r0, r4
	bl	write_csr
	ldr	r1, [r8]
	mov	r0, r4
	mov	r2, #0
	bl	write_csr
	ldr	r1, [r7]
	mov	r0, r4
	mov	r2, #0
	bl	write_csr
	ldr	r0, [r5]
	ldr	r1, .L4+40
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	dd_dev_info
.L5:
	.align	2
.L4:
	.word	DC_LCB_CFG_TX_FIFOS_RESET
	.word	DC_LCB_CFG_IGNORE_LOST_RCLK
	.word	DC_LCB_CFG_IGNORE_LOST_RCLK_EN_SMASK
	.word	DC_LCB_CFG_LANE_WIDTH
	.word	DC_LCB_CFG_REINIT_AS_SLAVE
	.word	DC_LCB_CFG_CNT_FOR_SKIP_STALL
	.word	DC_LCB_CFG_LOOPBACK
	.word	DC_LCB_CFG_ALLOW_LINK_UP
	.word	DC_LCB_CFG_RUN_EN_SHIFT
	.word	DC_LCB_CFG_RUN
	.word	.LC0
	.size	force_logical_link_state_down, .-force_logical_link_state_down
	.comm	DC_LCB_CFG_TX_FIFOS_RESET,4,4
	.comm	DC_LCB_CFG_RUN_EN_SHIFT,8,8
	.comm	DC_LCB_CFG_RUN,4,4
	.comm	DC_LCB_CFG_REINIT_AS_SLAVE,4,4
	.comm	DC_LCB_CFG_LOOPBACK,4,4
	.comm	DC_LCB_CFG_LANE_WIDTH,4,4
	.comm	DC_LCB_CFG_IGNORE_LOST_RCLK_EN_SMASK,4,4
	.comm	DC_LCB_CFG_IGNORE_LOST_RCLK,4,4
	.comm	DC_LCB_CFG_CNT_FOR_SKIP_STALL,4,4
	.comm	DC_LCB_CFG_ALLOW_LINK_UP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
