	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10hdmiaudio_dmaconfig
_a10hdmiaudio_dmaconfig:                ## @a10hdmiaudio_dmaconfig
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$44, %edx
	callq	_memset
	movq	_DMA_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movl	%eax, -24(%rbp)
	movq	_DMA_BURST_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movl	%eax, -32(%rbp)
	movq	_DDMA_BLKSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, -40(%rbp)
	movq	_DDMA_WAIT_CYC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	%eax, -48(%rbp)
	movq	_DRQTYPE_SDRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_DRQTYPE_HDMIAUDIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movl	$1, -64(%rbp)
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	movq	%r14, %rdx
	callq	_SUNXI_DMA_SET_CONFIG
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_WIDTH,4,2                  ## @DMA_WIDTH
	.comm	_DMA_BURST_LEN,4,2              ## @DMA_BURST_LEN
	.comm	_DDMA_BLKSIZE,4,2               ## @DDMA_BLKSIZE
	.comm	_DDMA_WAIT_CYC,4,2              ## @DDMA_WAIT_CYC
	.comm	_DRQTYPE_SDRAM,4,2              ## @DRQTYPE_SDRAM
	.comm	_DRQTYPE_HDMIAUDIO,4,2          ## @DRQTYPE_HDMIAUDIO
	.no_dead_strip	_a10hdmiaudio_dmaconfig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10hdmiaudio_dmaconfig
_a10hdmiaudio_dmaconfig:                ; @a10hdmiaudio_dmaconfig
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #44
	bl	_memset
Lloh0:
	adrp	x8, _DMA_WIDTH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_WIDTH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
Lloh3:
	adrp	x9, _DMA_BURST_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DMA_BURST_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #32]
Lloh6:
	adrp	x8, _DDMA_BLKSIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DDMA_BLKSIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w9, [sp, #24]
Lloh9:
	adrp	x9, _DDMA_WAIT_CYC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DDMA_WAIT_CYC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _DRQTYPE_SDRAM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _DRQTYPE_SDRAM@GOTPAGEOFF]
	stp	w9, w8, [sp, #16]
Lloh14:
	ldr	w8, [x10]
	stp	w8, w9, [sp, #8]
Lloh15:
	adrp	x8, _DRQTYPE_HDMIAUDIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DRQTYPE_HDMIAUDIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	mov	w9, #1
	stp	w9, w8, [sp]
	ldp	w1, w0, [x19]
	mov	x2, sp
	bl	_SUNXI_DMA_SET_CONFIG
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_WIDTH,4,2                  ; @DMA_WIDTH
	.comm	_DMA_BURST_LEN,4,2              ; @DMA_BURST_LEN
	.comm	_DDMA_BLKSIZE,4,2               ; @DDMA_BLKSIZE
	.comm	_DDMA_WAIT_CYC,4,2              ; @DDMA_WAIT_CYC
	.comm	_DRQTYPE_SDRAM,4,2              ; @DRQTYPE_SDRAM
	.comm	_DRQTYPE_HDMIAUDIO,4,2          ; @DRQTYPE_HDMIAUDIO
	.no_dead_strip	_a10hdmiaudio_dmaconfig
.subsections_via_symbols
