	.file	"extr_fec_main.c_fec_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Graceful transmit stop did not complete!\n"
	.text
	.p2align 4
	.type	fec_stop, @function
fec_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rdi, QWORD PTR FEC_R_CNTRL[rip]
	mov	rbx, rax
	mov	rax, QWORD PTR 32[rax]
	add	rdi, QWORD PTR 16[rbx]
	mov	r13, QWORD PTR [rax]
	call	readl@PLT
	cmp	QWORD PTR 24[rbx], 0
	mov	r12d, eax
	jne	.L21
.L3:
	mov	rsi, QWORD PTR 16[rbx]
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR FEC_WOL_FLAG_SLEEP_ON[rip], eax
	jne	.L5
	mov	eax, DWORD PTR 4[rbx]
	add	rsi, QWORD PTR FEC_ECNTRL[rip]
	test	DWORD PTR FEC_QUIRK_HAS_AVB[rip], eax
	jne	.L22
	mov	edi, 1
	call	writel@PLT
	mov	edi, 10
	call	udelay@PLT
.L7:
	mov	edi, DWORD PTR FEC_DEFAULT_IMASK[rip]
	mov	rsi, QWORD PTR FEC_IMASK[rip]
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
.L8:
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR FEC_MII_SPEED[rip]
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	DWORD PTR FEC_QUIRK_ENET_MAC[rip], eax
	je	.L1
	mov	eax, DWORD PTR [rbx]
	test	DWORD PTR FEC_WOL_FLAG_SLEEP_ON[rip], eax
	je	.L23
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	xor	edi, edi
	call	writel@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	add	rsi, QWORD PTR FEC_IMASK[rip]
	mov	edi, DWORD PTR FEC_DEFAULT_IMASK[rip]
	or	edi, DWORD PTR FEC_ENET_WAKEUP[rip]
	call	writel@PLT
	mov	rdi, QWORD PTR FEC_ECNTRL[rip]
	add	rdi, QWORD PTR 16[rbx]
	call	readl@PLT
	mov	edi, DWORD PTR FEC_ECR_MAGICEN[rip]
	or	edi, DWORD PTR FEC_ECR_SLEEP[rip]
	mov	rsi, QWORD PTR FEC_ECNTRL[rip]
	or	edi, eax
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	test	r13, r13
	je	.L8
	mov	rax, QWORD PTR 0[r13]
	test	rax, rax
	je	.L8
	mov	edi, 1
	call	rax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rsi, QWORD PTR FEC_X_CNTRL[rip]
	mov	edi, 1
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	edi, 10
	call	udelay@PLT
	mov	rdi, QWORD PTR FEC_IEVENT[rip]
	add	rdi, QWORD PTR 16[rbx]
	call	readl@PLT
	test	DWORD PTR FEC_ENET_GRA[rip], eax
	jne	.L3
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	netdev_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rsi, QWORD PTR FEC_ECNTRL[rip]
	mov	edi, 2
	add	rsi, QWORD PTR 16[rbx]
	call	writel@PLT
	mov	rsi, QWORD PTR FEC_R_CNTRL[rip]
	mov	edi, r12d
	add	rsi, QWORD PTR 16[rbx]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	and	edi, 256
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.cfi_endproc
.LFE0:
	.size	fec_stop, .-fec_stop
	.comm	FEC_X_CNTRL,8,8
	.comm	FEC_WOL_FLAG_SLEEP_ON,4,4
	.comm	FEC_R_CNTRL,8,8
	.comm	FEC_QUIRK_HAS_AVB,4,4
	.comm	FEC_QUIRK_ENET_MAC,4,4
	.comm	FEC_MII_SPEED,8,8
	.comm	FEC_IMASK,8,8
	.comm	FEC_IEVENT,8,8
	.comm	FEC_ENET_WAKEUP,4,4
	.comm	FEC_ENET_GRA,4,4
	.comm	FEC_ECR_SLEEP,4,4
	.comm	FEC_ECR_MAGICEN,4,4
	.comm	FEC_ECNTRL,8,8
	.comm	FEC_DEFAULT_IMASK,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_fec_main.c_fec_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Graceful transmit stop did not complete!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fec_stop, %function
fec_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	bl	netdev_priv
	mov	r4, r0
	ldr	r7, .L23
	ldr	r0, [r0, #12]
	ldr	r2, [r7]
	ldr	r3, [r4, #20]
	add	r0, r0, r2
	ldr	r8, [r3]
	bl	readl
	ldr	r3, [r4, #16]
	mov	r5, r0
	cmp	r3, #0
	bne	.L21
.L3:
	ldr	r6, .L23+4
	ldr	r3, [r4]
	ldr	r0, [r6]
	ldr	r1, [r4, #12]
	ands	r0, r3, r0
	bne	.L5
	ldr	r3, .L23+8
	ldr	r9, .L23+12
	ldr	r2, [r3]
	ldr	ip, [r4, #4]
	ldr	r3, [r9]
	tst	ip, r2
	add	r1, r1, r3
	bne	.L22
	mov	r0, #1
	bl	writel
	mov	r0, #10
	bl	udelay
.L7:
	ldr	r3, .L23+16
	ldr	r1, [r4, #12]
	ldr	r2, [r3]
	ldr	r3, .L23+20
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	writel
.L8:
	ldr	r3, .L23+24
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	ldr	r0, [r4, #8]
	add	r1, r1, r3
	bl	writel
	ldr	r3, .L23+28
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r6]
	ldr	r2, [r4]
	tst	r2, r3
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r9]
	ldr	r1, [r4, #12]
	mov	r0, #2
	add	r1, r1, r3
	bl	writel
	ldr	r1, [r4, #12]
	ldr	r3, [r7]
	and	r0, r5, #256
	add	r1, r1, r3
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	writel
.L22:
	bl	writel
	b	.L7
.L5:
	ldr	r2, .L23+16
	ldr	r0, .L23+20
	ldr	r3, .L23+32
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	r9, .L23+12
	add	r1, r1, r2
	orr	r0, r0, r3
	bl	writel
	ldr	r3, [r9]
	ldr	r0, [r4, #12]
	add	r0, r0, r3
	bl	readl
	ldr	r2, .L23+36
	ldr	r3, .L23+40
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r9]
	orr	r3, r3, r1
	ldr	r1, [r4, #12]
	orr	r0, r3, r0
	add	r1, r1, r2
	bl	writel
	cmp	r8, #0
	beq	.L8
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L8
	mov	r0, #1
	blx	r3
	b	.L8
.L21:
	ldr	r3, .L23+44
	ldr	r1, [r4, #12]
	ldr	r3, [r3]
	mov	r0, #1
	add	r1, r1, r3
	bl	writel
	mov	r0, #10
	bl	udelay
	ldr	r3, .L23+48
	ldr	r0, [r4, #12]
	ldr	r3, [r3]
	add	r0, r0, r3
	bl	readl
	ldr	r3, .L23+52
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L3
	mov	r0, r6
	ldr	r1, .L23+56
	bl	netdev_err
	b	.L3
.L24:
	.align	2
.L23:
	.word	FEC_R_CNTRL
	.word	FEC_WOL_FLAG_SLEEP_ON
	.word	FEC_QUIRK_HAS_AVB
	.word	FEC_ECNTRL
	.word	FEC_IMASK
	.word	FEC_DEFAULT_IMASK
	.word	FEC_MII_SPEED
	.word	FEC_QUIRK_ENET_MAC
	.word	FEC_ENET_WAKEUP
	.word	FEC_ECR_SLEEP
	.word	FEC_ECR_MAGICEN
	.word	FEC_X_CNTRL
	.word	FEC_IEVENT
	.word	FEC_ENET_GRA
	.word	.LC0
	.size	fec_stop, .-fec_stop
	.comm	FEC_X_CNTRL,4,4
	.comm	FEC_WOL_FLAG_SLEEP_ON,4,4
	.comm	FEC_R_CNTRL,4,4
	.comm	FEC_QUIRK_HAS_AVB,4,4
	.comm	FEC_QUIRK_ENET_MAC,4,4
	.comm	FEC_MII_SPEED,4,4
	.comm	FEC_IMASK,4,4
	.comm	FEC_IEVENT,4,4
	.comm	FEC_ENET_WAKEUP,4,4
	.comm	FEC_ENET_GRA,4,4
	.comm	FEC_ECR_SLEEP,4,4
	.comm	FEC_ECR_MAGICEN,4,4
	.comm	FEC_ECNTRL,4,4
	.comm	FEC_DEFAULT_IMASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
