	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, -56(%rbp)
	movq	16(%rdi), %rax
	movq	8(%rax), %r14
	leaq	8(%r14), %r15
	cmpq	$0, 8(%r14)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	4(%rdi), %edx
	movl	8(%rdi), %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_av_frame_copy_props
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	testb	$1, (%r12)
	jne	LBB0_7
## %bb.6:
	movl	(%r14), %r12d
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	sete	%cl
	cmpl	$0, 4(%r14)
	jg	LBB0_9
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_7:
	movl	(%r14), %ecx
	xorl	%r12d, %r12d
	testl	%ecx, %ecx
	sete	%r12b
	cmpl	$0, 4(%r14)
	jle	LBB0_12
LBB0_9:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rax,%r15,4), %esi
	movl	%esi, %eax
	imull	%r12d, %eax
	movslq	%eax, %rdi
	addq	(%rcx,%r15,8), %rdi
	addl	%esi, %esi
	movq	(%rbx), %rax
	movq	24(%rbx), %rcx
	movq	(%rcx,%r15,8), %rdx
	movl	(%rax,%r15,4), %ecx
	movq	24(%r14), %rax
	movq	32(%r14), %rbx
	movl	(%rbx,%r15,4), %r8d
	movl	(%rax,%r15,4), %r9d
	callq	_av_image_copy_plane
	movq	(%r13), %rax
	movq	24(%r13), %rcx
	movl	(%rax,%r15,4), %esi
	movl	%esi, %eax
	imull	-60(%rbp), %eax                 ## 4-byte Folded Reload
	movslq	%eax, %rdi
	addq	(%rcx,%r15,8), %rdi
	addl	%esi, %esi
	movq	8(%r14), %rax
	movq	24(%r14), %rbx
	movq	(%rax), %rcx
	movq	24(%rax), %rax
	movq	(%rax,%r15,8), %rdx
	movl	(%rcx,%r15,4), %ecx
	movq	32(%r14), %rax
	movl	(%rax,%r15,4), %r8d
	movl	(%rbx,%r15,4), %r9d
	callq	_av_image_copy_plane
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	incq	%r15
	movslq	4(%r14), %rax
	cmpq	%rax, %r15
	jl	LBB0_10
## %bb.11:
	movq	16(%r14), %rax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	8(%r14), %rax
	movl	8(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 8(%rcx)
	movl	$1, 12(%rcx)
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	sete	%al
	movl	%eax, 16(%rcx)
	jmp	LBB0_15
LBB0_3:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	%r15, %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_18
LBB0_14:
	movl	8(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ecx, 8(%rdx)
	movl	$1, 12(%rdx)
	xorl	%eax, %eax
	cmpl	$0, (%r14)
	sete	%al
	movl	%eax, 16(%rdx)
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
LBB0_15:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_av_frame_free
	cmpq	$0, 16(%r14)
	je	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rax
	movq	%rax, (%r15)
LBB0_17:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ff_filter_frame
LBB0_18:
	addq	$56, %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, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	x1, [sp, #8]
	ldr	x8, [x0, #16]
	ldr	x24, [x8, #8]
	mov	x19, x24
	ldr	x9, [x19, #8]!
	cbz	x9, LBB0_5
; %bb.1:
	mov	x23, x0
	ldr	x8, [x8]
	ldr	x20, [x8]
	ldp	w2, w1, [x20, #4]
	mov	x0, x20
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_13
; %bb.2:
	mov	x21, x0
	mov	x1, x22
	bl	_av_frame_copy_props
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_6
; %bb.3:
	ldrb	w9, [x23]
	tbnz	w9, #0, LBB0_6
; %bb.4:
	ldr	w23, [x24]
	cmp	w23, #0
	cset	w25, eq
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	str	x22, [x19]
	b	LBB0_18
LBB0_6:
	ldr	w25, [x24]
	cmp	w25, #0
	cset	w23, eq
LBB0_7:
	ldr	w9, [x24, #4]
	cmp	w9, #1
	b.lt	LBB0_11
; %bb.8:
	mov	x26, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #24]
	lsl	x27, x26, #3
	ldr	x8, [x8, x27]
	ldr	x9, [x21]
	lsl	x28, x26, #2
	ldr	w9, [x9, x28]
	mul	w10, w9, w23
	add	x0, x8, w10, sxtw
	lsl	w1, w9, #1
	ldr	x8, [x22, #24]
	ldr	x2, [x8, x27]
	ldr	x8, [x22]
	ldr	w3, [x8, x28]
	ldp	x9, x8, [x24, #24]
	ldr	w4, [x8, x28]
	ldr	w5, [x9, x28]
	bl	_av_image_copy_plane
	ldr	x8, [x21, #24]
	ldr	x8, [x8, x27]
	ldr	x9, [x21]
	ldr	w9, [x9, x28]
	mul	w10, w9, w25
	add	x0, x8, w10, sxtw
	lsl	w1, w9, #1
	ldr	x8, [x24, #8]
	ldr	x9, [x8, #24]
	ldr	x2, [x9, x27]
	ldr	x8, [x8]
	ldr	w3, [x8, x28]
	ldp	x9, x8, [x24, #24]
	ldr	w4, [x8, x28]
	ldr	w5, [x9, x28]
	bl	_av_image_copy_plane
	add	x26, x26, #1
	ldrsw	x8, [x24, #4]
	cmp	x26, x8
	b.lt	LBB0_9
; %bb.10:
	ldr	x8, [x24, #16]
LBB0_11:
	cbz	x8, LBB0_14
; %bb.12:
	ldr	x8, [x24, #8]
	ldr	w8, [x8, #8]
	mov	w9, #1
	stp	w8, w9, [x21, #8]
	ldr	w8, [x24]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x21, #16]
	b	LBB0_15
LBB0_13:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	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_14:
	ldr	w8, [x22, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	mov	w9, #1
	stp	w8, w9, [x21, #8]
	ldr	w8, [x24]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x21, #16]
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_15:
	mov	x0, x19
	bl	_av_frame_free
	ldr	x8, [x24, #16]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	x8, [sp, #8]
	str	x8, [x19]
LBB0_17:
	mov	x0, x20
	mov	x1, x21
	bl	_ff_filter_frame
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
