	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jz4780_dma_chan_disable
_jz4780_dma_chan_disable:               ## @jz4780_dma_chan_disable
	.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
	movq	(%rdi), %rax
	movl	(%rax), %eax
	movq	_JZ_SOC_DATA_PER_CHAN_PM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	_JZ_SOC_DATA_NO_DCKES_DCKEC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movq	%rdi, %rbx
	movq	_JZ_DMA_REG_DCKEC@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%esi, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_jz4780_dma_ctrl_writel         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_JZ_SOC_DATA_PER_CHAN_PM,4,2    ## @JZ_SOC_DATA_PER_CHAN_PM
	.comm	_JZ_SOC_DATA_NO_DCKES_DCKEC,4,2 ## @JZ_SOC_DATA_NO_DCKES_DCKEC
	.comm	_JZ_DMA_REG_DCKEC,4,2           ## @JZ_DMA_REG_DCKEC
	.no_dead_strip	_jz4780_dma_chan_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jz4780_dma_chan_disable
_jz4780_dma_chan_disable:               ; @jz4780_dma_chan_disable
	.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
	ldr	x8, [x0]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _JZ_SOC_DATA_PER_CHAN_PM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _JZ_SOC_DATA_PER_CHAN_PM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _JZ_SOC_DATA_NO_DCKES_DCKEC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _JZ_SOC_DATA_NO_DCKES_DCKEC@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
Lloh6:
	adrp	x8, _JZ_DMA_REG_DCKEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _JZ_DMA_REG_DCKEC@GOTPAGEOFF]
Lloh8:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_jz4780_dma_ctrl_writel
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_JZ_SOC_DATA_PER_CHAN_PM,4,2    ; @JZ_SOC_DATA_PER_CHAN_PM
	.comm	_JZ_SOC_DATA_NO_DCKES_DCKEC,4,2 ; @JZ_SOC_DATA_NO_DCKES_DCKEC
	.comm	_JZ_DMA_REG_DCKEC,4,2           ; @JZ_DMA_REG_DCKEC
	.no_dead_strip	_jz4780_dma_chan_disable
.subsections_via_symbols
