	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mic_dma_init
_mic_dma_init:                          ## @mic_dma_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	_MIC_DMA_NUM_CHAN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	jle	LBB0_8
## %bb.1:
	movslq	(%rdi), %r14
	leaq	(,%r14,4), %rax
	leaq	(%rax,%rax,4), %r12
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	(%rbx,%r12), %r13
	movl	%r14d, (%rbx,%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx,%r12)
	leaq	(%rbx,%r12), %rdi
	addq	$16, %rdi
	callq	_spin_lock_init
	leaq	(%rbx,%r12), %rdi
	addq	$12, %rdi
	callq	_spin_lock_init
	leaq	(%rbx,%r12), %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movq	%r13, %rdi
	callq	_mic_dma_setup_irq
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_MIC_DMA_NUM_CHAN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	addq	$20, %r12
	cmpq	%rax, %r14
	movq	%r15, %rdi
	jl	LBB0_2
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	cmpl	%r14d, %r15d
	jge	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%r14d
	movq	%r13, %rdi
	callq	_mic_dma_free_irq
	cmpl	%r15d, %r14d
	jg	LBB0_4
LBB0_5:
	movl	%ebx, %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MIC_DMA_NUM_CHAN,4,2           ## @MIC_DMA_NUM_CHAN
	.no_dead_strip	_mic_dma_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mic_dma_init
_mic_dma_init:                          ; @mic_dma_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x24, _MIC_DMA_NUM_CHAN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MIC_DMA_NUM_CHAN@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x25, #0
	ldr	w23, [x0]
	sxtw	x26, w23
	add	x8, x26, x26, lsl #2
	lsl	x27, x8, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x21, x8, x27
	add	w8, w23, w25
	stp	w8, w19, [x21]
	add	x0, x21, #16
	bl	_spin_lock_init
	add	x0, x21, #12
	bl	_spin_lock_init
	add	x0, x21, #8
	bl	_spin_lock_init
	mov	x0, x21
	bl	_mic_dma_setup_irq
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [x24]
	add	x8, x8, x26
	add	x25, x25, #1
	add	x27, x27, #20
	add	x9, x26, x25
	cmp	x9, x8
	b.lt	LBB0_2
LBB0_4:
	mov	w22, #0
	b	LBB0_7
LBB0_5:
	mov	x22, x0
	add	x19, x25, w26, uxtw
	cmp	w23, w19
	b.ge	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	mov	x0, x21
	bl	_mic_dma_free_irq
	cmp	w19, w23
	b.gt	LBB0_6
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MIC_DMA_NUM_CHAN,4,2           ; @MIC_DMA_NUM_CHAN
	.no_dead_strip	_mic_dma_init
.subsections_via_symbols
