	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_dma_chan_setup
_mic_dma_chan_setup:                    ## @mic_dma_chan_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_MIC_DMA_CHAN_MIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdi), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_mic_dma_chan_set_owner
LBB0_2:
	movq	%rbx, %rdi
	callq	_mic_dma_disable_chan
	movq	%rbx, %rdi
	callq	_mic_dma_chan_mask_intr
	movq	_MIC_DMA_REG_DCHERRMSK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mic_dma_write_reg
	movq	%rbx, %rdi
	callq	_mic_dma_chan_set_desc_ring
	movq	_MIC_DMA_REG_DTPR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mic_dma_read_reg
	movl	%eax, 16(%rbx)
	movl	%eax, 20(%rbx)
	movq	$0, 8(%rbx)
	movq	%rbx, %rdi
	callq	_mic_dma_chan_unmask_intr
	movq	%rbx, %rdi
	callq	_mic_dma_enable_chan
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_mic_dma_check_chan             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIC_DMA_CHAN_MIC,8,3           ## @MIC_DMA_CHAN_MIC
	.comm	_MIC_DMA_REG_DCHERRMSK,4,2      ## @MIC_DMA_REG_DCHERRMSK
	.comm	_MIC_DMA_REG_DTPR,4,2           ## @MIC_DMA_REG_DTPR
	.no_dead_strip	_mic_dma_chan_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_dma_chan_setup
_mic_dma_chan_setup:                    ; @mic_dma_chan_setup
	.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
Lloh0:
	adrp	x8, _MIC_DMA_CHAN_MIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MIC_DMA_CHAN_MIC@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_mic_dma_chan_set_owner
LBB0_2:
	mov	x0, x19
	bl	_mic_dma_disable_chan
	mov	x0, x19
	bl	_mic_dma_chan_mask_intr
Lloh3:
	adrp	x8, _MIC_DMA_REG_DCHERRMSK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIC_DMA_REG_DCHERRMSK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mic_dma_write_reg
	mov	x0, x19
	bl	_mic_dma_chan_set_desc_ring
Lloh6:
	adrp	x8, _MIC_DMA_REG_DTPR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIC_DMA_REG_DTPR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mic_dma_read_reg
	stp	w0, w0, [x19, #16]
	str	xzr, [x19, #8]
	mov	x0, x19
	bl	_mic_dma_chan_unmask_intr
	mov	x0, x19
	bl	_mic_dma_enable_chan
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mic_dma_check_chan
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MIC_DMA_CHAN_MIC,8,3           ; @MIC_DMA_CHAN_MIC
	.comm	_MIC_DMA_REG_DCHERRMSK,4,2      ; @MIC_DMA_REG_DCHERRMSK
	.comm	_MIC_DMA_REG_DTPR,4,2           ; @MIC_DMA_REG_DTPR
	.no_dead_strip	_mic_dma_chan_setup
.subsections_via_symbols
