	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b43_dmacontroller_tx_reset
_b43_dmacontroller_tx_reset:            ## @b43_dmacontroller_tx_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, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	xorl	%eax, %eax
	callq	_might_sleep
	movl	$10, %r13d
	movq	_B43_DMA_64BIT@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_B43_DMA32_TXSTATUS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%r12)
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_DMA64_TXSTATUS@GOTPCREL(%rip), %rax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_b43_read32
	movl	(%r12), %ecx
	cmpl	%r15d, %ecx
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_DMA64_TXSTAT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_B43_DMA64_TXSTAT_DISABLED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_DMA64_TXSTAT_IDLEWAIT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_DMA64_TXSTAT_STOPPED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	jne	LBB0_11
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_DMA32_TXSTATE@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movq	_B43_DMA32_TXSTAT_DISABLED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_DMA32_TXSTAT_IDLEWAIT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_B43_DMA32_TXSTAT_STOPPED@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_msleep
	decl	%r13d
	jne	LBB0_1
## %bb.12:
	movl	(%r12), %ecx
LBB0_13:
	cmpl	%r15d, %ecx
	jne	LBB0_14
## %bb.15:
	movq	_B43_DMA64_TXCTL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_B43_DMA32_TXCTL@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rsi
	movq	%rbx, %r13
	addq	%rbx, %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_b43_write32
	movl	$10, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	_B43_DMA32_TXSTATUS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%r12)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_B43_DMA64_TXSTATUS@GOTPCREL(%rip), %rax
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rax), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	callq	_b43_read32
	cmpl	%r15d, (%r12)
	jne	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	_B43_DMA64_TXSTAT@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_B43_DMA64_TXSTAT_DISABLED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_23
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movq	_B43_DMA32_TXSTATE@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_B43_DMA32_TXSTAT_DISABLED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	$1, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_17
## %bb.24:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_b43err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_26
LBB0_25:
	movl	$1, %edi
	callq	_msleep
	xorl	%eax, %eax
LBB0_26:
	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_TXSTATUS,8,3         ## @B43_DMA64_TXSTATUS
	.comm	_B43_DMA32_TXSTATUS,8,3         ## @B43_DMA32_TXSTATUS
	.comm	_B43_DMA64_TXSTAT,4,2           ## @B43_DMA64_TXSTAT
	.comm	_B43_DMA64_TXSTAT_DISABLED,4,2  ## @B43_DMA64_TXSTAT_DISABLED
	.comm	_B43_DMA64_TXSTAT_IDLEWAIT,4,2  ## @B43_DMA64_TXSTAT_IDLEWAIT
	.comm	_B43_DMA64_TXSTAT_STOPPED,4,2   ## @B43_DMA64_TXSTAT_STOPPED
	.comm	_B43_DMA32_TXSTATE,4,2          ## @B43_DMA32_TXSTATE
	.comm	_B43_DMA32_TXSTAT_DISABLED,4,2  ## @B43_DMA32_TXSTAT_DISABLED
	.comm	_B43_DMA32_TXSTAT_IDLEWAIT,4,2  ## @B43_DMA32_TXSTAT_IDLEWAIT
	.comm	_B43_DMA32_TXSTAT_STOPPED,4,2   ## @B43_DMA32_TXSTAT_STOPPED
	.comm	_B43_DMA64_TXCTL,8,3            ## @B43_DMA64_TXCTL
	.comm	_B43_DMA32_TXCTL,8,3            ## @B43_DMA32_TXCTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA TX reset timed out\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_b43_dmacontroller_tx_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_tx_reset
_b43_dmacontroller_tx_reset:            ; @b43_dmacontroller_tx_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]
	mov	w25, #10
Lloh2:
	adrp	x23, _B43_DMA64_TXSTATUS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _B43_DMA64_TXSTATUS@GOTPAGEOFF]
Lloh4:
	adrp	x24, _B43_DMA32_TXSTATUS@GOTPAGE
Lloh5:
	ldr	x24, [x24, _B43_DMA32_TXSTATUS@GOTPAGEOFF]
Lloh6:
	adrp	x27, _B43_DMA32_TXSTATE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _B43_DMA32_TXSTATE@GOTPAGEOFF]
Lloh8:
	adrp	x28, _B43_DMA32_TXSTAT_DISABLED@GOTPAGE
Lloh9:
	ldr	x28, [x28, _B43_DMA32_TXSTAT_DISABLED@GOTPAGEOFF]
Lloh10:
	adrp	x26, _B43_DMA32_TXSTAT_STOPPED@GOTPAGE
Lloh11:
	ldr	x26, [x26, _B43_DMA32_TXSTAT_STOPPED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w19
	csel	x8, x23, x24, eq
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	bl	_b43_read32
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh12:
	adrp	x9, _B43_DMA64_TXSTAT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _B43_DMA64_TXSTAT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh15:
	adrp	x10, _B43_DMA64_TXSTAT_DISABLED@GOTPAGE
Lloh16:
	ldr	x10, [x10, _B43_DMA64_TXSTAT_DISABLED@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
Lloh18:
	adrp	x11, _B43_DMA64_TXSTAT_IDLEWAIT@GOTPAGE
Lloh19:
	ldr	x11, [x11, _B43_DMA64_TXSTAT_IDLEWAIT@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _B43_DMA64_TXSTAT_STOPPED@GOTPAGE
Lloh22:
	ldr	x12, [x12, _B43_DMA64_TXSTAT_STOPPED@GOTPAGEOFF]
Lloh23:
	ldr	w12, [x12]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w9, [x27]
	and	w9, w9, w0
	ldr	w10, [x28]
Lloh24:
	adrp	x11, _B43_DMA32_TXSTAT_IDLEWAIT@GOTPAGE
Lloh25:
	ldr	x11, [x11, _B43_DMA32_TXSTAT_IDLEWAIT@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	ldr	w12, [x26]
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	ccmp	w9, w12, #4, ne
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_msleep
	subs	w25, w25, #1
	b.ne	LBB0_1
; %bb.6:
	ldr	w8, [x22]
LBB0_7:
Lloh27:
	adrp	x9, _B43_DMA64_TXCTL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _B43_DMA64_TXCTL@GOTPAGEOFF]
Lloh29:
	adrp	x10, _B43_DMA32_TXCTL@GOTPAGE
Lloh30:
	ldr	x10, [x10, _B43_DMA32_TXCTL@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	w25, #10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, w19
	csel	x8, x23, x24, eq
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x20
	bl	_b43_read32
	ldr	w8, [x22]
	cmp	w8, w19
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
Lloh31:
	adrp	x8, _B43_DMA64_TXSTAT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _B43_DMA64_TXSTAT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh34:
	adrp	x9, _B43_DMA64_TXSTAT_DISABLED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _B43_DMA64_TXSTAT_DISABLED@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x27]
	and	w8, w8, w0
	ldr	w9, [x28]
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w0, #1
	cmp	w8, w9
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_msleep
	subs	w25, w25, #1
	b.ne	LBB0_8
; %bb.13:
	ldr	w0, [x20]
Lloh37:
	adrp	x1, l_.str@PAGE
Lloh38:
	add	x1, x1, l_.str@PAGEOFF
	bl	_b43err
Lloh39:
	adrp	x8, _ENODEV@GOTPAGE
Lloh40:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_14:
	bl	_msleep
	mov	w0, #0
LBB0_15:
	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	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_DMA_64BIT,4,2              ; @B43_DMA_64BIT
	.comm	_B43_DMA64_TXSTATUS,8,3         ; @B43_DMA64_TXSTATUS
	.comm	_B43_DMA32_TXSTATUS,8,3         ; @B43_DMA32_TXSTATUS
	.comm	_B43_DMA64_TXSTAT,4,2           ; @B43_DMA64_TXSTAT
	.comm	_B43_DMA64_TXSTAT_DISABLED,4,2  ; @B43_DMA64_TXSTAT_DISABLED
	.comm	_B43_DMA64_TXSTAT_IDLEWAIT,4,2  ; @B43_DMA64_TXSTAT_IDLEWAIT
	.comm	_B43_DMA64_TXSTAT_STOPPED,4,2   ; @B43_DMA64_TXSTAT_STOPPED
	.comm	_B43_DMA32_TXSTATE,4,2          ; @B43_DMA32_TXSTATE
	.comm	_B43_DMA32_TXSTAT_DISABLED,4,2  ; @B43_DMA32_TXSTAT_DISABLED
	.comm	_B43_DMA32_TXSTAT_IDLEWAIT,4,2  ; @B43_DMA32_TXSTAT_IDLEWAIT
	.comm	_B43_DMA32_TXSTAT_STOPPED,4,2   ; @B43_DMA32_TXSTAT_STOPPED
	.comm	_B43_DMA64_TXCTL,8,3            ; @B43_DMA64_TXCTL
	.comm	_B43_DMA32_TXCTL,8,3            ; @B43_DMA32_TXCTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA TX reset timed out\n"

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