	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function k3_dma_enable_dma
_k3_dma_enable_dma:                     ## @k3_dma_enable_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_CH_PRI@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	xorl	%edi, %edi
	callq	_writel_relaxed
	movq	(%r14), %rsi
	movl	$65535, %ebx                    ## imm = 0xFFFF
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_INT_TC1_MASK@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_INT_TC2_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_INT_ERR1_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel_relaxed
	movq	_INT_ERR2_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel_relaxed                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CH_PRI,8,3                     ## @CH_PRI
	.comm	_INT_TC1_MASK,8,3               ## @INT_TC1_MASK
	.comm	_INT_TC2_MASK,8,3               ## @INT_TC2_MASK
	.comm	_INT_ERR1_MASK,8,3              ## @INT_ERR1_MASK
	.comm	_INT_ERR2_MASK,8,3              ## @INT_ERR2_MASK
	.no_dead_strip	_k3_dma_enable_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function k3_dma_enable_dma
_k3_dma_enable_dma:                     ; @k3_dma_enable_dma
	.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]
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _CH_PRI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CH_PRI@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel_relaxed
	ldr	x8, [x19]
	mov	w20, #65535
	b	LBB0_3
LBB0_2:
	mov	w20, #0
LBB0_3:
Lloh3:
	adrp	x9, _INT_TC1_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _INT_TC1_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _INT_TC2_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INT_TC2_MASK@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh9:
	adrp	x9, _INT_ERR1_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _INT_ERR1_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel_relaxed
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _INT_ERR2_MASK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INT_ERR2_MASK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel_relaxed
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CH_PRI,8,3                     ; @CH_PRI
	.comm	_INT_TC1_MASK,8,3               ; @INT_TC1_MASK
	.comm	_INT_TC2_MASK,8,3               ; @INT_TC2_MASK
	.comm	_INT_ERR1_MASK,8,3              ; @INT_ERR1_MASK
	.comm	_INT_ERR2_MASK,8,3              ; @INT_ERR2_MASK
	.no_dead_strip	_k3_dma_enable_dma
.subsections_via_symbols
