	.file	"extr_rtsx_chip.c_rtsx_stop_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"BAR (0x%02x): 0x%08x\n"
.LC1:
	.string	"0x%04X: 0x%02x\n"
	.text
	.p2align 4
	.globl	rtsx_stop_cmd
	.type	rtsx_stop_cmd, @function
rtsx_stop_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	lea	r13, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	xor	ebx, ebx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	r14d, DWORD PTR RTSX_HCBAR[rip]
	mov	rdi, rbp
	add	r14d, ebx
	add	ebx, 4
	mov	esi, r14d
	call	rtsx_readl@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	rtsx_dev@PLT
	mov	ecx, r12d
	mov	edx, r14d
	mov	rsi, r13
	mov	edi, eax
	call	dev_dbg@PLT
	cmp	ebx, 36
	jne	.L2
	mov	edx, DWORD PTR STOP_CMD[rip]
	mov	esi, DWORD PTR RTSX_HCBCTLR[rip]
	mov	rdi, rbp
	mov	ebx, 65056
	lea	r13, 4[rsp]
	lea	r12, .LC1[rip]
	call	rtsx_writel@PLT
	mov	edx, DWORD PTR STOP_DMA[rip]
	mov	esi, DWORD PTR RTSX_HDBCTLR[rip]
	mov	rdi, rbp
	call	rtsx_writel@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, ebx
	mov	rdx, r13
	mov	rdi, rbp
	call	rtsx_read_register@PLT
	mov	r14d, DWORD PTR 4[rsp]
	mov	rdi, rbp
	call	rtsx_dev@PLT
	mov	edx, ebx
	mov	rsi, r12
	add	ebx, 1
	mov	edi, eax
	mov	ecx, r14d
	call	dev_dbg@PLT
	cmp	ebx, 65072
	jne	.L3
	mov	esi, DWORD PTR DMACTL[rip]
	mov	ecx, 128
	mov	edx, 128
	mov	rdi, rbp
	call	rtsx_write_register@PLT
	mov	esi, DWORD PTR RBCTL[rip]
	mov	ecx, 128
	mov	rdi, rbp
	mov	edx, 128
	call	rtsx_write_register@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.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
.L9:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rtsx_stop_cmd, .-rtsx_stop_cmd
	.comm	STOP_DMA,4,4
	.comm	STOP_CMD,4,4
	.comm	RTSX_HDBCTLR,4,4
	.comm	RTSX_HCBCTLR,4,4
	.comm	RTSX_HCBAR,4,4
	.comm	RBCTL,4,4
	.comm	DMACTL,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_rtsx_chip.c_rtsx_stop_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"BAR (0x%02x): 0x%08x\012\000"
	.align	2
.LC1:
	.ascii	"0x%04X: 0x%02x\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rtsx_stop_cmd
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtsx_stop_cmd, %function
rtsx_stop_cmd:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L10
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	mov	r6, #0
	ldr	r9, .L10+4
	ldr	r8, .L10+8
.L2:
	ldr	r4, [r9]
	mov	r0, r5
	add	r4, r6, r4
	mov	r1, r4
	bl	rtsx_readl
	mov	r7, r0
	mov	r0, r5
	bl	rtsx_dev
	add	r6, r6, #4
	mov	r3, r7
	mov	r2, r4
	mov	r1, r8
	bl	dev_dbg
	cmp	r6, #36
	bne	.L2
	ldr	r3, .L10+12
	ldr	r2, .L10+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r5
	bl	rtsx_writel
	ldr	r3, .L10+20
	ldr	r2, .L10+24
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	rtsx_writel
	ldr	r4, .L10+28
	ldr	r7, .L10+32
	ldr	r6, .L10+36
.L3:
	mov	r1, r4
	mov	r2, sp
	mov	r0, r5
	bl	rtsx_read_register
	mov	r0, r5
	bl	rtsx_dev
	mov	r2, r4
	mov	r1, r7
	ldr	r3, [sp]
	add	r4, r4, #1
	bl	dev_dbg
	cmp	r4, r6
	bne	.L3
	mov	r3, #128
	ldr	r1, .L10+40
	mov	r2, r3
	ldr	r1, [r1]
	mov	r0, r5
	bl	rtsx_write_register
	mov	r3, #128
	ldr	r1, .L10+44
	mov	r2, r3
	mov	r0, r5
	ldr	r1, [r1]
	bl	rtsx_write_register
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	RTSX_HCBAR
	.word	.LC0
	.word	RTSX_HCBCTLR
	.word	STOP_CMD
	.word	RTSX_HDBCTLR
	.word	STOP_DMA
	.word	65056
	.word	.LC1
	.word	65072
	.word	DMACTL
	.word	RBCTL
	.size	rtsx_stop_cmd, .-rtsx_stop_cmd
	.comm	STOP_DMA,4,4
	.comm	STOP_CMD,4,4
	.comm	RTSX_HDBCTLR,4,4
	.comm	RTSX_HCBCTLR,4,4
	.comm	RTSX_HCBAR,4,4
	.comm	RBCTL,4,4
	.comm	DMACTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
