	.file	"extr_dwc-xlgmac-hw.c_xlgmac_prepare_rx_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"timed out waiting for Rx queue %u to empty\n"
	.text
	.p2align 4
	.type	xlgmac_prepare_rx_stop, @function
xlgmac_prepare_rx_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, QWORD PTR jiffies[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, QWORD PTR XLGMAC_DMA_STOP_TIMEOUT[rip]
	imul	r12, QWORD PTR HZ[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	add	r12, rdi
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, DWORD PTR MTL_Q_RQDR[rip]
	mov	esi, r14d
	mov	rdi, r13
	call	XLGMAC_MTL_REG@PLT
	mov	edi, eax
	call	readl@PLT
	mov	edx, DWORD PTR MTL_Q_RQDR_PRXQ_LEN[rip]
	mov	esi, DWORD PTR MTL_Q_RQDR_PRXQ_POS[rip]
	mov	edi, eax
	mov	ebp, eax
	call	XLGMAC_GET_REG_BITS@PLT
	mov	edx, DWORD PTR MTL_Q_RQDR_RXQSTS_LEN[rip]
	mov	esi, DWORD PTR MTL_Q_RQDR_RXQSTS_POS[rip]
	mov	edi, ebp
	mov	ebx, eax
	call	XLGMAC_GET_REG_BITS@PLT
	or	ebx, eax
	je	.L7
	mov	edi, 500
	mov	esi, 1000
	call	usleep_range@PLT
	mov	rdi, QWORD PTR jiffies[rip]
.L2:
	mov	rsi, r12
	call	time_before@PLT
	test	rax, rax
	jne	.L6
.L7:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, r12
	call	time_before@PLT
	test	rax, rax
	je	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	edx, r14d
	lea	rsi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	netdev_info@PLT
	.cfi_endproc
.LFE0:
	.size	xlgmac_prepare_rx_stop, .-xlgmac_prepare_rx_stop
	.comm	jiffies,8,8
	.comm	XLGMAC_DMA_STOP_TIMEOUT,8,8
	.comm	MTL_Q_RQDR_RXQSTS_POS,4,4
	.comm	MTL_Q_RQDR_RXQSTS_LEN,4,4
	.comm	MTL_Q_RQDR_PRXQ_POS,4,4
	.comm	MTL_Q_RQDR_PRXQ_LEN,4,4
	.comm	MTL_Q_RQDR,4,4
	.comm	HZ,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_dwc-xlgmac-hw.c_xlgmac_prepare_rx_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"timed out waiting for Rx queue %u to empty\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xlgmac_prepare_rx_stop, %function
xlgmac_prepare_rx_stop:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L11
	ldr	r7, .L11+4
	ldr	r3, .L11+8
	mov	r5, r0
	ldr	r4, [r2]
	ldr	r0, [r7]
	ldr	r3, [r3]
	mov	r6, r1
	mla	r4, r3, r4, r0
	ldr	fp, .L11+12
	ldr	r10, .L11+16
	b	.L2
.L6:
	mov	r1, r6
	ldr	r2, [fp]
	mov	r0, r5
	bl	XLGMAC_MTL_REG
	bl	readl
	ldr	r3, .L11+20
	ldr	r2, [r10]
	ldr	r1, [r3]
	mov	r9, r0
	bl	XLGMAC_GET_REG_BITS
	ldr	r3, .L11+24
	mov	r8, r0
	ldr	r2, [r3]
	ldr	r3, .L11+28
	mov	r0, r9
	ldr	r1, [r3]
	bl	XLGMAC_GET_REG_BITS
	orrs	r3, r8, r0
	beq	.L7
	mov	r1, #1000
	mov	r0, #500
	bl	usleep_range
	ldr	r0, [r7]
.L2:
	mov	r1, r4
	bl	time_before
	cmp	r0, #0
	bne	.L6
.L7:
	mov	r1, r4
	ldr	r0, [r7]
	bl	time_before
	cmp	r0, #0
	popne	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r2, r6
	ldr	r0, [r5]
	ldr	r1, .L11+32
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	netdev_info
.L12:
	.align	2
.L11:
	.word	XLGMAC_DMA_STOP_TIMEOUT
	.word	jiffies
	.word	HZ
	.word	MTL_Q_RQDR
	.word	MTL_Q_RQDR_PRXQ_LEN
	.word	MTL_Q_RQDR_PRXQ_POS
	.word	MTL_Q_RQDR_RXQSTS_LEN
	.word	MTL_Q_RQDR_RXQSTS_POS
	.word	.LC0
	.size	xlgmac_prepare_rx_stop, .-xlgmac_prepare_rx_stop
	.comm	jiffies,4,4
	.comm	XLGMAC_DMA_STOP_TIMEOUT,4,4
	.comm	MTL_Q_RQDR_RXQSTS_POS,4,4
	.comm	MTL_Q_RQDR_RXQSTS_LEN,4,4
	.comm	MTL_Q_RQDR_PRXQ_POS,4,4
	.comm	MTL_Q_RQDR_PRXQ_LEN,4,4
	.comm	MTL_Q_RQDR,4,4
	.comm	HZ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
