	.file	"extr_smsc9420.c_smsc9420_stop_rx.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"RX DMAC did not stop! timeout."
	.text
	.p2align 4
	.type	smsc9420_stop_rx, @function
smsc9420_stop_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, 999
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR DMAC_INTR_ENA[rip]
	call	smsc9420_reg_read@PLT
	mov	edx, DWORD PTR DMAC_INTR_ENA_RX_[rip]
	mov	esi, DWORD PTR DMAC_INTR_ENA[rip]
	mov	rdi, rbp
	not	edx
	and	edx, eax
	call	smsc9420_reg_write@PLT
	mov	rdi, rbp
	call	smsc9420_pci_flush_write@PLT
	mov	esi, DWORD PTR MAC_CR[rip]
	mov	rdi, rbp
	call	smsc9420_reg_read@PLT
	mov	edx, DWORD PTR MAC_CR_RXEN_[rip]
	mov	esi, DWORD PTR MAC_CR[rip]
	mov	rdi, rbp
	not	edx
	and	edx, eax
	call	smsc9420_reg_write@PLT
	mov	rdi, rbp
	call	smsc9420_pci_flush_write@PLT
	mov	esi, DWORD PTR DMAC_CONTROL[rip]
	mov	rdi, rbp
	call	smsc9420_reg_read@PLT
	mov	edx, DWORD PTR DMAC_CONTROL_SR_[rip]
	mov	esi, DWORD PTR DMAC_CONTROL[rip]
	mov	rdi, rbp
	not	edx
	and	edx, eax
	call	smsc9420_reg_write@PLT
	mov	rdi, rbp
	call	smsc9420_pci_flush_write@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, 10
	call	udelay@PLT
	sub	ebx, 1
	je	.L9
.L3:
	mov	esi, DWORD PTR DMAC_STATUS[rip]
	mov	rdi, rbp
	call	smsc9420_reg_read@PLT
	test	DWORD PTR DMAC_STS_RS_[rip], eax
	je	.L10
.L2:
	mov	edx, DWORD PTR DMAC_STS_RXPS_[rip]
	mov	esi, DWORD PTR DMAC_STATUS[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	smsc9420_reg_write@PLT
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR IFDOWN[rip]
	lea	rsi, .LC0[rip]
	call	smsc_warn@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	smsc9420_stop_rx, .-smsc9420_stop_rx
	.comm	MAC_CR_RXEN_,4,4
	.comm	MAC_CR,4,4
	.comm	IFDOWN,4,4
	.comm	DMAC_STS_RXPS_,4,4
	.comm	DMAC_STS_RS_,4,4
	.comm	DMAC_STATUS,4,4
	.comm	DMAC_INTR_ENA_RX_,4,4
	.comm	DMAC_INTR_ENA,4,4
	.comm	DMAC_CONTROL_SR_,4,4
	.comm	DMAC_CONTROL,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_smsc9420.c_smsc9420_stop_rx.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"RX DMAC did not stop! timeout.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	smsc9420_stop_rx, %function
smsc9420_stop_rx:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r4, .L11
	mov	r5, r0
	ldr	r1, [r4]
	bl	smsc9420_reg_read
	mov	r3, r0
	ldr	r2, .L11+4
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r4, .L11+8
	bic	r2, r3, r2
	mov	r0, r5
	bl	smsc9420_reg_write
	mov	r0, r5
	bl	smsc9420_pci_flush_write
	ldr	r1, [r4]
	mov	r0, r5
	bl	smsc9420_reg_read
	mov	r3, r0
	ldr	r2, .L11+12
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r4, .L11+16
	bic	r2, r3, r2
	mov	r0, r5
	bl	smsc9420_reg_write
	mov	r0, r5
	bl	smsc9420_pci_flush_write
	ldr	r1, [r4]
	mov	r0, r5
	bl	smsc9420_reg_read
	mov	r3, r0
	ldr	r2, .L11+20
	ldr	r1, [r4]
	ldr	r2, [r2]
	mov	r0, r5
	bic	r2, r3, r2
	bl	smsc9420_reg_write
	mov	r0, r5
	bl	smsc9420_pci_flush_write
	ldr	r4, .L11+24
	ldr	r6, .L11+28
	ldr	r7, .L11+32
	b	.L3
.L10:
	mov	r0, #10
	bl	udelay
	subs	r4, r4, #1
	beq	.L9
.L3:
	mov	r0, r5
	ldr	r1, [r6]
	bl	smsc9420_reg_read
	ldr	r3, [r7]
	tst	r0, r3
	beq	.L10
.L2:
	ldr	r3, .L11+36
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r2, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	smsc9420_reg_write
.L9:
	ldr	r3, .L11+40
	ldr	r1, .L11+44
	ldr	r0, [r3]
	bl	smsc_warn
	b	.L2
.L12:
	.align	2
.L11:
	.word	DMAC_INTR_ENA
	.word	DMAC_INTR_ENA_RX_
	.word	MAC_CR
	.word	MAC_CR_RXEN_
	.word	DMAC_CONTROL
	.word	DMAC_CONTROL_SR_
	.word	999
	.word	DMAC_STATUS
	.word	DMAC_STS_RS_
	.word	DMAC_STS_RXPS_
	.word	IFDOWN
	.word	.LC0
	.size	smsc9420_stop_rx, .-smsc9420_stop_rx
	.comm	MAC_CR_RXEN_,4,4
	.comm	MAC_CR,4,4
	.comm	IFDOWN,4,4
	.comm	DMAC_STS_RXPS_,4,4
	.comm	DMAC_STS_RS_,4,4
	.comm	DMAC_STATUS,4,4
	.comm	DMAC_INTR_ENA_RX_,4,4
	.comm	DMAC_INTR_ENA,4,4
	.comm	DMAC_CONTROL_SR_,4,4
	.comm	DMAC_CONTROL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
