	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %rcx
	movq	8(%rcx), %rbx
	movslq	(%rbx), %rax
	cmpl	4(%rbx), %eax
	jge	LBB0_2
## %bb.1:
	movq	16(%rbx), %rcx
	movq	%r12, (%rcx,%rax,8)
	movl	(%r12), %ecx
	movq	8(%rbx), %rdx
	leal	1(%rax), %esi
	movl	%esi, (%rbx)
	movl	%ecx, (%rdx,%rax,4)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%rcx), %rax
	movq	(%rax), %r14
	leaq	24(%rbx), %rdi
	callq	_av_lfg_get
	movl	4(%rbx), %ecx
	cltd
	idivl	%ecx
	movq	16(%rbx), %rax
	movslq	%edx, %r13
	movq	(%rax,%r13,8), %r15
	movq	8(%rbx), %rdi
	movl	(%rdi), %eax
	movl	%eax, (%r15)
	leaq	4(%rdi), %rsi
	leal	-4(,%rcx,4), %edx
	callq	_memmove
	movq	16(%rbx), %rax
	movq	%r12, (%rax,%r13,8)
	movl	(%r12), %eax
	movq	8(%rbx), %rcx
	movslq	4(%rbx), %rdx
	movl	%eax, -4(%rcx,%rdx,4)
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ff_filter_frame                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x9, [x0]
	ldr	x22, [x9, #8]
	ldp	w8, w10, [x22]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	cmp	w8, w10
	b.ge	LBB0_2
; %bb.1:
	ldr	x9, [x22, #16]
	str	x19, [x9, x8, lsl #3]
	ldr	w9, [x19]
	ldr	x10, [x22, #8]
	add	w11, w8, #1
	str	w11, [x22]
	str	w9, [x10, x8, lsl #2]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x9]
	ldr	x20, [x8]
	add	x0, x22, #24
	bl	_av_lfg_get
	ldr	w8, [x22, #4]
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	sbfiz	x23, x9, #3, #32
	ldp	x0, x9, [x22, #8]
	ldr	x21, [x9, x23]
	mov	x1, x0
	ldr	w9, [x1], #4
	str	w9, [x21]
	lsl	w8, w8, #2
	sub	w2, w8, #4
	bl	_memmove
	ldr	x8, [x22, #16]
	str	x19, [x8, x23]
	ldr	w8, [x19]
	ldr	x9, [x22, #8]
	ldrsw	x10, [x22, #4]
	add	x9, x9, x10, lsl #2
	stur	w8, [x9, #-4]
	mov	x0, x20
	mov	x1, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ff_filter_frame
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_filter_frame
.subsections_via_symbols
