	.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, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	8(%rax), %r12
	movl	(%rsi), %r13d
	movl	4(%rsi), %ebx
	movl	16(%rsi), %edi
	callq	_av_sample_fmt_is_planar
	testl	%eax, %eax
	movl	$1, %r10d
	movl	%ebx, %edx
	cmovel	%r10d, %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.1:
	testl	%eax, %eax
	cmovel	%ebx, %r10d
	imull	%r13d, %r10d
	movq	8(%r15), %r8
	movl	%edx, %r9d
	movl	%r10d, %esi
	andl	$-2, %esi
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%r9, %rdi
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r10d, %r10d
	jle	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8,%rdi,8), %rbx
	movq	(%r12), %rax
	xorl	%edx, %edx
	cmpl	$1, %r10d
	je	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	(%rbx,%rdx,4), %rcx
	incl	131072(%rax,%rcx,4)
	movslq	4(%rbx,%rdx,4), %rcx
	incl	131072(%rax,%rcx,4)
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_4
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r10b
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rbx,%rdx,4), %rcx
	incl	131072(%rax,%rcx,4)
	jmp	LBB0_7
LBB0_8:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	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
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x21, [x8, #8]
	ldp	w22, w23, [x1]
	ldr	w0, [x1, #16]
	bl	_av_sample_fmt_is_planar
	cmp	w0, #0
	csinc	w8, w23, wzr, ne
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
	cmp	w0, #0
	csinc	w10, w23, wzr, eq
	mul	w10, w10, w22
	ldr	x11, [x19, #8]
	mov	w12, #131072
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w10, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x11, x9, lsl #3]
	ldr	x14, [x21]
	mov	x15, x10
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrsw	x16, [x13], #4
	add	x16, x14, x16, lsl #2
	ldr	w17, [x16, x12]
	add	w17, w17, #1
	str	w17, [x16, x12]
	subs	x15, x15, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_6:
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w0, [x8]
	mov	x1, x19
	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
