	.file	"extr_dma.c_b43_dmacontroller_rx_reset.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"DMA RX reset timed out\n"
	.text
	.p2align 4
	.type	b43_dmacontroller_rx_reset, @function
b43_dmacontroller_rx_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xor	eax, eax
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	might_sleep@PLT
	cmp	DWORD PTR B43_DMA_64BIT[rip], ebp
	mov	rsi, QWORD PTR B43_DMA32_RXCTL[rip]
	jne	.L3
	mov	rsi, QWORD PTR B43_DMA64_RXCTL[rip]
.L3:
	add	rsi, r13
	xor	edx, edx
	mov	rdi, r12
	mov	ebx, 10
	call	b43_write32@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	and	eax, DWORD PTR B43_DMA32_RXSTATE[rip]
	cmp	DWORD PTR B43_DMA32_RXSTAT_DISABLED[rip], eax
	je	.L12
.L8:
	mov	edi, 1
	call	msleep@PLT
	sub	ebx, 1
	je	.L17
.L9:
	cmp	DWORD PTR B43_DMA_64BIT[rip], ebp
	mov	rsi, QWORD PTR B43_DMA32_RXSTATUS[rip]
	jne	.L5
	mov	rsi, QWORD PTR B43_DMA64_RXSTATUS[rip]
.L5:
	add	rsi, r13
	mov	rdi, r12
	call	b43_read32@PLT
	cmp	DWORD PTR B43_DMA_64BIT[rip], ebp
	jne	.L6
	and	eax, DWORD PTR B43_DMA64_RXSTAT[rip]
	cmp	DWORD PTR B43_DMA64_RXSTAT_DISABLED[rip], eax
	jne	.L8
.L12:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
.L17:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	lea	rsi, .LC0[rip]
	call	b43err@PLT
	mov	eax, DWORD PTR ENODEV[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	b43_dmacontroller_rx_reset, .-b43_dmacontroller_rx_reset
	.comm	ENODEV,4,4
	.comm	B43_DMA_64BIT,4,4
	.comm	B43_DMA64_RXSTAT_DISABLED,4,4
	.comm	B43_DMA64_RXSTATUS,8,8
	.comm	B43_DMA64_RXSTAT,4,4
	.comm	B43_DMA64_RXCTL,8,8
	.comm	B43_DMA32_RXSTAT_DISABLED,4,4
	.comm	B43_DMA32_RXSTATUS,8,8
	.comm	B43_DMA32_RXSTATE,4,4
	.comm	B43_DMA32_RXCTL,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_dma.c_b43_dmacontroller_rx_reset.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"DMA RX reset timed out\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b43_dmacontroller_rx_reset, %function
b43_dmacontroller_rx_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r8, r1
	mov	r7, r0
	ldr	r6, .L18
	bl	might_sleep
	ldr	r3, [r6]
	mov	r2, #0
	cmp	r3, r5
	ldreq	r3, .L18+4
	ldrne	r3, .L18+8
	mov	r0, r7
	ldr	r1, [r3]
	mov	r4, #10
	add	r1, r1, r8
	bl	b43_write32
	ldr	r10, .L18+12
	ldr	r9, .L18+16
	ldr	fp, .L18+20
	b	.L9
.L6:
	ldr	r2, [r9]
	ldr	r3, [r10]
	and	r0, r0, r2
	cmp	r3, r0
	beq	.L12
.L8:
	mov	r0, #1
	bl	msleep
	subs	r4, r4, #1
	beq	.L17
.L9:
	ldr	r3, [r6]
	mov	r0, r7
	cmp	r3, r5
	ldreq	r3, .L18+24
	ldrne	r3, .L18+28
	ldr	r1, [r3]
	add	r1, r1, r8
	bl	b43_read32
	ldr	r3, [r6]
	cmp	r3, r5
	bne	.L6
	ldr	r3, .L18+32
	ldr	r2, [r3]
	ldr	r3, [fp]
	and	r0, r0, r2
	cmp	r3, r0
	bne	.L8
.L12:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L17:
	ldr	r0, [r7]
	ldr	r1, .L18+36
	bl	b43err
	ldr	r3, .L18+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	.align	2
.L18:
	.word	B43_DMA_64BIT
	.word	B43_DMA64_RXCTL
	.word	B43_DMA32_RXCTL
	.word	B43_DMA32_RXSTAT_DISABLED
	.word	B43_DMA32_RXSTATE
	.word	B43_DMA64_RXSTAT_DISABLED
	.word	B43_DMA64_RXSTATUS
	.word	B43_DMA32_RXSTATUS
	.word	B43_DMA64_RXSTAT
	.word	.LC0
	.word	ENODEV
	.size	b43_dmacontroller_rx_reset, .-b43_dmacontroller_rx_reset
	.comm	ENODEV,4,4
	.comm	B43_DMA_64BIT,4,4
	.comm	B43_DMA64_RXSTAT_DISABLED,4,4
	.comm	B43_DMA64_RXSTATUS,4,4
	.comm	B43_DMA64_RXSTAT,4,4
	.comm	B43_DMA64_RXCTL,4,4
	.comm	B43_DMA32_RXSTAT_DISABLED,4,4
	.comm	B43_DMA32_RXSTATUS,4,4
	.comm	B43_DMA32_RXSTATE,4,4
	.comm	B43_DMA32_RXCTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
