	.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, %r15
	movq	%rsi, -56(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	40(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rsi), %edx
	movl	(%rax), %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	imull	%edx, %r13d
	addl	$32, %r13d
	movq	(%rcx), %r12
	movq	%rax, %r14
	movl	20(%rax), %edi
	movq	(%r12), %rsi
	callq	_swr_get_delay
	testq	%rax, %rax
	jle	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movl	$4096, %edi                     ## imm = 0x1000
	movl	%r13d, %esi
	callq	_FFMAX
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_FFMIN
	addl	%r13d, %eax
	movl	%eax, %r13d
LBB0_2:
	movq	%r14, %rbx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_ff_get_audio_buffer
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_av_frame_copy_props
	movl	32(%r12), %eax
	movl	%eax, 40(%r14)
	movl	28(%r12), %eax
	movl	%eax, 36(%r14)
	movl	24(%r12), %eax
	movl	%eax, 32(%r14)
	movq	(%r12), %rsi
	movq	%rsi, 8(%r14)
	movq	16(%r15), %rdi
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_5
## %bb.6:
	movq	%rdi, 16(%r14)
	jmp	LBB0_7
LBB0_3:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_10
LBB0_5:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	imulq	8(%rbx), %rsi
	imulq	(%rbx), %rsi
	movl	16(%rbx), %edx
	callq	_av_rescale
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	20(%rcx), %edi
	movq	%rax, %rsi
	callq	_swr_next_pts
	movq	(%rbx), %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rax, %rdi
	callq	_ROUNDED_DIV
	movq	%rax, 16(%r14)
	movq	%rax, 8(%rbx)
LBB0_7:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	20(%rbx), %edi
	movq	24(%r14), %rsi
	movq	24(%r15), %rcx
	movl	%r13d, %edx
	callq	_swr_convert
	testl	%eax, %eax
	jle	LBB0_8
## %bb.9:
	xorl	%ecx, %ecx
	cmpl	%eax, (%r14)
	sete	%cl
	movl	%ecx, 16(%rbx)
	movl	%eax, (%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_ff_filter_frame
	movl	%eax, %ebx
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movl	%ebx, %eax
	jmp	LBB0_10
LBB0_8:
	leaq	-80(%rbp), %rdi
	callq	_av_frame_free
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	xorl	%eax, %eax
LBB0_10:
	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	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.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	x21, x1
	mov	x23, x0
	str	x1, [sp, #8]
	ldr	x8, [x0, #40]
	ldr	w20, [x1]
	ldp	x8, x25, [x8]
	ldr	w9, [x25]
	orr	w10, wzr, #0x20
	madd	w22, w9, w20, w10
	ldr	x19, [x8]
	ldr	w0, [x25, #20]
	ldr	x1, [x19]
	bl	_swr_get_delay
	cmp	x0, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x24, x0
	mov	w0, #4096
	mov	x1, x22
	bl	_FFMAX
	mov	x1, x0
	mov	x0, x24
	bl	_FFMIN
	add	w22, w22, w0
LBB0_2:
	mov	x0, x19
	mov	x1, x22
	bl	_ff_get_audio_buffer
	str	x0, [sp]
	cbz	x0, LBB0_5
; %bb.3:
	mov	x24, x0
	mov	x1, x21
	bl	_av_frame_copy_props
	ldr	w8, [x19, #32]
	str	w8, [x24, #40]
	ldr	d0, [x19, #24]
	str	d0, [x24, #32]
	ldr	x8, [x19]
	str	x8, [x24, #8]
	ldr	x0, [x21, #16]
Lloh0:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ne	LBB0_6
; %bb.4:
	str	x0, [x24, #16]
	b	LBB0_7
LBB0_5:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_10
LBB0_6:
	ldp	x10, x9, [x23]
	mul	x8, x9, x8
	mul	x1, x8, x10
	ldr	w2, [x23, #16]
	bl	_av_rescale
	mov	x1, x0
	ldr	w0, [x25, #20]
	bl	_swr_next_pts
	ldr	x1, [x23]
	bl	_ROUNDED_DIV
	str	x0, [x24, #16]
	str	x0, [x25, #8]
LBB0_7:
	ldr	w0, [x25, #20]
	ldr	x1, [x24, #24]
	ldr	x3, [x21, #24]
	mov	x2, x22
	mov	x4, x20
	bl	_swr_convert
	cmp	w0, #0
	b.le	LBB0_9
; %bb.8:
	ldr	w8, [x24]
	cmp	w8, w0
	cset	w8, eq
	str	w8, [x25, #16]
	str	w0, [x24]
	mov	x0, x19
	mov	x1, x24
	bl	_ff_filter_frame
	mov	x19, x0
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	b	LBB0_10
LBB0_9:
	mov	x0, sp
	bl	_av_frame_free
	add	x0, sp, #8
	bl	_av_frame_free
	mov	w0, #0
LBB0_10:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.no_dead_strip	_filter_frame
.subsections_via_symbols
