	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atc_pcm_capture_prepare
_atc_pcm_capture_prepare:               ## @atc_pcm_capture_prepare
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	callq	_atc_pcm_release_resources
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_atc_pcm_capture_get_resources
	testl	%eax, %eax
	jne	LBB0_18
## %bb.1:
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movq	_MIX_PCMO_FRONT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rcx
	leaq	-112(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %r13d
	cmpq	$1, %r13
	jne	LBB0_2
## %bb.3:
	movq	24(%r12), %rax
	movq	48(%r12), %rbx
	movq	(%rax), %rdi
	movq	8(%rdi), %rax
	movq	-112(%rbp), %rsi
	movq	_MONO_SUM_SCALE@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rcx
	callq	*32(%rax)
	movq	24(%r12), %rax
	movq	8(%rax), %rdi
	movq	8(%rdi), %rax
	movq	-104(%rbp), %rsi
	movl	(%r14), %edx
	movq	%rbx, %rcx
	callq	*32(%rax)
	movq	%rbx, -112(%rbp)
	movl	$2, %edx
	jmp	LBB0_4
LBB0_2:
	xorl	%edx, %edx
LBB0_4:
	cmpl	$0, (%r12)
	movq	%r12, -128(%rbp)                ## 8-byte Spill
	movq	%r13, -144(%rbp)                ## 8-byte Spill
	jle	LBB0_7
## %bb.5:
	shlq	$3, %rdx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	40(%r12), %rcx
	movq	(%rcx,%r15,8), %r14
	movq	(%rax,%r15,8), %rdi
	movq	24(%r12), %rax
	addq	%rdx, %rax
	movq	(%rax,%r15,8), %rbx
	movq	(%rdi), %rcx
	movl	%r15d, %eax
	movq	%rdx, %r12
	cltd
	idivl	%r13d
	movl	%edx, %r13d
	movq	-112(%rbp,%r13,8), %rdx
	movq	%r14, %rsi
	callq	*(%rcx)
	movq	8(%rbx), %rax
	movq	_INIT_VOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%ecx, %ecx
	callq	*32(%rax)
	movq	%r12, %rdx
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movq	%rbx, -112(%rbp,%r13,8)
	movq	-144(%rbp), %r13                ## 8-byte Reload
	incq	%r15
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	jl	LBB0_6
LBB0_7:
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	movl	4(%rbx), %edi
	imull	(%rbx), %edi
	movq	32(%r12), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	callq	_atc_get_pitch
	cmpl	$2, %r13d
	jl	LBB0_9
## %bb.8:
	cmpl	$134217729, %eax                ## imm = 0x8000001
	jae	LBB0_9
## %bb.12:
	xorl	%eax, %eax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movq	-128(%rbp), %r12                ## 8-byte Reload
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	cmpq	%rdx, %rcx
	movq	%rdx, %r13
	je	LBB0_17
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	-112(%rbp,%rax,8), %rdi
	movq	(%rdi), %rax
	callq	*8(%rax)
	cmpl	$0, 4(%rbx)
	movq	%r13, %rdx
	jle	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%r13d, %r13d
	movq	-120(%rbp), %r15                ## 8-byte Reload
                                        ## kill: def $r15d killed $r15d killed $r15 def $r15
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r12), %rax
	movl	(%r12), %ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	8(%rbx), %rax
	movq	-120(%rbp), %r14                ## 8-byte Reload
	movq	-112(%rbp,%r14,8), %rsi
	movq	%rbx, %rdi
	callq	*24(%rax)
	movq	8(%rbx), %rax
	movq	_INIT_VOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	*16(%rax)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*8(%rax)
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	movq	-112(%rbp,%r14,8), %rdi
	movq	(%rdi), %rax
	callq	*(%rax)
	movq	8(%r12), %rsi
	movq	16(%r12), %rax
	movl	(%r12), %ecx
	addl	%r15d, %ecx
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	(%rdi), %rax
	movq	%rbx, %rdx
	movq	-136(%rbp), %rbx                ## 8-byte Reload
	callq	*(%rax)
	movq	-144(%rbp), %rdx                ## 8-byte Reload
	incl	%r13d
	addl	%edx, %r15d
	cmpl	4(%rbx), %r13d
	jl	LBB0_15
	jmp	LBB0_16
LBB0_9:
	testl	%r13d, %r13d
	jle	LBB0_17
## %bb.10:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rsi
	movq	16(%rcx), %rax
	movslq	(%rcx), %rcx
	addq	%rbx, %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	(%rdi), %rax
	movq	-112(%rbp,%rbx,8), %rdx
	callq	*(%rax)
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_11
LBB0_17:
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %edi
	callq	_ct_timer_prepare
	xorl	%eax, %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MIX_PCMO_FRONT,4,2             ## @MIX_PCMO_FRONT
	.comm	_MONO_SUM_SCALE,4,2             ## @MONO_SUM_SCALE
	.comm	_INIT_VOL,4,2                   ## @INIT_VOL
	.no_dead_strip	_atc_pcm_capture_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atc_pcm_capture_prepare
_atc_pcm_capture_prepare:               ; @atc_pcm_capture_prepare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #72]
	ldr	x21, [x0, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
	bl	_atc_pcm_release_resources
	mov	x0, x20
	mov	x1, x19
	bl	_atc_pcm_capture_get_resources
	cbnz	w0, LBB0_18
; %bb.1:
	ldr	x8, [x21]
Lloh3:
	adrp	x9, _MIX_PCMO_FRONT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MIX_PCMO_FRONT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	x9, sp
	orr	x3, x9, #0x8
	mov	x2, sp
	mov	x0, x21
	blr	x8
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w23, [x8]
	cmp	w23, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	x21, [x19, #48]
	ldr	x8, [x19, #24]
	ldr	x0, [x8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #32]
	ldr	x1, [sp]
Lloh6:
	adrp	x22, _MONO_SUM_SCALE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _MONO_SUM_SCALE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x3, x21
	blr	x8
	ldr	x8, [x19, #24]
	ldr	x0, [x8, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #32]
	ldr	x1, [sp, #8]
	ldr	w2, [x22]
	mov	x3, x21
	blr	x8
	str	x21, [sp]
	mov	w8, #2
	b	LBB0_4
LBB0_3:
	mov	x8, #0
LBB0_4:
	ldr	w9, [x19]
Lloh8:
	adrp	x24, _INIT_VOL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _INIT_VOL@GOTPAGEOFF]
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x25, #0
	lsl	x26, x8, #3
	mov	x27, sp
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #40]
	lsl	x9, x25, #3
	ldr	x21, [x8, x9]
	ldp	x8, x10, [x19, #16]
	ldr	x0, [x8, x9]
	add	x8, x10, x26
	ldr	x22, [x8, x9]
	ldr	x8, [x0]
	ldr	x8, [x8]
	sdiv	w9, w25, w23
	msub	w9, w9, w23, w25
	lsl	x28, x9, #3
	ldr	x2, [x27, x28]
	mov	x1, x21
	blr	x8
	ldr	x8, [x22, #8]
	ldr	x8, [x8, #32]
	ldr	w2, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x3, #0
	blr	x8
	str	x22, [x27, x28]
	add	x25, x25, #1
	ldrsw	x8, [x19]
	cmp	x25, x8
	b.lt	LBB0_6
LBB0_7:
	ldp	w8, w9, [x20]
	mul	w0, w9, w8
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	bl	_atc_get_pitch
	cmp	w23, #1
	b.le	LBB0_14
; %bb.8:
	mov	w8, #1
	movk	w8, #2048, lsl #16
	cmp	w0, w8
	b.hs	LBB0_14
; %bb.9:
	mov	x22, #0
	mov	x25, sp
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x22, x22, #1
	cmp	x22, x23
	b.eq	LBB0_17
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
	ldr	x0, [x25, x22, lsl #3]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	blr	x8
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	w26, #0
	mov	x27, x22
LBB0_13:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	w9, [x19]
	add	w9, w27, w9
	ldr	x21, [x8, w9, sxtw #3]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #24]
	lsl	x28, x22, #3
	ldr	x1, [x25, x28]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #16]
	ldr	w1, [x24]
	mov	x0, x21
	blr	x8
	ldr	x8, [x21, #8]
	ldr	x8, [x8, #8]
	mov	x0, x21
	mov	x1, #0
	blr	x8
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	mov	x0, x21
	blr	x8
	ldr	x0, [x25, x28]
	ldr	x8, [x0]
	ldr	x8, [x8]
	blr	x8
	ldr	w8, [x19]
	add	w8, w27, w8
	ldp	x1, x9, [x19, #8]
	ldr	x0, [x9, w8, sxtw #3]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x2, x21
	blr	x8
	add	w26, w26, #1
	ldr	w8, [x20, #4]
	add	w27, w27, w23
	cmp	w26, w8
	b.lt	LBB0_13
	b	LBB0_10
LBB0_14:
	cmp	w23, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x20, #0
	mov	x21, sp
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	add	x8, x20, x8
	ldp	x1, x9, [x19, #8]
	ldr	x0, [x9, x8, lsl #3]
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x2, [x21, x20, lsl #3]
	blr	x8
	add	x20, x20, #1
	cmp	x23, x20
	b.ne	LBB0_16
LBB0_17:
	ldr	w0, [x19, #4]
	bl	_ct_timer_prepare
	mov	w0, #0
LBB0_18:
	ldr	x8, [sp, #72]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_MIX_PCMO_FRONT,4,2             ; @MIX_PCMO_FRONT
	.comm	_MONO_SUM_SCALE,4,2             ; @MONO_SUM_SCALE
	.comm	_INIT_VOL,4,2                   ; @INIT_VOL
	.no_dead_strip	_atc_pcm_capture_prepare
.subsections_via_symbols
