	.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, %r12
	movq	%rdi, %r15
	movq	%rsi, -64(%rbp)
	movq	8(%rdi), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %r14
	movq	(%rcx), %rbx
	movl	(%rdi), %edi
	movl	20(%r14), %esi
	callq	_AV_CEIL_RSHIFT
	movl	%eax, %r13d
	movl	4(%r15), %edi
	movl	16(%r14), %esi
	callq	_AV_CEIL_RSHIFT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_av_frame_is_writable
	testq	%rax, %rax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.1:
	movq	(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_3
## %bb.2:
	movq	(%r12), %rdx
	movq	8(%r12), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	movl	(%r15), %r9d
	movl	4(%r15), %r10d
	movq	%r14, %rdi
	movl	%ecx, %esi
	movl	%edx, %r8d
	pushq	%rax
	pushq	%r10
	callq	_filter
	addq	$16, %rsp
LBB0_3:
	movq	8(%r14), %rax
	testq	%rax, %rax
	jle	LBB0_4
## %bb.5:
	movq	(%r12), %rdx
	movq	8(%r12), %rcx
	movl	4(%rcx), %ecx
	movl	4(%rdx), %edx
	movq	%r14, %rdi
	movl	%ecx, %esi
	movl	%edx, %r8d
	movl	%r13d, %r9d
	pushq	%rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_filter
	addq	$16, %rsp
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	8(%rcx), %ecx
	movl	8(%rax), %edx
	movq	%r14, %rdi
	movl	%ecx, %esi
	movl	%edx, %r8d
	movl	%r13d, %r9d
	pushq	8(%r14)
	pushq	%rbx
	callq	_filter
	addq	$16, %rsp
	movq	%r12, %r13
	jmp	LBB0_17
LBB0_6:
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movl	(%rbx), %esi
	movl	4(%rbx), %edx
	movq	%rbx, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_av_frame_copy_props
	movq	(%r14), %rax
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movl	(%rdx), %esi
	movl	(%rcx), %edx
	movq	(%r12), %rdi
	movq	8(%r12), %rcx
	movl	(%rcx), %ecx
	movl	(%rdi), %r8d
	movl	(%r15), %r9d
	movl	4(%r15), %r10d
	testq	%rax, %rax
	jle	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	pushq	%rax
	pushq	%r10
	callq	_filter
	addq	$16, %rsp
	jmp	LBB0_11
LBB0_4:
	movq	%r12, %r13
	jmp	LBB0_17
LBB0_7:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_18
LBB0_10:
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	movl	%r9d, %r8d
	movl	%r10d, %r9d
	callq	_av_image_copy_plane
LBB0_11:
	movq	8(%r14), %rax
	movq	(%r13), %rcx
	movq	8(%r13), %rdx
	movl	4(%rdx), %esi
	movl	4(%rcx), %edx
	movq	(%r12), %rdi
	movq	8(%r12), %rcx
	movl	4(%rcx), %ecx
	movl	4(%rdi), %r8d
	testq	%rax, %rax
	jle	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	pushq	%rax
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_filter
	addq	$16, %rsp
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	8(%rcx), %esi
	movl	8(%rax), %edx
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	8(%rcx), %ecx
	movl	8(%rax), %r8d
	movq	%r14, %rdi
	movl	%ebx, %r9d
	pushq	8(%r14)
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_filter
	addq	$16, %rsp
	jmp	LBB0_14
LBB0_13:
	movl	(%r15), %eax
	movl	4(%r15), %r9d
	movl	%esi, %edi
	movl	%edx, %esi
	movl	%ecx, %edx
	movl	%r8d, %ecx
	movl	%eax, %r8d
	callq	_av_image_copy_plane
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	8(%rcx), %edi
	movl	8(%rax), %esi
	movq	(%r12), %rax
	movq	8(%r12), %rcx
	movl	8(%rcx), %edx
	movl	8(%rax), %ecx
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	callq	_av_image_copy_plane
LBB0_14:
	movq	8(%r12), %rax
	movl	12(%rax), %edx
	testl	%edx, %edx
	je	LBB0_16
## %bb.15:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	12(%rcx), %edi
	movl	12(%rax), %esi
	movq	(%r12), %rax
	movl	12(%rax), %ecx
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	callq	_av_image_copy_plane
LBB0_16:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
LBB0_17:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ff_filter_frame
LBB0_18:
	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
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x1
	mov	x21, x0
	str	x1, [sp, #8]
	ldr	x8, [x0, #8]
	ldp	x8, x22, [x8]
	ldr	x19, [x8]
	ldr	w0, [x0]
	ldr	w1, [x22, #20]
	bl	_AV_CEIL_RSHIFT
	mov	x23, x0
	ldr	w0, [x21, #4]
	ldr	w1, [x22, #16]
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	mov	x0, x20
	bl	_av_frame_is_writable
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x7, [x22]
	cmp	x7, #1
	b.lt	LBB0_3
; %bb.2:
	ldp	x9, x8, [x20]
	ldr	w1, [x8]
	ldr	w2, [x9]
	ldp	w5, w6, [x21]
	mov	x0, x22
	mov	x3, x1
	mov	x4, x2
	bl	_filter
LBB0_3:
	ldr	x7, [x22, #8]
	cmp	x7, #1
	b.lt	LBB0_8
; %bb.4:
	ldp	x9, x8, [x20]
	ldr	w1, [x8, #4]
	ldr	w2, [x9, #4]
	mov	x0, x22
	mov	x3, x1
	mov	x4, x2
	mov	x5, x23
	mov	x6, x24
	bl	_filter
	ldp	x9, x8, [x20]
	ldr	w1, [x8, #8]
	ldr	w2, [x9, #8]
	ldr	x7, [x22, #8]
	mov	x0, x22
	mov	x3, x1
	mov	x4, x2
	mov	x5, x23
	mov	x6, x24
	bl	_filter
	mov	x25, x20
	b	LBB0_17
LBB0_5:
	ldp	w1, w2, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_9
; %bb.6:
	mov	x25, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	x7, [x22]
	ldp	x9, x8, [x25]
	ldr	w1, [x8]
	ldr	w2, [x9]
	ldp	x9, x8, [x20]
	ldr	w3, [x8]
	ldr	w4, [x9]
	ldp	w5, w6, [x21]
	cmp	x7, #1
	b.lt	LBB0_10
; %bb.7:
	mov	x0, x22
	bl	_filter
	b	LBB0_11
LBB0_8:
	mov	x25, x20
	b	LBB0_17
LBB0_9:
	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
	b	LBB0_18
LBB0_10:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x5
	mov	x5, x6
	bl	_av_image_copy_plane
LBB0_11:
	ldr	x7, [x22, #8]
	ldp	x9, x8, [x25]
	ldr	w1, [x8, #4]
	ldr	w2, [x9, #4]
	ldp	x9, x8, [x20]
	ldr	w3, [x8, #4]
	ldr	w4, [x9, #4]
	cmp	x7, #1
	b.lt	LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x5, x23
	mov	x6, x24
	bl	_filter
	ldp	x9, x8, [x25]
	ldr	w1, [x8, #8]
	ldr	w2, [x9, #8]
	ldp	x9, x8, [x20]
	ldr	w3, [x8, #8]
	ldr	w4, [x9, #8]
	ldr	x7, [x22, #8]
	mov	x0, x22
	mov	x5, x23
	mov	x6, x24
	bl	_filter
	b	LBB0_14
LBB0_13:
	ldp	w8, w5, [x21]
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	mov	x4, x8
	bl	_av_image_copy_plane
	ldp	x9, x8, [x25]
	ldr	w0, [x8, #8]
	ldr	w1, [x9, #8]
	ldp	x9, x8, [x20]
	ldr	w2, [x8, #8]
	ldr	w3, [x9, #8]
	ldp	w4, w5, [x21]
	bl	_av_image_copy_plane
LBB0_14:
	ldr	x8, [x20, #8]
	ldr	w2, [x8, #12]
	cbz	w2, LBB0_16
; %bb.15:
	ldp	x9, x8, [x25]
	ldr	w0, [x8, #12]
	ldr	w1, [x9, #12]
	ldr	x8, [x20]
	ldr	w3, [x8, #12]
	ldp	w4, w5, [x21]
	bl	_av_image_copy_plane
LBB0_16:
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_17:
	mov	x0, x19
	mov	x1, x25
	bl	_ff_filter_frame
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
