	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_dma
_cleanup_dma:                           ## @cleanup_dma
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	callq	_MIO_EMM_DMA
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_readq
	movl	%eax, %r12d
	movq	_MIO_EMM_DMA_VAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	movl	%eax, %ebx
	movq	_MIO_EMM_DMA_DAT_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	orl	%r12d, %eax
	movl	%eax, -36(%rbp)
	movl	%r14d, %edi
	callq	_get_bus_id
	leaq	-36(%rbp), %rdi
	movl	%eax, %esi
	callq	_set_bus_id
	movl	-36(%rbp), %r14d
	movq	(%r15), %rbx
	movq	%r15, %rdi
	callq	_MIO_EMM_DMA
	addq	%rax, %rbx
	movl	%r14d, %edi
	movq	%rbx, %rsi
	callq	_writeq
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIO_EMM_DMA_VAL,4,2            ## @MIO_EMM_DMA_VAL
	.comm	_MIO_EMM_DMA_DAT_NULL,4,2       ## @MIO_EMM_DMA_DAT_NULL
	.no_dead_strip	_cleanup_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_dma
_cleanup_dma:                           ; @cleanup_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0]
	bl	_MIO_EMM_DMA
	add	x0, x0, x21
	bl	_readq
	mov	x21, x0
Lloh0:
	adrp	x8, _MIO_EMM_DMA_VAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIO_EMM_DMA_VAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_FIELD_PREP
	mov	x22, x0
Lloh3:
	adrp	x8, _MIO_EMM_DMA_DAT_NULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIO_EMM_DMA_DAT_NULL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_FIELD_PREP
	orr	w8, w0, w22
	orr	w8, w8, w21
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_get_bus_id
	mov	x1, x0
	add	x0, sp, #12
	bl	_set_bus_id
	ldr	w19, [sp, #12]
	ldr	x21, [x20]
	mov	x0, x20
	bl	_MIO_EMM_DMA
	add	x1, x0, x21
	mov	x0, x19
	bl	_writeq
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIO_EMM_DMA_VAL,4,2            ; @MIO_EMM_DMA_VAL
	.comm	_MIO_EMM_DMA_DAT_NULL,4,2       ; @MIO_EMM_DMA_DAT_NULL
	.no_dead_strip	_cleanup_dma
.subsections_via_symbols
