	.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, %r14
	movq	%rsi, -56(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	8(%rax), %rax
	movq	(%rax), %rbx
	movl	(%rdi), %edx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %esi
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	cmpl	$0, (%r13)
	jle	LBB0_14
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	imull	%edi, %eax
	movq	48(%r13), %rcx
	movq	64(%r13), %rdx
	imull	(%rdx,%r14,4), %eax
	movq	(%rcx,%r14,8), %rcx
	addl	%eax, (%rcx)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_irdft_vertical
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	*72(%r13)
	incq	%r14
	movslq	(%r13), %rax
	cmpq	%rax, %r14
	jge	LBB0_14
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	movl	(%rax,%r14,4), %r15d
	movl	(%rcx,%r14,4), %r12d
	movq	24(%r13), %rax
	movq	_EVAL_MODE_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_do_eval
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	*80(%r13)
	movq	%r13, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_rdft_vertical
	movq	32(%r13), %r8
	movq	40(%r13), %r9
	movl	(%r8,%r14,4), %edi
	movl	(%r9,%r14,4), %eax
	testl	%edi, %edi
	jle	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_8 Depth=2
	incl	%esi
	cmpl	%edi, %esi
	jge	LBB0_13
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	testl	%eax, %eax
	jle	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	48(%r13), %rcx
	movq	56(%r13), %rdi
	movq	(%rdi,%r14,8), %rdi
	movq	(%rcx,%r14,8), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	imull	%esi, %eax
	cltq
	addq	%rbx, %rax
	movl	(%rcx,%rax,4), %edx
	imull	(%rdi,%rax,4), %edx
	movl	%edx, (%rcx,%rax,4)
	movl	(%r9,%r14,4), %eax
	incq	%rbx
	cmpl	%eax, %ebx
	jl	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movl	(%r8,%r14,4), %edi
	jmp	LBB0_12
LBB0_14:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
	jmp	LBB0_15
LBB0_1:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_15:
	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	_EVAL_MODE_FRAME,8,3            ## @EVAL_MODE_FRAME
	.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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
	str	x1, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x22, x9, [x8]
	ldr	x19, [x9]
	ldp	w2, w1, [x0]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_14
; %bb.1:
	mov	x23, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x24, #0
Lloh0:
	adrp	x27, _EVAL_MODE_FRAME@GOTPAGE
Lloh1:
	ldr	x27, [x27, _EVAL_MODE_FRAME@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mul	w8, w10, w12
	ldr	x9, [x22, #64]
	ldr	w9, [x9, x24, lsl #2]
	ldr	x10, [x22, #48]
	ldr	x10, [x10, x24, lsl #3]
	ldr	w11, [x10]
	madd	w8, w8, w9, w11
	str	w8, [x10]
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	bl	_irdft_vertical
	ldr	x8, [x22, #72]
	mov	x0, x22
	mov	x1, x23
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	blr	x8
	add	x24, x24, #1
	ldrsw	x8, [x22]
	cmp	x24, x8
	b.ge	LBB0_13
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_11 Depth 3
	lsl	x28, x24, #2
	ldp	x8, x9, [x22, #8]
	ldr	w26, [x8, x28]
	ldr	w25, [x9, x28]
	ldr	x8, [x22, #24]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x24
	bl	_do_eval
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #80]
	mov	x0, x22
	mov	x1, x20
	mov	x2, x26
	mov	x3, x25
	mov	x4, x24
	blr	x8
	mov	x0, x22
	mov	x1, x25
	mov	x2, x24
	bl	_rdft_vertical
	ldp	x8, x9, [x22, #32]
	ldr	w12, [x8, x28]
	ldr	w10, [x9, x28]
	cmp	w12, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w11, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	add	w11, w11, #1
	cmp	w11, w12
	b.ge	LBB0_3
LBB0_9:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_11 Depth 3
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x12, #0
	lsl	x14, x24, #3
	ldp	x15, x13, [x22, #48]
	ldr	x13, [x13, x14]
	ldr	x14, [x15, x14]
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mul	w10, w11, w10
	add	x10, x12, w10, sxtw
	lsl	x10, x10, #2
	ldr	w15, [x13, x10]
	ldr	w16, [x14, x10]
	mul	w15, w16, w15
	str	w15, [x14, x10]
	ldr	w10, [x9, x24, lsl #2]
	add	x12, x12, #1
	cmp	w12, w10
	b.lt	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	w12, [x8, x24, lsl #2]
	b	LBB0_8
LBB0_13:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x23
	bl	_ff_filter_frame
	b	LBB0_15
LBB0_14:
	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
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EVAL_MODE_FRAME,8,3            ; @EVAL_MODE_FRAME
	.no_dead_strip	_filter_frame
.subsections_via_symbols
