	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_request_dma_chans
_mic_request_dma_chans:                 ## @mic_request_dma_chans
	.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, %rbx
	callq	_dma_cap_zero
	movq	_DMA_MEMCPY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dma_cap_set
	movq	_MIC_MAX_DMA_CHAN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdx
	movq	24(%rbx), %rax
	movl	(%rax), %esi
	callq	_dma_request_channel
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rcx
	movq	16(%rbx), %rsi
	leaq	1(%rcx), %rdx
	movq	%rdx, (%rbx)
	movq	%rax, (%rsi,%rcx,8)
	cmpq	(%r14), %rdx
	jl	LBB0_1
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rdx
LBB0_4:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_MEMCPY,4,2                 ## @DMA_MEMCPY
	.comm	_MIC_MAX_DMA_CHAN,8,3           ## @MIC_MAX_DMA_CHAN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA channels # %d\n"

	.no_dead_strip	_mic_request_dma_chans
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_request_dma_chans
_mic_request_dma_chans:                 ; @mic_request_dma_chans
	.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
	bl	_dma_cap_zero
Lloh0:
	adrp	x8, _DMA_MEMCPY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_MEMCPY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_dma_cap_set
Lloh3:
	adrp	x20, _MIC_MAX_DMA_CHAN@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MIC_MAX_DMA_CHAN@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	w1, [x8]
	ldr	x2, [x19, #8]
	bl	_dma_request_channel
	cbz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x2, x9, #1
	str	x2, [x19]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x20]
	cmp	x2, x8
	b.lt	LBB0_1
	b	LBB0_4
LBB0_3:
	ldr	x2, [x19]
LBB0_4:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_MEMCPY,4,2                 ; @DMA_MEMCPY
	.comm	_MIC_MAX_DMA_CHAN,8,3           ; @MIC_MAX_DMA_CHAN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA channels # %d\n"

	.no_dead_strip	_mic_request_dma_chans
.subsections_via_symbols
