	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a31dmac_transfer
_a31dmac_transfer:                      ## @a31dmac_transfer
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r12
	movq	%rdx, %rdi
	movq	%rsi, %rbx
	movq	24(%rsi), %r14
	callq	_htole32
	movq	16(%rbx), %rcx
	movq	%rax, 24(%rcx)
	movq	%r12, %rdi
	callq	_htole32
	movq	16(%rbx), %rcx
	movq	%rax, 16(%rcx)
	movq	%r15, %rdi
	callq	_htole32
	movq	16(%rbx), %rcx
	movq	%rax, 8(%rcx)
	movq	_DMA_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_htole32
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx)
	movl	(%rbx), %edi
	callq	_DMA_STAR_ADDR_REG
	movq	8(%rbx), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_DMA_WRITE
	movl	(%rbx), %edi
	callq	_DMA_EN_REG
	movq	_DMA_EN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_DMA_WRITE
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_NULL,8,3                   ## @DMA_NULL
	.comm	_DMA_EN,8,3                     ## @DMA_EN
	.no_dead_strip	_a31dmac_transfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a31dmac_transfer
_a31dmac_transfer:                      ; @a31dmac_transfer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x4
	mov	x20, x3
	mov	x0, x2
	mov	x21, x1
	ldr	x22, [x1, #24]
	bl	_htole32
	ldr	x8, [x21, #16]
	str	x0, [x8, #24]
	mov	x0, x20
	bl	_htole32
	ldr	x8, [x21, #16]
	str	x0, [x8, #16]
	mov	x0, x19
	bl	_htole32
	ldr	x8, [x21, #16]
	str	x0, [x8, #8]
Lloh0:
	adrp	x8, _DMA_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	bl	_htole32
	ldr	x8, [x21, #16]
	str	x0, [x8]
	ldr	w0, [x21]
	bl	_DMA_STAR_ADDR_REG
	mov	x1, x0
	ldr	x2, [x21, #8]
	mov	x0, x22
	bl	_DMA_WRITE
	ldr	w0, [x21]
	bl	_DMA_EN_REG
	mov	x1, x0
Lloh3:
	adrp	x8, _DMA_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_EN@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	mov	x0, x22
	bl	_DMA_WRITE
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_NULL,8,3                   ; @DMA_NULL
	.comm	_DMA_EN,8,3                     ; @DMA_EN
	.no_dead_strip	_a31dmac_transfer
.subsections_via_symbols
