	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmacontroller_cleanup
_dmacontroller_cleanup:                 ## @dmacontroller_cleanup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	movl	12(%rdi), %edi
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	je	LBB0_4
## %bb.1:
	callq	_b43_dmacontroller_tx_reset
	movq	(%rbx), %rax
	movq	_B43_DMA_64BIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_B43_DMA64_TXRINGHI@GOTPCREL(%rip), %r14
	movq	_B43_DMA64_TXRINGLO@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	callq	_b43_dmacontroller_rx_reset
	movq	(%rbx), %rax
	movq	_B43_DMA_64BIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_B43_DMA64_RXRINGHI@GOTPCREL(%rip), %r14
	movq	_B43_DMA64_RXRINGLO@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_b43_dma_write
	jmp	LBB0_8
LBB0_2:
	movq	_B43_DMA32_TXRING@GOTPCREL(%rip), %r14
	jmp	LBB0_8
LBB0_5:
	movq	_B43_DMA32_RXRING@GOTPCREL(%rip), %r14
LBB0_8:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_b43_dma_write                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43_DMA_64BIT,8,3              ## @B43_DMA_64BIT
	.comm	_B43_DMA64_TXRINGLO,4,2         ## @B43_DMA64_TXRINGLO
	.comm	_B43_DMA64_TXRINGHI,4,2         ## @B43_DMA64_TXRINGHI
	.comm	_B43_DMA32_TXRING,4,2           ## @B43_DMA32_TXRING
	.comm	_B43_DMA64_RXRINGLO,4,2         ## @B43_DMA64_RXRINGLO
	.comm	_B43_DMA64_RXRINGHI,4,2         ## @B43_DMA64_RXRINGHI
	.comm	_B43_DMA32_RXRING,4,2           ## @B43_DMA32_RXRING
	.no_dead_strip	_dmacontroller_cleanup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmacontroller_cleanup
_dmacontroller_cleanup:                 ; @dmacontroller_cleanup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x0, #12]
	ldr	w1, [x19, #8]
	ldr	x2, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	bl	_b43_dmacontroller_tx_reset
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _B43_DMA_64BIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _B43_DMA_64BIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh3:
	adrp	x20, _B43_DMA64_TXRINGHI@GOTPAGE
Lloh4:
	ldr	x20, [x20, _B43_DMA64_TXRINGHI@GOTPAGEOFF]
Lloh5:
	adrp	x8, _B43_DMA64_TXRINGLO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _B43_DMA64_TXRINGLO@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	bl	_b43_dmacontroller_rx_reset
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _B43_DMA_64BIT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _B43_DMA_64BIT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
Lloh10:
	adrp	x20, _B43_DMA64_RXRINGHI@GOTPAGE
Lloh11:
	ldr	x20, [x20, _B43_DMA64_RXRINGHI@GOTPAGEOFF]
Lloh12:
	adrp	x8, _B43_DMA64_RXRINGLO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _B43_DMA64_RXRINGLO@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_b43_dma_write
	b	LBB0_8
LBB0_6:
Lloh14:
	adrp	x20, _B43_DMA32_TXRING@GOTPAGE
Lloh15:
	ldr	x20, [x20, _B43_DMA32_TXRING@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x20, _B43_DMA32_RXRING@GOTPAGE
Lloh17:
	ldr	x20, [x20, _B43_DMA32_RXRING@GOTPAGEOFF]
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_b43_dma_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_B43_DMA_64BIT,8,3              ; @B43_DMA_64BIT
	.comm	_B43_DMA64_TXRINGLO,4,2         ; @B43_DMA64_TXRINGLO
	.comm	_B43_DMA64_TXRINGHI,4,2         ; @B43_DMA64_TXRINGHI
	.comm	_B43_DMA32_TXRING,4,2           ; @B43_DMA32_TXRING
	.comm	_B43_DMA64_RXRINGLO,4,2         ; @B43_DMA64_RXRINGLO
	.comm	_B43_DMA64_RXRINGHI,4,2         ; @B43_DMA64_RXRINGHI
	.comm	_B43_DMA32_RXRING,4,2           ; @B43_DMA32_RXRING
	.no_dead_strip	_dmacontroller_cleanup
.subsections_via_symbols
