	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function clear_capture_buf
_clear_capture_buf:                     ## @clear_capture_buf
	.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	8(%rdi), %rcx
	movq	16(%rdi), %rax
	cmpq	%rcx, %rax
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r14
	movq	24(%rdi), %rdx
	movq	(%rdx), %r12
	movq	(%r12), %rdi
	movl	%esi, %edx
	addq	%rcx, %rdx
	movl	%eax, %r15d
	subl	%ecx, %r15d
	cmpq	%rax, %rdx
	cmovlel	%esi, %r15d
	movl	(%r14), %ebx
	leal	(%rbx,%r15), %ecx
	movl	%eax, %r13d
	subl	%ebx, %r13d
	cmpq	%rcx, %rax
	cmovgel	%r15d, %r13d
	movl	12(%r12), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	addq	%rdi, %rbx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_bytes_to_frames
	imull	8(%r12), %eax
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_snd_pcm_format_set_silence
	addq	%r13, 8(%r14)
	subl	%r13d, %r15d
	je	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %eax
	movq	16(%r14), %rbx
	cmpq	%rax, %rbx
	cmovgel	%r15d, %ebx
	movl	12(%r12), %r13d
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_bytes_to_frames
	imull	8(%r12), %eax
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, %edx
	callq	_snd_pcm_format_set_silence
	addq	%rbx, 8(%r14)
	subl	%ebx, %r15d
	jne	LBB0_2
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_clear_capture_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function clear_capture_buf
_clear_capture_buf:                     ; @clear_capture_buf
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldp	x9, x8, [x0, #8]
	cmp	x8, x9
	b.le	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x10, [x0, #24]
	ldr	x20, [x10]
	ldr	x21, [x20]
	ldr	w10, [x0]
	add	x11, x9, w1, uxtw
	sub	w9, w8, w9
	cmp	x11, x8
	csel	w25, w9, w1, gt
	sub	w9, w8, w10
	add	w11, w10, w25
	cmp	x8, x11
	csel	w22, w9, w25, lt
	ldr	w23, [x20, #12]
	add	x24, x21, x10
	mov	x0, x20
	mov	x1, x22
	bl	_bytes_to_frames
	ldr	w8, [x20, #8]
	mul	w2, w8, w0
	mov	x0, x23
	mov	x1, x24
	bl	_snd_pcm_format_set_silence
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	str	x8, [x19, #8]
	subs	w24, w25, w22
	b.eq	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	cmp	x8, w24, uxtw
	csel	w22, w8, w24, lt
	ldr	w23, [x20, #12]
	mov	x0, x20
	mov	x1, x22
	bl	_bytes_to_frames
	ldr	w8, [x20, #8]
	mul	w2, w8, w0
	mov	x0, x23
	mov	x1, x21
	bl	_snd_pcm_format_set_silence
	ldr	x8, [x19, #8]
	add	x8, x8, x22
	str	x8, [x19, #8]
	subs	w24, w24, w22
	b.ne	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_clear_capture_buf
.subsections_via_symbols
