	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function li_deactivate_dma
_li_deactivate_dma:                     ## @li_deactivate_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_LI_CCTL_DMA_ENABLE@GOTPCREL(%rip), %rax
	movq	_LI_CCTL_RPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	(%r14), %r15
	movq	_LI_CCTL_WPTR@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	notl	%esi
	andl	(%rdi), %esi
	movl	%esi, (%rdi)
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGPV
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DBGPV
	movq	8(%rbx), %rax
	movl	8(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_li_writel
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	_LI_CCFG_DIR_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	$0, 152(%r15)
	movq	$0, 156(%r15)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LI_CCTL_DMA_ENABLE,4,2         ## @LI_CCTL_DMA_ENABLE
	.comm	_LI_CCTL_RPTR,4,2               ## @LI_CCTL_RPTR
	.comm	_LI_CCTL_WPTR,4,2               ## @LI_CCTL_WPTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ctlval = 0x%lx\n"

L_.str.1:                               ## @.str.1
	.asciz	"ctlreg 0x%x = 0x%lx\n"

	.comm	_LI_CCFG_DIR_OUT,8,3            ## @LI_CCFG_DIR_OUT
	.no_dead_strip	_li_deactivate_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function li_deactivate_dma
_li_deactivate_dma:                     ; @li_deactivate_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, x0
	ldr	x20, [x0, #16]
	ldr	x21, [x20]
Lloh0:
	adrp	x8, _LI_CCTL_DMA_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LI_CCTL_DMA_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LI_CCTL_RPTR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LI_CCTL_RPTR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _LI_CCTL_WPTR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _LI_CCTL_WPTR@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh8:
	ldr	w9, [x10]
	orr	w8, w8, w9
	ldr	w9, [x0]
	bic	w1, w9, w8
	str	w1, [x0]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBGPV
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	ldr	w8, [x19]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGPV
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	ldr	w2, [x19]
	mov	x0, x20
	bl	_li_writel
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _LI_CCFG_DIR_OUT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _LI_CCFG_DIR_OUT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	xzr, [x21, #152]
	stur	xzr, [x21, #156]
LBB0_3:
	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 AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_LI_CCTL_DMA_ENABLE,4,2         ; @LI_CCTL_DMA_ENABLE
	.comm	_LI_CCTL_RPTR,4,2               ; @LI_CCTL_RPTR
	.comm	_LI_CCTL_WPTR,4,2               ; @LI_CCTL_WPTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ctlval = 0x%lx\n"

l_.str.1:                               ; @.str.1
	.asciz	"ctlreg 0x%x = 0x%lx\n"

	.comm	_LI_CCFG_DIR_OUT,8,3            ; @LI_CCFG_DIR_OUT
	.no_dead_strip	_li_deactivate_dma
.subsections_via_symbols
