	.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	$88, %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	%rdi, %r13
	movq	%rsi, -64(%rbp)
	movq	8(%rdi), %rax
	movq	8(%rax), %rbx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rax
	movq	(%rax), %r15
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_ff_get_video_buffer
	movq	%rax, -128(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	movq	(%rbx), %rax
	movq	_EVAL_MODE_FRAME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_calc_persp_luts
	testl	%eax, %eax
	js	LBB0_4
LBB0_5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	cmpl	$0, 8(%rbx)
	jle	LBB0_10
## %bb.6:
	xorl	%r12d, %r12d
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%eax, -96(%rbp)
	movl	%ecx, -92(%rbp)
	movq	24(%rbx), %rax
	movl	(%rax,%r12,4), %r14d
	movl	%r14d, -88(%rbp)
	movq	32(%rbx), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -84(%rbp)
	movq	-112(%rbp), %rcx                ## 8-byte Reload
	movq	(%rcx), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -80(%rbp)
	movq	8(%rcx), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -76(%rbp)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -72(%rbp)
	movq	8(%rcx), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, -68(%rbp)
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	20(%rbx), %r13d
	movq	%r15, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	movq	%r15, %rdi
	movl	%r13d, %esi
	leaq	-96(%rbp), %rdx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	*-120(%rbp)                     ## 8-byte Folded Reload
	incq	%r12
	movslq	8(%rbx), %rax
	cmpq	%rax, %r12
	jge	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %edx
	movl	$0, %eax
	movl	$0, %ecx
	cmpl	$1, %edx
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	12(%rbx), %eax
	movl	16(%rbx), %ecx
	jmp	LBB0_9
LBB0_10:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
	jmp	LBB0_11
LBB0_1:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_11:
	movl	%eax, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %r13d
	leaq	-128(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_12
	.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, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x23, x0
	str	x1, [sp, #40]
	ldr	x21, [x0, #8]
	ldp	x25, x8, [x21, #8]
	ldr	x19, [x8]
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	str	x0, [sp, #32]
	cbz	x0, LBB0_10
; %bb.1:
	mov	x22, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	x8, [x25]
Lloh0:
	adrp	x9, _EVAL_MODE_FRAME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EVAL_MODE_FRAME@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	mov	x1, x23
	bl	_calc_persp_luts
	tbnz	w0, #31, LBB0_13
LBB0_3:
	ldr	w8, [x25, #8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x26, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	d0, [x25, #12]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	str	d0, [sp]
	lsl	x8, x26, #2
	ldp	x9, x10, [x25, #24]
	ldr	w23, [x9, x8]
	str	w23, [sp, #8]
	ldr	w9, [x10, x8]
	str	w9, [sp, #12]
	ldp	x9, x10, [x20]
	ldr	w9, [x9, x8]
	str	w9, [sp, #16]
	ldr	w9, [x10, x8]
	str	w9, [sp, #20]
	ldr	x9, [x22]
	ldr	w9, [x9, x8]
	str	w9, [sp, #24]
	ldr	x9, [x22, #8]
	ldr	w8, [x9, x8]
	str	w8, [sp, #28]
	ldr	x8, [x21]
	ldr	x27, [x8]
	ldr	w24, [x25, #20]
	mov	x0, x21
	bl	_ff_filter_get_nb_threads
	mov	x1, x0
	mov	x0, x23
	bl	_FFMIN
	mov	x4, x0
	mov	x2, sp
	mov	x0, x21
	mov	x1, x24
	mov	x3, #0
	blr	x27
	add	x26, x26, #1
	ldrsw	x8, [x25, #8]
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w26, #1
	cmp	w8, #1
	b.ls	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	movi.2d	v0, #0000000000000000
	b	LBB0_6
LBB0_9:
	add	x0, sp, #40
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x22
	bl	_ff_filter_frame
	b	LBB0_11
LBB0_10:
	add	x0, sp, #40
	bl	_av_frame_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_11:
	mov	x23, x0
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
	mov	x23, x0
	add	x0, sp, #32
	bl	_av_frame_free
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.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
