	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	%rsi, -128(%rbp)
	movq	8(%rdi), %r14
	movq	8(%r14), %rax
	movq	16(%r14), %rbx
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	movq	%r13, %r15
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_av_frame_copy_props
LBB0_4:
	movq	%r15, -120(%rbp)                ## 8-byte Spill
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	movl	8(%rbx), %esi
	movq	(%r13), %rax
	movq	8(%r13), %rdx
	movl	(%rax), %ecx
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	callq	*40(%rbx)
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%r14), %rax
	movq	_filter_slice@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movl	32(%rbx), %r8d
	leaq	-56(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	*(%rax)
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movl	4(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	(%rax), %rax
	movl	4(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%r14), %rax
	movl	(%r12), %esi
	movl	32(%rbx), %r8d
	movq	%r14, %rdi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	*(%rax)
	movq	16(%rbx), %rax
	movq	8(%rax), %rcx
	movl	8(%rcx), %ecx
	movl	%ecx, -56(%rbp)
	movq	(%rax), %rax
	movl	8(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	(%r14), %rax
	movl	(%r12), %esi
	movl	32(%rbx), %r8d
	movq	%r14, %rdi
	movq	%r15, %rdx
	movq	-120(%rbp), %r14                ## 8-byte Reload
	xorl	%ecx, %ecx
	callq	*(%rax)
	movq	(%r14), %rax
	movq	8(%r14), %rdi
	movl	(%rax), %esi
	movq	16(%rbx), %rax
	movq	8(%rax), %rdx
	movl	8(%rbx), %ecx
	movl	(%rbx), %r8d
	movl	4(%rbx), %r9d
	callq	*24(%rbx)
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_14
## %bb.5:
	movq	(%r14), %rax
	movq	8(%r14), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rcx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movslq	(%rbx), %rcx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edx
	movl	4(%rax), %r12d
	movl	4(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	subl	%ecx, %edx
	je	LBB0_9
## %bb.6:
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %eax
	testl	%esi, %esi
	jle	LBB0_9
## %bb.7:
	movq	%rbx, %r13
	leal	(%rdx,%rdx,2), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	shlq	$2, %rcx
	leaq	(%rcx,%rcx,2), %r15
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rbx
	addq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	incl	%r14d
	movl	4(%r13), %eax
	addq	-144(%rbp), %rbx                ## 8-byte Folded Reload
	addq	-136(%rbp), %r15                ## 8-byte Folded Reload
	cmpl	%eax, %r14d
	jl	LBB0_8
LBB0_9:
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, %r12d
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-104(%rbp), %r8                 ## 8-byte Reload
	je	LBB0_13
## %bb.10:
	subl	%ecx, %r12d
	testl	%r12d, %r12d
	jle	LBB0_13
## %bb.11:
	movl	%eax, %ecx
	imull	%r8d, %ecx
	movslq	%ecx, %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %r14
	movl	%edi, %ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rbx
	shlq	$2, %r8
	shlq	$2, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %eax
	leal	(%rax,%rax,2), %edx
	movq	%rbx, %rdi
	movq	%rsi, %r13
	movq	%r14, %rsi
	movl	%r12d, %r15d
	movq	%r8, %r12
	callq	_memcpy
	movq	%r12, %r8
	movl	%r15d, %r12d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	addq	%r8, %r14
	addq	%rdi, %rbx
	decl	%r12d
	jne	LBB0_12
LBB0_13:
	leaq	-128(%rbp), %rdi
	callq	_av_frame_free
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-120(%rbp), %r14                ## 8-byte Reload
LBB0_14:
	movq	%r14, %rsi
	callq	_ff_filter_frame
LBB0_15:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-128(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_filter_slice,4,2               ## @filter_slice
	.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, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x22, x1
	mov	x20, x0
	str	x1, [sp, #56]
	ldr	x24, [x0, #8]
	ldp	x8, x25, [x24, #8]
	ldr	x27, [x8]
	mov	x0, x1
	bl	_av_frame_is_writable
	mov	x23, x0
	mov	x21, x22
	cbnz	x0, LBB0_3
; %bb.1:
	ldp	w1, w2, [x27]
	mov	x0, x27
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_16
; %bb.2:
	mov	x21, x0
	mov	x1, x22
	bl	_av_frame_copy_props
LBB0_3:
	ldr	x8, [x25, #40]
	ldr	x9, [x25, #16]
	ldr	x0, [x9]
	ldp	w5, w1, [x25, #4]
	ldp	x9, x2, [x22]
	ldr	w3, [x9]
	ldr	w4, [x25]
	blr	x8
	ldr	x8, [x25, #16]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	str	w9, [sp, #48]
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [sp, #52]
	ldr	x8, [x24]
	ldr	x8, [x8]
Lloh0:
	adrp	x19, _filter_slice@GOTPAGE
Lloh1:
	ldr	x19, [x19, _filter_slice@GOTPAGEOFF]
	ldr	w1, [x19]
	ldr	w4, [x25, #32]
	add	x2, sp, #48
	mov	x0, x24
	mov	x3, #0
	blr	x8
	ldr	x8, [x25, #16]
	ldr	x9, [x8, #8]
	ldr	w9, [x9, #4]
	str	w9, [sp, #48]
	ldr	x8, [x8]
	ldr	w8, [x8, #4]
	str	w8, [sp, #52]
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w1, [x19]
	ldr	w4, [x25, #32]
	add	x2, sp, #48
	mov	x0, x24
	mov	x3, #0
	blr	x8
	ldr	x8, [x25, #16]
	ldr	x9, [x8, #8]
	ldr	w9, [x9, #8]
	str	w9, [sp, #48]
	ldr	x8, [x8]
	ldr	w8, [x8, #8]
	str	w8, [sp, #52]
	ldr	x8, [x24]
	ldr	x8, [x8]
	ldr	w1, [x19]
	ldr	w4, [x25, #32]
	add	x2, sp, #48
	mov	x0, x24
	mov	x3, #0
	blr	x8
	ldp	x8, x0, [x21]
	ldr	w1, [x8]
	ldp	x9, x8, [x25, #16]
	ldr	x2, [x9, #8]
	ldp	w5, w3, [x25, #4]
	ldr	w4, [x25]
	blr	x8
	cbnz	x23, LBB0_14
; %bb.4:
	ldp	x9, x8, [x21]
	ldr	x12, [x8]
	ldp	x10, x8, [x22]
	ldr	x14, [x8]
	ldrsw	x11, [x9]
	ldrsw	x13, [x10]
	ldp	w8, w15, [x20]
	ldp	w9, w26, [x25]
	subs	w10, w8, w9
	b.eq	LBB0_17
; %bb.5:
	mov	x8, x26
	cmp	w26, #1
	b.lt	LBB0_9
; %bb.6:
	str	w15, [sp, #4]                   ; 4-byte Folded Spill
	stp	x11, x27, [sp, #32]             ; 16-byte Folded Spill
	mov	w28, #0
	add	w22, w10, w10, lsl #1
	add	w8, w9, w9, lsl #1
	sbfiz	x8, x8, #2, #32
	stp	x14, x13, [sp, #8]              ; 16-byte Folded Spill
	add	x23, x14, x8
	str	x12, [sp, #24]                  ; 8-byte Folded Spill
	add	x24, x12, x8
	lsl	x27, x13, #2
	lsl	x19, x11, #2
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	mov	x1, x23
	mov	x2, x22
	bl	_memcpy
	add	w28, w28, #1
	ldr	w8, [x25, #4]
	add	x23, x23, x27
	add	x24, x24, x19
	cmp	w28, w8
	b.lt	LBB0_7
; %bb.8:
	ldp	x11, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	x13, x12, [sp, #16]             ; 16-byte Folded Reload
	ldr	x14, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w15, [sp, #4]                   ; 4-byte Folded Reload
LBB0_9:
	cmp	w15, w26
	b.eq	LBB0_13
LBB0_10:
	sub	w24, w15, w26
	cmp	w24, #1
	b.lt	LBB0_13
; %bb.11:
	mul	w9, w8, w13
	add	x22, x14, w9, sxtw #2
	mul	w8, w8, w11
	add	x23, x12, w8, sxtw #2
	lsl	x19, x13, #2
	lsl	x25, x11, #2
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	add	w2, w8, w8, lsl #1
	mov	x0, x23
	mov	x1, x22
	bl	_memcpy
	add	x22, x22, x19
	add	x23, x23, x25
	subs	w24, w24, #1
	b.ne	LBB0_12
LBB0_13:
	add	x0, sp, #56
	bl	_av_frame_free
LBB0_14:
	mov	x0, x27
	mov	x1, x21
	bl	_ff_filter_frame
LBB0_15:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_16:
	add	x0, sp, #56
	bl	_av_frame_free
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_15
LBB0_17:
	mov	x8, x26
	cmp	w15, w26
	b.ne	LBB0_10
	b	LBB0_13
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_filter_slice,4,2               ; @filter_slice
	.no_dead_strip	_filter_frame
.subsections_via_symbols
