	.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, %r14
	movq	%rdi, %r15
	movq	%rsi, -88(%rbp)
	movq	16(%rdi), %r12
	movq	8(%r12), %rax
	movq	16(%r12), %rbx
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movl	8(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	movq	(%rax), %rax
	movl	(%rax), %ecx
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.1:
	xorl	%r13d, %r13d
	cmpq	$0, 40(%rbx)
	jne	LBB0_2
	jmp	LBB0_33
LBB0_4:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	48(%rbx), %rdx
	leaq	-44(%rbp), %rsi
	movq	%r14, %rdi
	callq	_av_frame_get_qp_table
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	movq	%rax, %r13
	cmpl	$0, 32(%rbx)
	jne	LBB0_32
## %bb.6:
	movq	(%r14), %rax
	movq	_AV_PICTURE_TYPE_B@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_32
## %bb.7:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_28
## %bb.8:
	movl	4(%r15), %edi
	movl	$4, %esi
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_AV_CEIL_RSHIFT
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	jmp	LBB0_29
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_32
LBB0_28:
	movl	(%r15), %edi
	movl	$4, %esi
	callq	_AV_CEIL_RSHIFT
	movq	%rax, %rsi
	movl	$1, %eax
LBB0_29:
	movl	%esi, %ecx
	imull	%eax, %ecx
	movl	(%rbx), %edx
	cmpl	%edx, %ecx
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	jle	LBB0_31
## %bb.30:
	leaq	24(%rbx), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	callq	_av_reallocp_array
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	%ecx, %edx
	testl	%eax, %eax
	cmovnsl	%ecx, %esi
	movl	%esi, (%rbx)
	js	LBB0_35
LBB0_31:
	xorl	%edi, %edi
	cmpl	%edx, %ecx
	setle	%dil
	callq	_av_assert0
	movq	24(%rbx), %rdi
	movq	%r13, %rsi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
LBB0_32:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 40(%rbx)
	je	LBB0_33
LBB0_2:
	cmpl	$0, (%r12)
	je	LBB0_9
LBB0_33:
	movq	%r14, %r12
LBB0_34:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_ff_filter_frame
LBB0_35:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	$0, 32(%rbx)
	je	LBB0_12
## %bb.10:
	testq	%r13, %r13
	jne	LBB0_14
	jmp	LBB0_13
LBB0_12:
	movq	24(%rbx), %rax
	testq	%rax, %rax
	cmovneq	%rax, %r13
	testq	%r13, %r13
	jne	LBB0_14
LBB0_13:
	cmpq	$0, 16(%rbx)
	je	LBB0_33
LBB0_14:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	movl	4(%rbx), %esi
	callq	_AV_CEIL_RSHIFT
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %edi
	movl	8(%rbx), %esi
	callq	_AV_CEIL_RSHIFT
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_av_frame_is_writable
	movl	(%r15), %r9d
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%r9d, %eax
	andl	$7, %eax
	jne	LBB0_17
## %bb.16:
	movl	4(%r15), %r10d
	testb	$7, %r10b
	je	LBB0_20
LBB0_17:
	movl	%r9d, %edi
	movl	$8, %esi
	callq	_FFALIGN
	movl	%eax, %r12d
	movl	4(%r15), %edi
	movl	$8, %esi
	callq	_FFALIGN
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	callq	_av_frame_copy_props
	movl	28(%r14), %eax
	movl	%eax, 28(%r12)
	movl	24(%r14), %eax
	movl	%eax, 24(%r12)
	movl	(%r15), %r9d
	movl	4(%r15), %r10d
	jmp	LBB0_21
LBB0_19:
	leaq	-88(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_35
LBB0_20:
	movq	%r14, %r12
LBB0_21:
	movq	8(%r12), %rcx
	movq	16(%r12), %rdx
	movq	(%rdx), %rsi
	movq	8(%r14), %rdi
	movq	16(%r14), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx), %ecx
	movl	(%rdi), %r8d
	movl	-44(%rbp), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$1
	pushq	%rax
	pushq	%r13
	pushq	%r10
	callq	_filter
	addq	$48, %rsp
	movq	16(%r12), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_23
## %bb.22:
	movq	8(%rax), %rsi
	movq	8(%r14), %rax
	movq	16(%r14), %rcx
	movq	8(%rcx), %rdx
	movq	8(%r12), %rcx
	movl	4(%rcx), %ecx
	movl	4(%rax), %r8d
	movl	-44(%rbp), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	%r10
	pushq	%r13
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_filter
	addq	$48, %rsp
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	16(%rcx), %rsi
	movq	8(%r14), %rdi
	movq	16(%r14), %rcx
	movq	16(%rcx), %rdx
	movl	8(%rax), %ecx
	movl	8(%rdi), %r8d
	movl	-44(%rbp), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	$0
	pushq	%rax
	pushq	%r13
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	callq	_filter
	addq	$48, %rsp
LBB0_23:
	xorl	%eax, %eax
	callq	_emms_c
	cmpq	%r14, %r12
	je	LBB0_34
## %bb.24:
	movq	16(%r14), %rax
	movq	24(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.25:
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movq	24(%rcx), %rdi
	movl	12(%rax), %esi
	movq	8(%r14), %rax
	movl	12(%rax), %ecx
	movl	(%r15), %r8d
	movl	4(%r15), %r9d
	callq	_av_image_copy_plane
LBB0_26:
	leaq	-88(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ## @AV_PICTURE_TYPE_B
	.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	x21, x0
	str	x1, [sp, #24]
	ldr	x26, [x0, #16]
	ldp	x8, x22, [x26, #8]
	ldr	x19, [x8]
	str	wzr, [sp, #20]
	ldr	w0, [x0, #8]
	bl	_av_pix_fmt_desc_get
	ldr	x8, [x0]
	ldr	w27, [x8]
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x23, #0
LBB0_2:
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w8, [x26]
	cbz	w8, LBB0_12
LBB0_4:
	mov	x24, x20
LBB0_5:
	mov	x0, x19
	mov	x1, x24
	bl	_ff_filter_frame
LBB0_6:
	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_7:
	add	x2, x22, #48
	add	x1, sp, #20
	mov	x0, x20
	bl	_av_frame_get_qp_table
	mov	x23, x0
	cbz	x0, LBB0_2
; %bb.8:
	ldr	w8, [x22, #32]
	cbnz	w8, LBB0_2
; %bb.9:
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _AV_PICTURE_TYPE_B@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PICTURE_TYPE_B@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.10:
	ldr	w24, [sp, #20]
	cbz	w24, LBB0_29
; %bb.11:
	ldr	w0, [x21, #4]
	mov	w1, #4
	bl	_AV_CEIL_RSHIFT
	mov	x2, x0
	b	LBB0_30
LBB0_12:
	ldr	w8, [x22, #32]
	cbz	w8, LBB0_14
; %bb.13:
	cbnz	x23, LBB0_16
	b	LBB0_15
LBB0_14:
	ldr	x8, [x22, #24]
	cmp	x8, #0
	csel	x23, x23, x8, eq
	cbnz	x23, LBB0_16
LBB0_15:
	ldr	x8, [x22, #16]
	cbz	x8, LBB0_4
LBB0_16:
	ldr	w0, [x21]
	ldr	w1, [x22, #4]
	bl	_AV_CEIL_RSHIFT
	mov	x25, x0
	ldr	w0, [x21, #4]
	ldr	w1, [x22, #8]
	bl	_AV_CEIL_RSHIFT
	mov	x26, x0
	mov	x0, x20
	bl	_av_frame_is_writable
	ldr	w5, [x21]
	cbz	w0, LBB0_19
; %bb.17:
	and	w8, w5, #0x7
	cbnz	w8, LBB0_19
; %bb.18:
	ldr	w6, [x21, #4]
	tst	w6, #0x7
	b.eq	LBB0_22
LBB0_19:
	mov	x0, x5
	mov	w1, #8
	bl	_FFALIGN
	mov	x24, x0
	ldr	w0, [x21, #4]
	mov	w1, #8
	bl	_FFALIGN
	mov	x2, x0
	mov	x0, x19
	mov	x1, x24
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_21
; %bb.20:
	mov	x24, x0
	mov	x1, x20
	bl	_av_frame_copy_props
	ldr	d0, [x20, #24]
	str	d0, [x24, #24]
	ldp	w5, w6, [x21]
	b	LBB0_23
LBB0_21:
	add	x0, sp, #24
	bl	_av_frame_free
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_6
LBB0_22:
	mov	x24, x20
LBB0_23:
	ldp	x9, x8, [x24, #8]
	ldr	x1, [x8]
	ldp	x10, x8, [x20, #8]
	ldr	x2, [x8]
	ldr	w3, [x9]
	ldr	w4, [x10]
	ldr	w8, [sp, #20]
	mov	w9, #1
	stp	w9, w27, [sp, #4]
	str	w8, [sp]
	mov	x0, x22
	mov	x7, x23
	bl	_filter
	ldr	x8, [x24, #16]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_25
; %bb.24:
	ldr	x1, [x8, #8]
	ldp	x9, x8, [x20, #8]
	ldr	x2, [x8, #8]
	ldr	x8, [x24, #8]
	ldr	w3, [x8, #4]
	ldr	w4, [x9, #4]
	ldr	w8, [sp, #20]
	stp	wzr, w27, [sp, #4]
	str	w8, [sp]
	mov	x0, x22
	mov	x5, x25
	mov	x6, x26
	mov	x7, x23
	bl	_filter
	ldp	x9, x8, [x24, #8]
	ldr	x1, [x8, #16]
	ldp	x10, x8, [x20, #8]
	ldr	x2, [x8, #16]
	ldr	w3, [x9, #8]
	ldr	w4, [x10, #8]
	ldr	w8, [sp, #20]
	stp	wzr, w27, [sp, #4]
	str	w8, [sp]
	mov	x0, x22
	mov	x5, x25
	mov	x6, x26
	mov	x7, x23
	bl	_filter
LBB0_25:
	bl	_emms_c
	cmp	x24, x20
	b.eq	LBB0_5
; %bb.26:
	ldr	x8, [x20, #16]
	ldr	x2, [x8, #24]
	cbz	x2, LBB0_28
; %bb.27:
	ldp	x9, x8, [x24, #8]
	ldr	x0, [x8, #24]
	ldr	w1, [x9, #12]
	ldr	x8, [x20, #8]
	ldr	w3, [x8, #12]
	ldp	w4, w5, [x21]
	bl	_av_image_copy_plane
LBB0_28:
	add	x0, sp, #24
	bl	_av_frame_free
	b	LBB0_5
LBB0_29:
	ldr	w0, [x21]
	mov	w1, #4
	bl	_AV_CEIL_RSHIFT
	mov	x24, x0
	mov	w2, #1
LBB0_30:
	mul	w25, w24, w2
	ldr	w8, [x22]
	cmp	w25, w8
	b.le	LBB0_32
; %bb.31:
	add	x0, x22, #24
	mov	x1, x24
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_av_reallocp_array
	cmp	w0, #0
	csel	w8, wzr, w25, lt
	str	w8, [x22]
	mov	x8, x25
	tbnz	w0, #31, LBB0_6
LBB0_32:
	cmp	w25, w8
	cset	w0, le
	bl	_av_assert0
	ldr	x0, [x22, #24]
	mov	x1, x23
	mov	x2, x25
	bl	_memcpy
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PICTURE_TYPE_B,8,3          ; @AV_PICTURE_TYPE_B
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_filter_frame
.subsections_via_symbols
