	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function filter_frame
_filter_frame:                          ## @filter_frame
	.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	$40, %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	%rsi, -48(%rbp)
	movq	(%rdi), %rax
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movl	(%rsi), %esi
	movq	%rbx, %rdi
	callq	_ff_get_audio_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_av_frame_copy_props
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rax
	movq	(%rax), %rbx
	movq	_NUMTAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rax, %r14
	movl	(%r13), %esi
	addl	%esi, %esi
	callq	_FFMIN
	movslq	(%r14), %rcx
	leaq	(%r12,%rcx,4), %rdi
	movslq	%eax, %r14
	leal	(,%r14,4), %edx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_memcpy
	leaq	(%r12,%r14,4), %rsi
	movq	%r12, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_scalarproduct
	movslq	(%r13), %rcx
	addq	%rcx, %rcx
	movq	_NUMTAPS@GOTPCREL(%rip), %rdx
	movq	%rdx, %r14
	movslq	(%rdx), %rdx
	cmpl	%edx, %ecx
	jge	LBB0_3
## %bb.4:
	leaq	(%r12,%rcx,4), %rsi
	shll	$2, %edx
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memmove
	jmp	LBB0_5
LBB0_1:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_6
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	(%rdi,%rcx,4), %rbx
	shlq	$2, %rdx
	subq	%rdx, %rbx
	movq	%rbx, %rsi
	movq	%rax, %rdx
	callq	_scalarproduct
	movl	(%r14), %edx
	shll	$2, %edx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_memcpy
LBB0_5:
	leaq	-48(%rbp), %rdi
	callq	_av_frame_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ff_filter_frame
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_NUMTAPS,4,2                    ## @NUMTAPS
	.no_dead_strip	_filter_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function filter_frame
_filter_frame:                          ; @filter_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x1
	mov	x21, x0
	str	x1, [sp, #8]
	ldr	x8, [x0]
	ldr	x8, [x8, #8]
	ldr	x19, [x8]
	ldr	w1, [x1]
	mov	x0, x19
	bl	_ff_get_audio_buffer
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x1, x22
	bl	_av_frame_copy_props
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	x21, [x8]
	ldr	x8, [x20, #8]
	ldr	x24, [x8]
	ldr	x8, [x22, #8]
	ldr	x23, [x8]
Lloh0:
	adrp	x26, _NUMTAPS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _NUMTAPS@GOTPAGEOFF]
	ldr	w0, [x26]
	ldr	w8, [x22]
	lsl	w1, w8, #1
	bl	_FFMIN
	mov	x25, x0
	ldrsw	x8, [x26]
	add	x0, x21, x8, lsl #2
	lsl	w2, w25, #2
	mov	x1, x23
	bl	_memcpy
	add	x1, x21, w25, sxtw #2
	mov	x0, x21
	mov	x2, x24
	bl	_scalarproduct
	ldrsw	x8, [x22]
	lsl	x8, x8, #1
	ldrsw	x9, [x26]
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.2:
	lsl	w2, w9, #2
	add	x1, x21, x8, lsl #2
	mov	x0, x21
	bl	_memmove
	b	LBB0_5
LBB0_3:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_6
LBB0_4:
	mov	x2, x0
	add	x8, x23, x8, lsl #2
	sub	x22, x8, x9, lsl #2
	mov	x0, x23
	mov	x1, x22
	bl	_scalarproduct
	ldr	w8, [x26]
	lsl	w2, w8, #2
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
LBB0_5:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x20
	bl	_ff_filter_frame
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_NUMTAPS,4,2                    ; @NUMTAPS
	.no_dead_strip	_filter_frame
.subsections_via_symbols
