	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function li_shutdown_dma
_li_shutdown_dma:                       ## @li_shutdown_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	(%r14), %r15
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_DBGEV
	movq	_LI_CCTL_DMA_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	8(%rbx), %edx
	movl	%edx, 8(%rbx)
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DBGPV
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	callq	_li_writel
	testq	%r15, %r15
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_LI_CCFG_DIR_OUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	$0, 1280(%r15)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(chan=0x%p)\n"

	.comm	_LI_CCTL_DMA_ENABLE,4,2         ## @LI_CCTL_DMA_ENABLE
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_shutdown_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function li_shutdown_dma
_li_shutdown_dma:                       ; @li_shutdown_dma
	.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, x0
	ldr	x20, [x0, #16]
	ldr	x21, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DBGEV
Lloh2:
	adrp	x8, _LI_CCTL_DMA_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LI_CCTL_DMA_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	bic	w2, w9, w8
	str	w2, [x19, #8]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DBGPV
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
	ldr	w2, [x19, #8]
	mov	x0, x20
	bl	_li_writel
	cbz	x21, LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _LI_CCFG_DIR_OUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LI_CCFG_DIR_OUT@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	str	xzr, [x21, #1280]
LBB0_3:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(chan=0x%p)\n"

	.comm	_LI_CCTL_DMA_ENABLE,4,2         ; @LI_CCTL_DMA_ENABLE
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_shutdown_dma
.subsections_via_symbols
