	.file	"extr_rt2560.c_rt2560_stop_locked.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"ralrunning"
	.text
	.p2align 4
	.type	rt2560_stop_locked, @function
rt2560_stop_locked:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	lea	rbp, 36[r12]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	lea	rbx, .LC0[rip]
	call	RAL_LOCK_ASSERT@PLT
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR RT2560_F_INPUT_RUNNING[rip]
	test	edx, eax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	movsx	r8, DWORD PTR hz[rip]
	xor	edx, edx
	mov	rcx, rbx
	mov	rsi, rbp
	mov	rdi, r12
	mov	rax, r8
	imul	r8, r8, 1717986919
	sar	eax, 31
	sar	r8, 34
	sub	r8d, eax
	call	msleep@PLT
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR RT2560_F_INPUT_RUNNING[rip]
	test	edx, eax
	jne	.L5
.L6:
	lea	rdi, 32[r12]
	call	callout_stop@PLT
	mov	edx, DWORD PTR [r12]
	mov	eax, DWORD PTR RT2560_F_RUNNING[rip]
	mov	QWORD PTR 24[r12], 0
	test	edx, eax
	jne	.L13
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	not	eax
	mov	esi, DWORD PTR RT2560_TXCSR0[rip]
	mov	rdi, r12
	and	eax, edx
	mov	edx, DWORD PTR RT2560_ABORT_TX[rip]
	mov	DWORD PTR [r12], eax
	call	RAL_WRITE@PLT
	mov	edx, DWORD PTR RT2560_DISABLE_RX[rip]
	mov	esi, DWORD PTR RT2560_RXCSR0[rip]
	mov	rdi, r12
	call	RAL_WRITE@PLT
	mov	edx, DWORD PTR RT2560_RESET_ASIC[rip]
	mov	esi, DWORD PTR RT2560_CSR1[rip]
	mov	rdi, r12
	call	RAL_WRITE@PLT
	mov	esi, DWORD PTR RT2560_CSR1[rip]
	mov	rdi, r12
	xor	edx, edx
	call	RAL_WRITE@PLT
	mov	esi, DWORD PTR RT2560_CSR8[rip]
	mov	edx, -1
	mov	rdi, r12
	call	RAL_WRITE@PLT
	lea	rsi, 20[r12]
	mov	rdi, r12
	call	rt2560_reset_tx_ring@PLT
	lea	rsi, 16[r12]
	mov	rdi, r12
	call	rt2560_reset_tx_ring@PLT
	lea	rsi, 12[r12]
	mov	rdi, r12
	call	rt2560_reset_tx_ring@PLT
	lea	rsi, 8[r12]
	mov	rdi, r12
	call	rt2560_reset_tx_ring@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	lea	rsi, 4[r12]
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	rt2560_reset_rx_ring@PLT
	.cfi_endproc
.LFE0:
	.size	rt2560_stop_locked, .-rt2560_stop_locked
	.comm	hz,4,4
	.comm	RT2560_TXCSR0,4,4
	.comm	RT2560_RXCSR0,4,4
	.comm	RT2560_RESET_ASIC,4,4
	.comm	RT2560_F_RUNNING,4,4
	.comm	RT2560_F_INPUT_RUNNING,4,4
	.comm	RT2560_DISABLE_RX,4,4
	.comm	RT2560_CSR8,4,4
	.comm	RT2560_CSR1,4,4
	.comm	RT2560_ABORT_TX,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_rt2560.c_rt2560_stop_locked.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ralrunning\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rt2560_stop_locked, %function
rt2560_stop_locked:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r0
	ldr	r5, .L12
	sub	sp, sp, #12
	bl	RAL_LOCK_ASSERT
	ldr	r2, [r4]
	ldr	r3, [r5]
	tst	r2, r3
	beq	.L6
	ldr	r8, .L12+4
	ldr	r7, .L12+8
	ldr	r9, .L12+12
	add	r6, r4, #32
.L5:
	ldr	r2, [r8]
	mov	r3, r9
	smull	r0, r1, r7, r2
	asr	r2, r2, #31
	rsb	r2, r2, r1, asr #2
	str	r2, [sp]
	mov	r1, r6
	mov	r2, #0
	mov	r0, r4
	bl	msleep
	ldr	r2, [r4]
	ldr	r3, [r5]
	tst	r2, r3
	bne	.L5
.L6:
	mov	r5, #0
	add	r0, r4, #28
	bl	callout_stop
	ldr	r2, .L12+16
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r5, [r4, #24]
	tst	r3, r2
	bne	.L11
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L11:
	ldr	r0, .L12+20
	ldr	r1, .L12+24
	bic	r3, r3, r2
	str	r3, [r4]
	ldr	r2, [r0]
	ldr	r1, [r1]
	mov	r0, r4
	bl	RAL_WRITE
	ldr	r3, .L12+28
	ldr	r2, .L12+32
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	bl	RAL_WRITE
	ldr	r6, .L12+36
	ldr	r3, .L12+40
	ldr	r1, [r6]
	ldr	r2, [r3]
	mov	r0, r4
	bl	RAL_WRITE
	mov	r2, r5
	ldr	r1, [r6]
	mov	r0, r4
	bl	RAL_WRITE
	ldr	r3, .L12+44
	mvn	r2, #0
	ldr	r1, [r3]
	mov	r0, r4
	bl	RAL_WRITE
	add	r1, r4, #20
	mov	r0, r4
	bl	rt2560_reset_tx_ring
	add	r1, r4, #16
	mov	r0, r4
	bl	rt2560_reset_tx_ring
	add	r1, r4, #12
	mov	r0, r4
	bl	rt2560_reset_tx_ring
	add	r1, r4, #8
	mov	r0, r4
	bl	rt2560_reset_tx_ring
	mov	r0, r4
	add	r1, r4, #4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, lr}
	b	rt2560_reset_rx_ring
.L13:
	.align	2
.L12:
	.word	RT2560_F_INPUT_RUNNING
	.word	hz
	.word	1717986919
	.word	.LC0
	.word	RT2560_F_RUNNING
	.word	RT2560_ABORT_TX
	.word	RT2560_TXCSR0
	.word	RT2560_RXCSR0
	.word	RT2560_DISABLE_RX
	.word	RT2560_CSR1
	.word	RT2560_RESET_ASIC
	.word	RT2560_CSR8
	.size	rt2560_stop_locked, .-rt2560_stop_locked
	.comm	hz,4,4
	.comm	RT2560_TXCSR0,4,4
	.comm	RT2560_RXCSR0,4,4
	.comm	RT2560_RESET_ASIC,4,4
	.comm	RT2560_F_RUNNING,4,4
	.comm	RT2560_F_INPUT_RUNNING,4,4
	.comm	RT2560_DISABLE_RX,4,4
	.comm	RT2560_CSR8,4,4
	.comm	RT2560_CSR1,4,4
	.comm	RT2560_ABORT_TX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
