	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rsi, -40(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rbx
	movq	(%rcx), %r14
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %ecx
	leal	(%rax,%rcx,2), %eax
	addl	$-17, %eax
	jmp	LBB0_5
LBB0_2:
	movl	(%r12), %eax
	orl	$2, %eax
	cmpl	$130, %eax
	jne	LBB0_4
## %bb.3:
	movl	8(%rbx), %eax
	addl	%eax, %eax
	addl	$-16, %eax
	jmp	LBB0_5
LBB0_4:
	movl	8(%rbx), %eax
	addl	%eax, %eax
	addl	$-15, %eax
LBB0_5:
	movl	%eax, 4(%rbx)
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_av_frame_copy_props
	movl	16(%rbx), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	callq	*40(%rbx)
	movl	24(%rbx), %edx
	movl	20(%rbx), %ecx
	movl	4(%rbx), %r9d
	movl	16(%rbx), %r8d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	*32(%rbx)
	movq	16(%r15), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movslq	12(%rbx), %rdx
	decq	%rdx
	movq	8(%r15), %rsi
	movslq	(%rsi), %rdi
	imulq	%rdi, %rdx
	addq	%rdx, %rcx
	movq	%rcx, (%rax)
	negl	%edi
	movl	%edi, (%rsi)
LBB0_9:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.10:
	movslq	12(%rbx), %rdx
	decq	%rdx
	movq	8(%r15), %rsi
	movslq	4(%rsi), %rdi
	imulq	%rdi, %rdx
	addq	%rdx, %rcx
	movq	%rcx, 8(%rax)
	negl	%edi
	movl	%edi, 4(%rsi)
LBB0_11:
	movq	16(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_13
## %bb.12:
	movslq	12(%rbx), %rdx
	decq	%rdx
	movq	8(%r15), %rsi
	movslq	8(%rsi), %rdi
	imulq	%rdi, %rdx
	addq	%rdx, %rcx
	movq	%rcx, 16(%rax)
	negl	%edi
	movl	%edi, 8(%rsi)
LBB0_13:
	movq	24(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.14:
	movslq	12(%rbx), %rdx
	decq	%rdx
	movq	8(%r15), %rsi
	movslq	12(%rsi), %rdi
	imulq	%rdi, %rdx
	addq	%rdx, %rcx
	movq	%rcx, 24(%rax)
	negl	%edi
	movl	%edi, 12(%rsi)
LBB0_15:
	leaq	-40(%rbp), %rdi
	callq	_av_frame_free
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ff_filter_frame
	jmp	LBB0_16
LBB0_6:
	leaq	-40(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
LBB0_16:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.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, #64
	.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
	mov	x22, x1
	str	x1, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x8, x20, [x8]
	ldr	x19, [x8]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w9, [x20, #8]
	add	w8, w8, w9, lsl #1
	sub	w8, w8, #17
	b	LBB0_5
LBB0_2:
	ldr	w8, [x22]
	orr	w8, w8, #0x2
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x20, #8]
	lsl	w8, w8, #1
	sub	w8, w8, #16
	b	LBB0_5
LBB0_4:
	ldr	w8, [x20, #8]
	lsl	w8, w8, #1
	sub	w8, w8, #15
LBB0_5:
	str	w8, [x20, #4]
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_15
; %bb.6:
	mov	x21, x0
	mov	x1, x22
	bl	_av_frame_copy_props
	ldr	x8, [x20, #40]
	ldr	w3, [x20, #16]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	blr	x8
	ldr	x8, [x20, #32]
	ldp	w3, w2, [x20, #20]
	ldr	w4, [x20, #16]
	ldr	w5, [x20, #4]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	ldr	x8, [x21, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.7:
	ldrsw	x10, [x20, #12]
	sub	x10, x10, #1
	ldr	x11, [x21, #8]
	ldrsw	x12, [x11]
	madd	x9, x12, x10, x9
	str	x9, [x8]
	neg	w9, w12
	str	w9, [x11]
LBB0_8:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_10
; %bb.9:
	ldrsw	x10, [x20, #12]
	sub	x10, x10, #1
	ldr	x11, [x21, #8]
	ldrsw	x12, [x11, #4]
	madd	x9, x12, x10, x9
	str	x9, [x8, #8]
	neg	w9, w12
	str	w9, [x11, #4]
LBB0_10:
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_12
; %bb.11:
	ldrsw	x10, [x20, #12]
	sub	x10, x10, #1
	ldr	x11, [x21, #8]
	ldrsw	x12, [x11, #8]
	madd	x9, x12, x10, x9
	str	x9, [x8, #16]
	neg	w9, w12
	str	w9, [x11, #8]
LBB0_12:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_14
; %bb.13:
	ldrsw	x10, [x20, #12]
	sub	x10, x10, #1
	ldr	x11, [x21, #8]
	ldrsw	x12, [x11, #12]
	madd	x9, x12, x10, x9
	str	x9, [x8, #24]
	neg	w8, w12
	str	w8, [x11, #12]
LBB0_14:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x21
	bl	_ff_filter_frame
	b	LBB0_16
LBB0_15:
	add	x0, sp, #8
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_16:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
