	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	movl	8(%rdi), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	je	LBB0_2
## %bb.1:
	callq	_b43legacy_dmacontroller_tx_reset
	movq	_B43legacy_DMA32_TXRING@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	callq	_b43legacy_dmacontroller_rx_reset
	movq	_B43legacy_DMA32_RXRING@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_b43legacy_dma_write            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B43legacy_DMA32_TXRING,4,2     ## @B43legacy_DMA32_TXRING
	.comm	_B43legacy_DMA32_RXRING,4,2     ## @B43legacy_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, #8]
	ldp	w2, w1, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	bl	_b43legacy_dmacontroller_tx_reset
Lloh0:
	adrp	x8, _B43legacy_DMA32_TXRING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _B43legacy_DMA32_TXRING@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	bl	_b43legacy_dmacontroller_rx_reset
Lloh2:
	adrp	x8, _B43legacy_DMA32_RXRING@GOTPAGE
Lloh3:
	ldr	x8, [x8, _B43legacy_DMA32_RXRING@GOTPAGEOFF]
LBB0_3:
	ldr	w1, [x8]
	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	_b43legacy_dma_write
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_B43legacy_DMA32_TXRING,4,2     ; @B43legacy_DMA32_TXRING
	.comm	_B43legacy_DMA32_RXRING,4,2     ; @B43legacy_DMA32_RXRING
	.no_dead_strip	_dmacontroller_cleanup
.subsections_via_symbols
