	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43legacy_dmacontroller_rx_reset
_b43legacy_dmacontroller_rx_reset:      ## @b43legacy_dmacontroller_rx_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_might_sleep
	movq	_B43legacy_DMA32_RXCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_b43legacy_write32
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	movq	_B43legacy_DMA32_RXSTATE@GOTPCREL(%rip), %r13
	andl	(%r13), %eax
	movq	_B43legacy_DMA32_RXSTAT_DISABLED@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.1:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.2:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.3:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.4:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.5:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.6:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.7:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.8:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r15, %rdi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.9:
	movl	$1, %edi
	callq	_msleep
	movq	_B43legacy_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_b43legacy_read32
	andl	(%r13), %eax
	cmpl	(%r12), %eax
	je	LBB0_11
## %bb.10:
	movl	$1, %edi
	callq	_msleep
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43legacyerr
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_DMA32_RXCTL,8,3      ## @B43legacy_DMA32_RXCTL
	.comm	_B43legacy_DMA32_RXSTATUS,8,3   ## @B43legacy_DMA32_RXSTATUS
	.comm	_B43legacy_DMA32_RXSTATE,4,2    ## @B43legacy_DMA32_RXSTATE
	.comm	_B43legacy_DMA32_RXSTAT_DISABLED,4,2 ## @B43legacy_DMA32_RXSTAT_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA RX reset timed out\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_b43legacy_dmacontroller_rx_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b43legacy_dmacontroller_rx_reset
_b43legacy_dmacontroller_rx_reset:      ; @b43legacy_dmacontroller_rx_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_might_sleep
Lloh0:
	adrp	x8, _B43legacy_DMA32_RXCTL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_DMA32_RXCTL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x1, x8, x20
	mov	x0, x19
	mov	w2, #0
	bl	_b43legacy_write32
Lloh3:
	adrp	x21, _B43legacy_DMA32_RXSTATUS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _B43legacy_DMA32_RXSTATUS@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	mov	x8, x0
	mov	w0, #0
Lloh5:
	adrp	x22, _B43legacy_DMA32_RXSTATE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _B43legacy_DMA32_RXSTATE@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w8, w9, w8
Lloh7:
	adrp	x23, _B43legacy_DMA32_RXSTAT_DISABLED@GOTPAGE
Lloh8:
	ldr	x23, [x23, _B43legacy_DMA32_RXSTAT_DISABLED@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_11
; %bb.1:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.2:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.3:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.4:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.5:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.6:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.7:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.8:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #1
	bl	_msleep
	ldr	x8, [x21]
	add	x1, x8, x20
	mov	x0, x19
	bl	_b43legacy_read32
	ldr	w8, [x22]
	and	w8, w8, w0
	ldr	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_12
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w0, #1
	bl	_msleep
	ldr	w0, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43legacyerr
Lloh11:
	adrp	x8, _ENODEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_DMA32_RXCTL,8,3      ; @B43legacy_DMA32_RXCTL
	.comm	_B43legacy_DMA32_RXSTATUS,8,3   ; @B43legacy_DMA32_RXSTATUS
	.comm	_B43legacy_DMA32_RXSTATE,4,2    ; @B43legacy_DMA32_RXSTATE
	.comm	_B43legacy_DMA32_RXSTAT_DISABLED,4,2 ; @B43legacy_DMA32_RXSTAT_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA RX reset timed out\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_b43legacy_dmacontroller_rx_reset
.subsections_via_symbols
