	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_dmacontroller_rx_reset
_b43_dmacontroller_rx_reset:            ## @b43_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
	movl	%edx, %r13d
	movq	%rsi, %r15
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_might_sleep
	movq	_B43_DMA_64BIT@GOTPCREL(%rip), %r12
	cmpl	%r13d, (%r12)
	jne	LBB0_2
## %bb.1:
	movq	_B43_DMA64_RXCTL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_B43_DMA32_RXCTL@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_b43_write32
	movl	$10, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_B43_DMA32_RXSTATE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_B43_DMA32_RXSTAT_DISABLED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_msleep
	decl	%ebx
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_B43_DMA32_RXSTATUS@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%r12)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_B43_DMA64_RXSTATUS@GOTPCREL(%rip), %rax
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rax), %rsi
	addq	%r15, %rsi
	movq	%r14, %rdi
	callq	_b43_read32
	cmpl	%r13d, (%r12)
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_B43_DMA64_RXSTAT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_B43_DMA64_RXSTAT_DISABLED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
LBB0_12:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_11:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_DMA_64BIT,4,2              ## @B43_DMA_64BIT
	.comm	_B43_DMA64_RXCTL,8,3            ## @B43_DMA64_RXCTL
	.comm	_B43_DMA32_RXCTL,8,3            ## @B43_DMA32_RXCTL
	.comm	_B43_DMA64_RXSTATUS,8,3         ## @B43_DMA64_RXSTATUS
	.comm	_B43_DMA32_RXSTATUS,8,3         ## @B43_DMA32_RXSTATUS
	.comm	_B43_DMA64_RXSTAT,4,2           ## @B43_DMA64_RXSTAT
	.comm	_B43_DMA64_RXSTAT_DISABLED,4,2  ## @B43_DMA64_RXSTAT_DISABLED
	.comm	_B43_DMA32_RXSTATE,4,2          ## @B43_DMA32_RXSTATE
	.comm	_B43_DMA32_RXSTAT_DISABLED,4,2  ## @B43_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	_b43_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 b43_dmacontroller_rx_reset
_b43_dmacontroller_rx_reset:            ; @b43_dmacontroller_rx_reset
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_might_sleep
Lloh0:
	adrp	x22, _B43_DMA_64BIT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _B43_DMA_64BIT@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh2:
	adrp	x9, _B43_DMA64_RXCTL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _B43_DMA64_RXCTL@GOTPAGEOFF]
Lloh4:
	adrp	x10, _B43_DMA32_RXCTL@GOTPAGE
Lloh5:
	ldr	x10, [x10, _B43_DMA32_RXCTL@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, eq
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	mov	w2, #0
	bl	_b43_write32
	mov	w23, #10
Lloh6:
	adrp	x24, _B43_DMA64_RXSTATUS@GOTPAGE
Lloh7:
	ldr	x24, [x24, _B43_DMA64_RXSTATUS@GOTPAGEOFF]
Lloh8:
	adrp	x25, _B43_DMA32_RXSTATUS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _B43_DMA32_RXSTATUS@GOTPAGEOFF]
Lloh10:
	adrp	x27, _B43_DMA64_RXSTAT_DISABLED@GOTPAGE
Lloh11:
	ldr	x27, [x27, _B43_DMA64_RXSTAT_DISABLED@GOTPAGEOFF]
Lloh12:
	adrp	x28, _B43_DMA32_RXSTATE@GOTPAGE
Lloh13:
	ldr	x28, [x28, _B43_DMA32_RXSTATE@GOTPAGEOFF]
Lloh14:
	adrp	x26, _B43_DMA32_RXSTAT_DISABLED@GOTPAGE
Lloh15:
	ldr	x26, [x26, _B43_DMA32_RXSTAT_DISABLED@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	and	w8, w8, w0
	ldr	w9, [x26]
	cmp	w8, w9
	b.eq	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	bl	_msleep
	subs	w23, w23, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w19
	csel	x8, x24, x25, eq
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	bl	_b43_read32
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh16:
	adrp	x8, _B43_DMA64_RXSTAT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _B43_DMA64_RXSTAT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	and	w8, w8, w0
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
Lloh21:
	adrp	x8, _ENODEV@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_DMA_64BIT,4,2              ; @B43_DMA_64BIT
	.comm	_B43_DMA64_RXCTL,8,3            ; @B43_DMA64_RXCTL
	.comm	_B43_DMA32_RXCTL,8,3            ; @B43_DMA32_RXCTL
	.comm	_B43_DMA64_RXSTATUS,8,3         ; @B43_DMA64_RXSTATUS
	.comm	_B43_DMA32_RXSTATUS,8,3         ; @B43_DMA32_RXSTATUS
	.comm	_B43_DMA64_RXSTAT,4,2           ; @B43_DMA64_RXSTAT
	.comm	_B43_DMA64_RXSTAT_DISABLED,4,2  ; @B43_DMA64_RXSTAT_DISABLED
	.comm	_B43_DMA32_RXSTATE,4,2          ; @B43_DMA32_RXSTATE
	.comm	_B43_DMA32_RXSTAT_DISABLED,4,2  ; @B43_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	_b43_dmacontroller_rx_reset
.subsections_via_symbols
