	.file	"extr_lmc_main.c_lmc_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"lmc_reset in"
.LC1:
	.string	"lmc_reset out"
	.text
	.p2align 4
	.type	lmc_reset, @function
lmc_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR [rdi]
	lea	rsi, .LC0[rip]
	call	lmc_trace@PLT
	mov	ecx, DWORD PTR 20[rbx]
	or	ecx, DWORD PTR LMC_MII16_FIFO_RESET[rip]
	xor	esi, esi
	mov	DWORD PTR 20[rbx], ecx
	mov	rdi, rbx
	mov	edx, 16
	call	lmc_mii_writereg@PLT
	mov	ecx, DWORD PTR LMC_MII16_FIFO_RESET[rip]
	mov	rdi, rbx
	xor	esi, esi
	mov	edx, 16
	not	ecx
	and	ecx, DWORD PTR 20[rbx]
	mov	DWORD PTR 20[rbx], ecx
	call	lmc_mii_writereg@PLT
	mov	esi, DWORD PTR LMC_GEP_RESET[rip]
	mov	rdi, rbx
	call	lmc_gpio_mkoutput@PLT
	mov	edx, DWORD PTR LMC_GEP_RESET[rip]
	mov	esi, DWORD PTR csr_gp[rip]
	mov	rdi, rbx
	not	edx
	and	edx, DWORD PTR 16[rbx]
	mov	DWORD PTR 16[rbx], edx
	call	LMC_CSR_WRITE@PLT
	mov	edi, 50
	call	udelay@PLT
	mov	esi, DWORD PTR LMC_GEP_RESET[rip]
	mov	rdi, rbx
	call	lmc_gpio_mkinput@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	rdi, rbx
	call	[QWORD PTR [rax]]
	add	DWORD PTR 4[rbx], 1
	mov	edi, DWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	jmp	lmc_trace@PLT
	.cfi_endproc
.LFE0:
	.size	lmc_reset, .-lmc_reset
	.comm	csr_gp,4,4
	.comm	LMC_MII16_FIFO_RESET,4,4
	.comm	LMC_GEP_RESET,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_lmc_main.c_lmc_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"lmc_reset in\000"
	.align	2
.LC1:
	.ascii	"lmc_reset out\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lmc_reset, %function
lmc_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L4
	ldr	r1, .L4+4
	ldr	r0, [r0]
	bl	lmc_trace
	ldr	r3, [r4, #16]
	ldr	r2, [r5]
	mov	r0, r4
	orr	r3, r3, r2
	str	r3, [r4, #16]
	mov	r2, #16
	mov	r1, #0
	bl	lmc_mii_writereg
	ldr	r2, [r5]
	ldr	r3, [r4, #16]
	ldr	r5, .L4+8
	bic	r3, r3, r2
	str	r3, [r4, #16]
	mov	r2, #16
	mov	r0, r4
	mov	r1, #0
	bl	lmc_mii_writereg
	ldr	r1, [r5]
	mov	r0, r4
	bl	lmc_gpio_mkoutput
	ldr	r2, [r4, #12]
	ldr	r1, [r5]
	ldr	r3, .L4+12
	bic	r2, r2, r1
	str	r2, [r4, #12]
	ldr	r1, [r3]
	mov	r0, r4
	bl	LMC_CSR_WRITE
	mov	r0, #50
	bl	udelay
	ldr	r1, [r5]
	mov	r0, r4
	bl	lmc_gpio_mkinput
	ldr	r3, [r4, #8]
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	ldm	r4, {r0, r3}
	add	r3, r3, #1
	str	r3, [r4, #4]
	ldr	r1, .L4+16
	pop	{r4, r5, r6, lr}
	b	lmc_trace
.L5:
	.align	2
.L4:
	.word	LMC_MII16_FIFO_RESET
	.word	.LC0
	.word	LMC_GEP_RESET
	.word	csr_gp
	.word	.LC1
	.size	lmc_reset, .-lmc_reset
	.comm	csr_gp,4,4
	.comm	LMC_MII16_FIFO_RESET,4,4
	.comm	LMC_GEP_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
