	.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, %r14
	movq	%rdi, %r12
	movq	%rsi, -64(%rbp)
	movq	16(%rdi), %rbx
	movq	(%rbx), %r13
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	$2, %esi
	callq	_pullup_get_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	(%rax), %rdi
	movl	(%r13), %esi
	movq	8(%r14), %rdx
	movl	(%r14), %ecx
	movl	8(%r12), %r8d
	movl	(%r12), %eax
	movl	4(%r12), %r9d
	movl	%eax, (%rsp)
	callq	_av_image_copy
	cmpq	$0, 32(%r14)
	movq	%r13, %rbx
	je	LBB0_3
## %bb.4:
	xorl	%r13d, %r13d
	cmpl	$0, 24(%r14)
	sete	%r13b
	jmp	LBB0_5
LBB0_1:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	movq	%r13, %rdi
	callq	_pullup_get_frame
	movq	%rax, %rdi
	callq	_pullup_release_frame
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_pullup_submit_field
	movl	%r13d, %edx
	xorl	$1, %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pullup_submit_field
	movq	%r14, %r12
	cmpq	$0, 16(%r14)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_pullup_submit_field
LBB0_7:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_pullup_release_buffer
	movq	%rbx, %r14
	movq	%rbx, %rdi
	callq	_pullup_get_frame
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_20
## %bb.8:
	movq	%rax, %r13
	cmpl	$1, (%rax)
	jg	LBB0_14
## %bb.9:
	movq	%r13, %rdi
	callq	_pullup_release_frame
	movq	%r14, %rdi
	callq	_pullup_get_frame
	testq	%rax, %rax
	je	LBB0_20
## %bb.10:
	movq	%rax, %r13
	cmpl	$1, (%rax)
	jg	LBB0_14
## %bb.11:
	movq	%r13, %rdi
	callq	_pullup_release_frame
	cmpq	$0, 16(%r12)
	je	LBB0_20
## %bb.12:
	movq	%r14, %rdi
	callq	_pullup_get_frame
	testq	%rax, %rax
	je	LBB0_20
## %bb.13:
	movq	%rax, %r13
	cmpl	$1, (%rax)
	jle	LBB0_19
LBB0_14:
	movq	%r14, %rdi
	cmpq	$0, 8(%r13)
	jne	LBB0_16
## %bb.15:
	movq	%r13, %rsi
	callq	_pullup_pack_frame
LBB0_16:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movq	%r15, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_av_frame_copy_props
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	movq	8(%r13), %rax
	movq	(%rax), %rdx
	movl	(%r14), %ecx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12), %r8d
	movl	(%r12), %eax
	movl	4(%r12), %r9d
	movl	%eax, (%rsp)
	callq	_av_image_copy
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ff_filter_frame
	movl	%eax, %ebx
LBB0_19:
	movq	%r13, %rdi
	callq	_pullup_release_frame
	jmp	LBB0_20
LBB0_17:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ebx
LBB0_20:
	leaq	-64(%rbp), %rdi
	callq	_av_frame_free
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not get buffer!\n"

	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	mov	x21, x0
	str	x1, [sp, #8]
	ldr	x24, [x0, #16]
	ldp	x20, x8, [x24]
	ldr	x19, [x8]
	mov	x0, x20
	mov	w1, #2
	bl	_pullup_get_buffer
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	ldr	x0, [x0]
	ldr	w1, [x20]
	ldr	x2, [x22, #8]
	ldr	w3, [x22]
	ldp	w5, w4, [x21, #4]
	ldr	w6, [x21]
	bl	_av_image_copy
	ldr	x8, [x22, #32]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w8, [x22, #24]
	cmp	w8, #0
	cset	w24, eq
	b	LBB0_6
LBB0_3:
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	bl	_av_log
	mov	x0, x20
	bl	_pullup_get_frame
LBB0_4:
	bl	_pullup_release_frame
	b	LBB0_16
LBB0_5:
	mov	w24, #0
LBB0_6:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_pullup_submit_field
	eor	w2, w24, #0x1
	mov	x0, x20
	mov	x1, x23
	bl	_pullup_submit_field
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_pullup_submit_field
LBB0_8:
	mov	x0, x23
	mov	w1, #2
	bl	_pullup_release_buffer
	mov	x0, x20
	bl	_pullup_get_frame
	cbz	x0, LBB0_16
; %bb.9:
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_18
; %bb.10:
	mov	x0, x23
	bl	_pullup_release_frame
	mov	x0, x20
	bl	_pullup_get_frame
	cbz	x0, LBB0_16
; %bb.11:
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_18
; %bb.12:
	mov	x0, x23
	bl	_pullup_release_frame
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_16
; %bb.13:
	mov	x0, x20
	bl	_pullup_get_frame
	cbz	x0, LBB0_16
; %bb.14:
	mov	x23, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_18
; %bb.15:
	mov	x0, x23
	b	LBB0_4
LBB0_16:
	mov	w19, #0
LBB0_17:
	add	x0, sp, #8
	bl	_av_frame_free
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_18:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_20
; %bb.19:
	mov	x0, x20
	mov	x1, x23
	bl	_pullup_pack_frame
LBB0_20:
	ldp	w2, w1, [x19]
	mov	x0, x19
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_22
; %bb.21:
	mov	x24, x0
	mov	x1, x22
	bl	_av_frame_copy_props
	ldr	x0, [x24, #8]
	ldr	w1, [x24]
	ldr	x8, [x23, #8]
	ldr	x2, [x8]
	ldr	w3, [x20]
	ldp	w5, w4, [x21, #4]
	ldr	w6, [x21]
	bl	_av_image_copy
	mov	x0, x19
	mov	x1, x24
	bl	_ff_filter_frame
	mov	x19, x0
	mov	x0, x23
	bl	_pullup_release_frame
	b	LBB0_17
LBB0_22:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x19, x0
	b	LBB0_17
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not get buffer!\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
