	.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	$24, %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	%rsi, -56(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	movq	%rsi, %rdi
	callq	_av_frame_is_writable
	testq	%rax, %rax
	movq	_RW@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_RO@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r13d
	movl	%eax, %ebx
	cmovel	%r13d, %ebx
	movl	(%r12), %ecx
	addl	$-128, %ecx
	cmpl	$3, %ecx
	ja	LBB0_7
## %bb.1:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_2:
	cmpl	%r13d, %ebx
	cmovel	%eax, %r13d
	jmp	LBB0_8
LBB0_7:
	movl	%ebx, %r13d
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_3:
	movq	%rsi, %r13
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_av_lfg_get
	testb	$1, %al
	jne	LBB0_5
## %bb.4:
	movq	%r13, %r14
LBB0_5:
	movl	(%r14), %r13d
LBB0_8:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_perm_str@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %ecx
	movl	%r13d, %edx
	movl	(%rax,%rdx,4), %r8d
	cmpl	%r13d, %ebx
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r9
	cmoveq	%rax, %r9
	leaq	L_.str(%rip), %rdx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_av_log
	movq	_RO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_RW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ebx
	jne	LBB0_12
## %bb.9:
	cmpl	%ecx, %r13d
	jne	LBB0_12
## %bb.10:
	movq	%r15, %rdi
	callq	_av_frame_make_writable
	testl	%eax, %eax
	jns	LBB0_15
## %bb.11:
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_12:
	cmpl	%ecx, %ebx
	jne	LBB0_15
## %bb.13:
	cmpl	%eax, %r13d
	jne	LBB0_15
## %bb.14:
	movq	%r15, %rdi
	callq	_av_frame_clone
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_19
LBB0_15:
	movq	(%r14), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_ff_filter_frame
	movl	%eax, %r12d
	movq	_RW@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_18
## %bb.16:
	movq	_RO@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_18
## %bb.17:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
LBB0_18:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_RW,4,2                         ## @RW
	.comm	_RO,4,2                         ## @RO
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s -> %s%s\n"

	.comm	_perm_str,8,3                   ## @perm_str
L_.str.1:                               ## @.str.1
	.asciz	" (no-op)"

L_.str.2:                               ## @.str.2
	.space	1

	.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	x19, x1
	str	x1, [sp, #8]
	ldr	x20, [x0]
	ldr	x21, [x20, #8]
	mov	x0, x1
	bl	_av_frame_is_writable
Lloh0:
	adrp	x23, _RW@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RW@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x22, _RO@GOTPAGE
Lloh3:
	ldr	x22, [x22, _RO@GOTPAGEOFF]
	ldr	w25, [x22]
	cmp	x0, #0
	csel	w24, w25, w8, eq
	ldr	w9, [x21]
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
Lloh4:
	adrp	x10, lJTI0_0@PAGE
Lloh5:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	cmp	w24, w25
	csel	w25, w8, w25, eq
	b	LBB0_6
LBB0_3:
	mov	x25, x24
	b	LBB0_6
LBB0_4:
	mov	x25, x8
	b	LBB0_6
LBB0_5:
	add	x0, x21, #4
	bl	_av_lfg_get
	tst	w0, #0x1
	csel	x8, x22, x23, eq
	ldr	w25, [x8]
LBB0_6:
Lloh6:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh8:
	adrp	x9, _perm_str@GOTPAGE
Lloh9:
	ldr	x9, [x9, _perm_str@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	ldr	x8, [x9]
	ldr	w3, [x8, w24, uxtw #2]
	ldr	w4, [x8, w25, uxtw #2]
Lloh12:
	adrp	x8, l_.str.2@PAGE
Lloh13:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh14:
	adrp	x9, l_.str.1@PAGE
Lloh15:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w24, w25
	csel	x5, x9, x8, eq
Lloh16:
	adrp	x2, l_.str@PAGE
Lloh17:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
	ldr	w8, [x22]
	ldr	w9, [x23]
	cmp	w24, w8
	ccmp	w25, w9, #0, eq
	b.eq	LBB0_10
; %bb.7:
	cmp	w24, w9
	ccmp	w25, w8, #0, eq
	b.ne	LBB0_11
; %bb.8:
	mov	x0, x19
	bl	_av_frame_clone
	mov	x19, x0
	cbnz	x0, LBB0_11
; %bb.9:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_10:
	mov	x0, x19
	bl	_av_frame_make_writable
	tbnz	w0, #31, LBB0_14
LBB0_11:
	ldr	x8, [x20]
	ldr	w0, [x8]
	mov	x1, x19
	bl	_ff_filter_frame
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w24, w8
	b.ne	LBB0_15
; %bb.12:
	ldr	w8, [x22]
	cmp	w25, w8
	b.ne	LBB0_15
; %bb.13:
	add	x0, sp, #8
	bl	_av_frame_free
	b	LBB0_15
LBB0_14:
	mov	x21, x0
LBB0_15:
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_RW,4,2                         ; @RW
	.comm	_RO,4,2                         ; @RO
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s -> %s%s\n"

	.comm	_perm_str,8,3                   ; @perm_str
l_.str.1:                               ; @.str.1
	.asciz	" (no-op)"

l_.str.2:                               ; @.str.2
	.space	1

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