	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atc_pcm_capture_get_resources
_atc_pcm_capture_get_resources:         ## @atc_pcm_capture_get_resources
	.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	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	_SRC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	movq	_SRCIMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, -216(%rbp)                ## 8-byte Spill
	movq	_AMIXER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	movq	_SUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -160(%rbp)
	movq	$0, -136(%rbp)
	movq	$0, -128(%rbp)
	movq	$0, -184(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	callq	_atc_pcm_release_resources
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %ebx
	movl	4(%rax), %esi
	movl	4(%r12), %edi
	imull	(%r12), %edi
	callq	_atc_get_pitch
	movl	%eax, %r14d
	leaq	-96(%rbp), %rdx
	leaq	-104(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_setup_src_node_conf
	xorl	%eax, %eax
	movl	%ebx, -100(%rbp)                ## 4-byte Spill
	cmpl	$1, %ebx
	sete	%al
	movl	-104(%rbp), %r13d
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	leal	(%r13,%rax,2), %ecx
	jle	LBB0_3
## %bb.1:
	cmpl	$134217728, %r14d               ## imm = 0x8000000
	ja	LBB0_3
## %bb.2:
	movl	4(%r12), %ebx
	imull	-100(%rbp), %ebx                ## 4-byte Folded Reload
	movq	%rcx, %r14
	addl	%ebx, %r14d
	testl	%r13d, %r13d
	jne	LBB0_4
	jmp	LBB0_5
LBB0_3:
	movl	-100(%rbp), %eax                ## 4-byte Reload
	movl	%eax, %ebx
	movq	%rcx, %r14
	testl	%r13d, %r13d
	je	LBB0_5
LBB0_4:
	leal	(,%r13,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 64(%r15)
	testq	%rax, %rax
	je	LBB0_37
LBB0_5:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.6:
	leal	(,%r14,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 48(%r15)
	testq	%rax, %rax
	je	LBB0_36
LBB0_7:
	addl	%r13d, %ebx
	leal	(,%rbx,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	je	LBB0_36
## %bb.8:
	movq	%r14, -200(%rbp)                ## 8-byte Spill
	movq	%rbx, -192(%rbp)                ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movl	$1, -160(%rbp)
	movq	_ARCRW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
	movq	$0, 56(%r15)
	cmpl	$0, -104(%rbp)
	jle	LBB0_12
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %eax
	cltd
	idivl	-100(%rbp)                      ## 4-byte Folded Reload
	cltq
	movq	%r15, %r12
	leaq	(%rax,%rax,2), %r15
	movl	-96(%rbp,%r15,8), %eax
	movl	%eax, -156(%rbp)
	movq	64(%r12), %rdx
	addq	%rbx, %rdx
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	leaq	-160(%rbp), %rsi
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_38
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	64(%r12), %rax
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	(%rax,%r13,8), %rbx
	movl	-92(%rbp,%r15,8), %r14d
	movq	(%rbx), %rax
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	*(%rax)
	movq	(%rbx), %rax
	movq	16(%rax), %rax
	movq	%rax, -232(%rbp)                ## 8-byte Spill
	movl	%r14d, %edi
	callq	_select_rom
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	*-232(%rbp)                     ## 8-byte Folded Reload
	movq	(%rbx), %rax
	movl	-80(%rbp,%r15,8), %esi
	movq	%rbx, %rdi
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	callq	*8(%rax)
	incq	56(%r12)
	incq	%r13
	movslq	-104(%rbp), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	movq	%r12, %r15
	jl	LBB0_10
LBB0_12:
	movq	$0, 40(%r15)
	movq	-200(%rbp), %rcx                ## 8-byte Reload
	testl	%ecx, %ecx
	jle	LBB0_21
## %bb.13:
	movq	-168(%rbp), %rax                ## 8-byte Reload
	addl	%eax, %eax
	movq	%rax, -168(%rbp)                ## 8-byte Spill
	movl	%eax, %ebx
	movl	%ecx, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %r12
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %eax
	movl	%eax, -128(%rbp)
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movslq	-104(%rbp), %rax
	addq	%rbx, %rax
	cmpq	%rax, %r12
	jge	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%r12d, %eax
	subl	-168(%rbp), %eax                ## 4-byte Folded Reload
	cltd
	idivl	-100(%rbp)                      ## 4-byte Folded Reload
	cltq
	leaq	(%rax,%rax,2), %rax
	movl	-88(%rbp,%rax,8), %eax
	movl	%eax, -128(%rbp)
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	$1, -128(%rbp)
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	leaq	(,%r12,4), %rdx
	addq	48(%r15), %rdx
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	leaq	-128(%rbp), %rsi
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_39
## %bb.20:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	40(%r15)
	incq	%r12
	cmpq	%r13, %r12
	jne	LBB0_14
LBB0_21:
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movl	4(%r12), %eax
	movl	%eax, -184(%rbp)
	leaq	32(%r15), %rdx
	leaq	-184(%rbp), %rsi
	movq	-208(%rbp), %rdi                ## 8-byte Reload
	callq	*16(%rdi)
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_41
## %bb.22:
	movl	4(%r12), %edi
	imull	(%r12), %edi
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	4(%rax), %esi
	callq	_atc_get_pitch
	movl	%eax, -120(%rbp)                ## 4-byte Spill
	movq	$0, 16(%r15)
	movq	-192(%rbp), %rax                ## 8-byte Reload
	testl	%eax, %eax
	jle	LBB0_33
## %bb.23:
	movl	%eax, %r12d
	xorl	%ebx, %ebx
	leaq	-240(%rbp), %r13
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movslq	-104(%rbp), %rax
	cmpq	%rax, %rbx
	jge	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	%ebx, %eax
	cltd
	idivl	-100(%rbp)                      ## 4-byte Folded Reload
	cltq
	leaq	(%rax,%rax,2), %rax
	movl	-84(%rbp,%rax,8), %eax
	movl	%eax, -136(%rbp)
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	cmpl	$1, -100(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=1
	movl	$1, %eax
	cmpl	$134217728, -120(%rbp)          ## 4-byte Folded Reload
                                        ## imm = 0x8000000
	ja	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	4(%rax), %eax
LBB0_29:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	%eax, -136(%rbp)
	jmp	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_24 Depth=1
	movl	$1, -136(%rbp)
LBB0_31:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	-216(%rbp), %rdi                ## 8-byte Reload
	leaq	-136(%rbp), %rsi
	movq	%r13, %rdx
	callq	*24(%rdi)
	testl	%eax, %eax
	jne	LBB0_39
## %bb.32:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	-240(%rbp), %rax
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	16(%r15)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_24
LBB0_33:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -160(%rbp)
	movl	$1, -156(%rbp)
	movq	_MEMWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -152(%rbp)
	leaq	-160(%rbp), %rsi
	movq	-176(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rdx
	callq	*(%rdi)
	movl	%eax, %r14d
	testl	%eax, %eax
	movq	-112(%rbp), %r12                ## 8-byte Reload
	jne	LBB0_41
## %bb.34:
	movq	(%r15), %rdi
	movq	(%rdi), %rax
	movl	-120(%rbp), %esi                ## 4-byte Reload
	callq	*(%rax)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_ct_map_audio_buffer
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jns	LBB0_42
## %bb.35:
	movl	%eax, %r14d
	jmp	LBB0_41
LBB0_36:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_41
LBB0_37:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_42
LBB0_38:
	movl	%eax, %r14d
	movq	%r12, %r15
	jmp	LBB0_40
LBB0_39:
	movl	%eax, %r14d
LBB0_40:
	movq	-112(%rbp), %r12                ## 8-byte Reload
LBB0_41:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_atc_pcm_release_resources
LBB0_42:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_44
## %bb.43:
	movl	%r14d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_44:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SRC,8,3                        ## @SRC
	.comm	_SRCIMP,8,3                     ## @SRCIMP
	.comm	_AMIXER,8,3                     ## @AMIXER
	.comm	_SUM,8,3                        ## @SUM
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ARCRW,4,2                      ## @ARCRW
	.comm	_MEMWR,4,2                      ## @MEMWR
	.no_dead_strip	_atc_pcm_capture_get_resources
.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_get_resources
_atc_pcm_capture_get_resources:         ; @atc_pcm_capture_get_resources
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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	x26, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh3:
	adrp	x8, _SRC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SRC@GOTPAGEOFF]
	ldr	x9, [x0, #8]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
Lloh6:
	adrp	x8, _SRCIMP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SRCIMP@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x24, [x9, x8, lsl #3]
Lloh9:
	adrp	x8, _AMIXER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AMIXER@GOTPAGEOFF]
	mov	w22, #1
	movk	w22, #2048, lsl #16
Lloh11:
	ldr	x8, [x8]
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _SUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SUM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	x28, [x9, x8, lsl #3]
	stp	xzr, xzr, [sp, #96]
	str	xzr, [sp, #88]
	stp	xzr, xzr, [sp, #64]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #128]
	str	q0, [sp, #112]
	bl	_atc_pcm_release_resources
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldp	w27, w1, [x8]
	cmp	w27, #1
	cset	w21, eq
	mov	x20, x27
	ldp	w8, w9, [x26]
	mul	w0, w9, w8
	bl	_atc_get_pitch
	mov	x25, x0
	add	x2, sp, #112
	add	x3, sp, #60
	mov	x0, x26
	mov	x1, x19
	bl	_setup_src_node_conf
	lsl	w23, w21, #1
	ldr	w21, [sp, #60]
	add	w8, w21, w23
	str	w27, [sp, #56]                  ; 4-byte Folded Spill
	cmp	w27, #2
	b.lt	LBB0_3
; %bb.1:
	cmp	w25, w22
	mov	x25, x8
	b.hs	LBB0_4
; %bb.2:
	ldr	w8, [x26, #4]
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	mul	w20, w8, w9
	add	w25, w20, w25
	b	LBB0_4
LBB0_3:
	mov	x25, x8
LBB0_4:
Lloh15:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh16:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	cbz	w21, LBB0_6
; %bb.5:
	lsl	w0, w21, #3
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #64]
	cbz	x0, LBB0_39
LBB0_6:
	cbz	w25, LBB0_8
; %bb.7:
	lsl	w0, w25, #3
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #48]
	cbz	x0, LBB0_38
LBB0_8:
	add	w8, w20, w21
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	lsl	w0, w8, #3
	ldr	w1, [x22]
	bl	_kzalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_38
; %bb.9:
	str	w25, [sp, #20]                  ; 4-byte Folded Spill
	stp	x24, x28, [sp]                  ; 16-byte Folded Spill
	str	x26, [sp, #40]                  ; 8-byte Folded Spill
	mov	w8, #1
Lloh17:
	adrp	x9, _ARCRW@GOTPAGE
Lloh18:
	ldr	x9, [x9, _ARCRW@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w8, [sp, #96]
	str	w9, [sp, #104]
	str	xzr, [x19, #56]
	ldr	w8, [sp, #60]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.10:
	mov	x27, #0
	mov	x22, #0
	mov	w20, #24
	add	x21, sp, #112
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	sdiv	w26, w22, w8
	smull	x8, w26, w20
	ldr	w8, [x21, x8]
	str	w8, [sp, #100]
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x0]
	ldr	x9, [x19, #64]
	add	x2, x9, x27
	add	x1, sp, #96
	blr	x8
	cbnz	w0, LBB0_40
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	sxtw	x8, w26
	ldr	x9, [x19, #64]
	ldr	x25, [x9, x22, lsl #3]
	madd	x24, x8, x20, x21
	ldr	w26, [x24, #4]
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x25
	mov	x1, x26
	blr	x8
	ldr	x8, [x25]
	ldr	x28, [x8, #16]
	mov	x0, x26
	bl	_select_rom
	mov	x1, x0
	mov	x0, x25
	blr	x28
	ldr	x8, [x25]
	ldr	x8, [x8, #8]
	ldr	w1, [x24, #16]
	mov	x0, x25
	blr	x8
	ldr	x8, [x19, #56]
	add	x8, x8, #1
	str	x8, [x19, #56]
	add	x22, x22, #1
	ldrsw	x8, [sp, #60]
	add	x27, x27, #8
	cmp	x22, x8
	b.lt	LBB0_11
LBB0_13:
	str	xzr, [x19, #40]
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, #1
	mov	w28, #1
	movk	w28, #2048, lsl #16
	ldr	x24, [sp, #24]                  ; 8-byte Folded Reload
	b.lt	LBB0_22
; %bb.14:
	mov	x20, #0
	mov	w21, #24
	add	x22, sp, #112
	mov	w26, #1
	mov	w27, w8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	x20, x23
	b.hs	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w8, [x8, #4]
	str	w8, [sp, #72]
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	ldrsw	x8, [sp, #60]
	add	x8, x8, w23, uxtw
	cmp	x20, x8
	b.ge	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	w8, w20, w23
	ldr	w9, [sp, #56]                   ; 4-byte Folded Reload
	sdiv	w8, w8, w9
	smaddl	x8, w8, w21, x22
	ldr	w8, [x8, #8]
	str	w8, [sp, #72]
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	str	w26, [sp, #72]
LBB0_20:                                ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x24, #8]
	ldr	x9, [x19, #48]
	add	x2, x9, x20, lsl #2
	add	x1, sp, #72
	mov	x0, x24
	blr	x8
	cbnz	w0, LBB0_40
; %bb.21:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x8, [x19, #40]
	add	x8, x8, #1
	str	x8, [x19, #40]
	add	x20, x20, #1
	cmp	x20, x27
	b.ne	LBB0_15
LBB0_22:
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w8, [x26, #4]
	str	w8, [sp, #64]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x0, #16]
	add	x2, x19, #32
	add	x1, sp, #64
	blr	x8
	mov	x25, x0
	cbnz	w0, LBB0_41
; %bb.23:
	ldp	w8, w9, [x26]
	mul	w0, w9, w8
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w1, [x8, #4]
	bl	_atc_get_pitch
	mov	x23, x0
	str	xzr, [x19, #16]
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	w8, #1
	ldr	x27, [sp]                       ; 8-byte Folded Reload
	b.lt	LBB0_35
; %bb.24:
	mov	x20, #0
	mov	w21, #24
	add	x22, sp, #112
	mov	w24, #1
LBB0_25:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [sp, #60]
	cmp	x20, x8
	b.ge	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	sdiv	w8, w20, w8
	smaddl	x8, w8, w21, x22
	ldr	w8, [x8, #12]
	b	LBB0_32
LBB0_27:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [sp, #56]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_30
; %bb.28:                               ;   in Loop: Header=BB0_25 Depth=1
	cmp	w23, w28
	b.hs	LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	w8, [x26, #4]
	b	LBB0_32
LBB0_30:                                ;   in Loop: Header=BB0_25 Depth=1
	str	w24, [sp, #88]
	b	LBB0_33
LBB0_31:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	w8, #1
LBB0_32:                                ;   in Loop: Header=BB0_25 Depth=1
	str	w8, [sp, #88]
LBB0_33:                                ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x27, #24]
	add	x1, sp, #88
	add	x2, sp, #80
	mov	x0, x27
	blr	x8
	cbnz	w0, LBB0_44
; %bb.34:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [sp, #80]
	ldr	x9, [x19, #24]
	str	x8, [x9, x20, lsl #3]
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #16]
	add	x20, x20, #1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	cmp	x8, x20
	b.ne	LBB0_25
LBB0_35:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #1
	stp	w8, w9, [sp, #96]
Lloh20:
	adrp	x8, _MEMWR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MEMWR@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	str	w8, [sp, #104]
	ldr	x0, [sp, #48]                   ; 8-byte Folded Reload
	ldr	x8, [x0]
	add	x1, sp, #96
	mov	x2, x19
	blr	x8
	mov	x25, x0
	cbnz	w0, LBB0_41
; %bb.36:
	ldr	x0, [x19]
	ldr	x8, [x0]
	ldr	x8, [x8]
	mov	x1, x23
	blr	x8
	mov	x0, x26
	mov	x1, x19
	bl	_ct_map_audio_buffer
	tbnz	w0, #31, LBB0_44
; %bb.37:
	mov	w25, #0
	b	LBB0_42
LBB0_38:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_41
LBB0_39:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_42
LBB0_40:
	mov	x25, x0
	ldr	x26, [sp, #40]                  ; 8-byte Folded Reload
LBB0_41:
	mov	x0, x26
	mov	x1, x19
	bl	_atc_pcm_release_resources
LBB0_42:
	ldur	x8, [x29, #-96]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.43:
	mov	x0, x25
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_44:
	mov	x25, x0
	b	LBB0_41
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_SRC,8,3                        ; @SRC
	.comm	_SRCIMP,8,3                     ; @SRCIMP
	.comm	_AMIXER,8,3                     ; @AMIXER
	.comm	_SUM,8,3                        ; @SUM
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ARCRW,4,2                      ; @ARCRW
	.comm	_MEMWR,4,2                      ; @MEMWR
	.no_dead_strip	_atc_pcm_capture_get_resources
.subsections_via_symbols
