	.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, %r15
	movq	%rdi, %rbx
	movq	%rsi, -80(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r12
	movq	(%rcx), %r14
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	movq	%r15, %rdi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	jne	LBB0_4
## %bb.1:
	movl	(%r14), %esi
	movl	4(%r14), %edx
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_av_frame_copy_props
	movq	%r15, %rdi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
LBB0_4:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	leaq	4(%rbx), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	leaq	4(%r12), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leaq	8(%r12), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rbx), %rax
	movq	(%rax,%r12), %r9
	movq	8(%rdi), %rax
	movq	%r14, %rdi
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	pushq	%r10
	pushq	(%rax,%r12)
	callq	_filter
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$16, %rsp
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	addq	$8, %r12
	cmpq	$32, %r12
	je	LBB0_12
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rax
	cmpq	$0, (%rax,%r12)
	je	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%rdi), %rax
	cmpq	$0, (%rax,%r12)
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testq	%r12, %r12
	movq	-112(%rbp), %rax                ## 8-byte Reload
	cmoveq	%rbx, %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmoveq	-120(%rbp), %rcx                ## 8-byte Folded Reload
	movl	$12, %edx
	cmoveq	%r12, %rdx
	movl	(%r14,%rdx), %ebx
	movl	(%rcx), %r15d
	movl	(%rax), %r13d
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_FFMIN
	movq	%rbx, %r10
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leal	(%rbx,%rbx), %ecx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rdx
	movq	(%rdx,%r12), %rsi
	movq	(%rdi), %rdx
	movq	(%rdx,%r12), %rdx
	cmpl	%ecx, %eax
	jg	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rdx, %rsi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax,%r12), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx,%r12), %rcx
	movq	%rsi, %rdi
	movq	%rax, %rsi
	movl	%r13d, %r8d
	movl	%r15d, %r9d
	callq	_av_image_copy_plane
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_11
LBB0_12:
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	jne	LBB0_14
## %bb.13:
	leaq	-80(%rbp), %rdi
	callq	_av_frame_free
LBB0_14:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
LBB0_15:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	-80(%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
	.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, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x27, x0
	str	x1, [sp, #24]
	ldr	x8, [x0, #8]
	ldp	x8, x22, [x8]
	ldr	x19, [x8]
	mov	x0, x1
	bl	_av_frame_is_writable
	mov	x21, x0
	mov	x23, x20
	cbnz	x0, LBB0_3
; %bb.1:
	ldp	w1, w2, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_15
; %bb.2:
	mov	x23, x0
	mov	x1, x20
	bl	_av_frame_copy_props
LBB0_3:
	stp	x21, x19, [sp]                  ; 16-byte Folded Spill
	mov	x28, #0
	add	x8, x27, #4
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	add	x24, x22, #4
	add	x21, x22, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, #8]
	ldr	x5, [x8, x28]
	ldr	x8, [x20, #8]
	ldr	x6, [x8, x28]
	mov	x0, x22
	mov	x3, x26
	mov	x4, x25
	mov	x7, x27
	bl	_filter
	mov	x27, x19
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x28, x28, #8
	cmp	x28, #32
	b.eq	LBB0_11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8, x28]
	cbz	x8, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x28]
	cbz	x8, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x28, #0
	mov	x19, x27
	csel	x8, x27, x24, eq
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	csel	x9, x9, x21, eq
	mov	w10, #12
	csel	x10, xzr, x10, eq
	ldr	w27, [x22, x10]
	ldr	w25, [x9]
	ldr	w26, [x8]
	mov	x0, x26
	mov	x1, x25
	bl	_FFMIN
	ldr	x8, [x23]
	ldr	x1, [x8, x28]
	ldr	x8, [x20]
	ldr	x2, [x8, x28]
	cmp	w0, w27, lsl #1
	b.gt	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	x1, x2
	mov	x27, x19
	b.eq	LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, #8]
	ldr	x8, [x8, x28]
	ldr	x9, [x20, #8]
	ldr	x3, [x9, x28]
	mov	x0, x1
	mov	x1, x8
	mov	x4, x26
	mov	x5, x25
	bl	_av_image_copy_plane
	b	LBB0_5
LBB0_11:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	cbnz	x8, LBB0_13
; %bb.12:
	add	x0, sp, #24
	bl	_av_frame_free
LBB0_13:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x23
	bl	_ff_filter_frame
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	add	x0, sp, #24
	bl	_av_frame_free
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
