	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atc_pcm_release_resources
_atc_pcm_release_resources:             ## @atc_pcm_release_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	_SRC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_AMIXER@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	_SUM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	56(%rsi), %rdi
	testq	%rdi, %rdi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.1:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rbx
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.2:
	movq	_SRCIMP@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r14
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%r15,8), %r12
	movq	(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*24(%r14)
	movq	56(%r13), %rax
	movq	$0, (%rax,%r15,8)
	incq	%r15
	movslq	(%r13), %rax
	movq	56(%r13), %rdi
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	callq	_kfree
	movq	$0, 56(%r13)
	movq	%rbx, %r14
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_5:
	movq	48(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	cmpl	$0, 4(%r13)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rbx,8), %rsi
	movq	%r15, %rdi
	callq	*(%r15)
	movq	48(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	4(%r13), %rax
	movq	48(%r13), %rdi
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	callq	_kfree
	movq	$0, 48(%r13)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_10:
	movq	40(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.11:
	cmpl	$0, 8(%r13)
	jle	LBB0_14
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rbx,8), %rsi
	movq	%rdx, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	callq	*16(%rax)
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	40(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	incq	%rbx
	movslq	8(%r13), %rax
	movq	40(%r13), %rdi
	cmpq	%rax, %rbx
	jl	LBB0_13
LBB0_14:
	callq	_kfree
	movq	$0, 40(%r13)
LBB0_15:
	movq	32(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	callq	*8(%r12)
	movq	$0, 32(%r13)
LBB0_17:
	movq	24(%r13), %rsi
	testq	%rsi, %rsi
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	callq	*(%r15)
	movq	$0, 24(%r13)
LBB0_19:
	cmpq	$0, 16(%r13)
	je	LBB0_21
## %bb.20:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ct_unmap_audio_buffer
	movq	$0, 16(%r13)
LBB0_21:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SRC,8,3                        ## @SRC
	.comm	_SRCIMP,8,3                     ## @SRCIMP
	.comm	_AMIXER,8,3                     ## @AMIXER
	.comm	_SUM,8,3                        ## @SUM
	.no_dead_strip	_atc_pcm_release_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_release_resources
_atc_pcm_release_resources:             ; @atc_pcm_release_resources
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SRC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SRC@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _AMIXER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AMIXER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x23, [x8, x9, lsl #3]
Lloh6:
	adrp	x9, _SUM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SUM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x22, [x8, x9, lsl #3]
	ldr	x0, [x1, #56]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w9, [x19]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x26, #0
Lloh9:
	adrp	x9, _SRCIMP@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SRCIMP@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x24, [x8, x9, lsl #3]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x27, x26, #3
	ldr	x25, [x0, x27]
	ldr	x8, [x25]
	ldr	x8, [x8]
	mov	x0, x25
	blr	x8
	ldr	x8, [x24, #24]
	mov	x0, x24
	mov	x1, x25
	blr	x8
	ldr	x8, [x19, #56]
	str	xzr, [x8, x27]
	add	x26, x26, #1
	ldrsw	x8, [x19]
	ldr	x0, [x19, #56]
	cmp	x26, x8
	b.lt	LBB0_3
LBB0_4:
	bl	_kfree
	str	xzr, [x19, #56]
LBB0_5:
	ldr	x0, [x19, #48]
	cbz	x0, LBB0_10
; %bb.6:
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	lsl	x25, x24, #3
	ldr	x1, [x0, x25]
	mov	x0, x21
	blr	x8
	ldr	x8, [x19, #48]
	str	xzr, [x8, x25]
	add	x24, x24, #1
	ldrsw	x8, [x19, #4]
	ldr	x0, [x19, #48]
	cmp	x24, x8
	b.lt	LBB0_8
LBB0_9:
	bl	_kfree
	str	xzr, [x19, #48]
LBB0_10:
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_15
; %bb.11:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x24, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #16]
	lsl	x25, x24, #3
	ldr	x1, [x0, x25]
	mov	x0, x23
	blr	x8
	ldr	x8, [x19, #40]
	str	xzr, [x8, x25]
	add	x24, x24, #1
	ldrsw	x8, [x19, #8]
	ldr	x0, [x19, #40]
	cmp	x24, x8
	b.lt	LBB0_13
LBB0_14:
	bl	_kfree
	str	xzr, [x19, #40]
LBB0_15:
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_17
; %bb.16:
	ldr	x8, [x22, #8]
	mov	x0, x22
	blr	x8
	str	xzr, [x19, #32]
LBB0_17:
	ldr	x1, [x19, #24]
	cbz	x1, LBB0_19
; %bb.18:
	ldr	x8, [x21]
	mov	x0, x21
	blr	x8
	str	xzr, [x19, #24]
LBB0_19:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x20
	mov	x1, x19
	bl	_ct_unmap_audio_buffer
	str	xzr, [x19, #16]
LBB0_21:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SRC,8,3                        ; @SRC
	.comm	_SRCIMP,8,3                     ; @SRCIMP
	.comm	_AMIXER,8,3                     ; @AMIXER
	.comm	_SUM,8,3                        ; @SUM
	.no_dead_strip	_atc_pcm_release_resources
.subsections_via_symbols
