	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp7_fade_frame
_vp7_fade_frame:                        ## @vp7_fade_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
	xorl	%r14d, %r14d
	movl	%edx, %eax
	orl	%esi, %eax
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r12
	cmpl	$0, 20(%rdi)
	jne	LBB0_10
## %bb.2:
	movl	%esi, %r15d
	movq	8(%r12), %rcx
	movq	_VP56_FRAME_PREVIOUS@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movq	(%rcx,%rax,8), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	%edx, %ebx
	movq	_VP56_FRAME_GOLDEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movl	(%r12), %r8d
	movl	4(%r12), %r9d
	shll	$4, %r8d
	shll	$4, %r9d
	movq	(%rax), %rdx
	movq	%rdx, %r13
	cmpq	%rax, %rcx
	jne	LBB0_9
## %bb.6:
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movq	%rsi, %r13
	callq	_vp8_find_free_buffer
	movq	8(%r12), %rcx
	movq	(%r13), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	8(%r12), %rax
	movq	(%rax,%rdx,8), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_vp8_alloc_frame
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	8(%r12), %rax
	movq	(%r13), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_copy_chroma
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %r9d
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_9:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %esi
	movq	(%rdx), %rax
	movq	8(%rdx), %rcx
	movl	(%rcx), %edx
	movl	(%rax), %ecx
	pushq	%rbx
	pushq	%r15
	callq	_fade
	addq	$16, %rsp
	jmp	LBB0_10
LBB0_4:
	movl	16(%r12), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	%eax, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_VP56_FRAME_PREVIOUS,8,3        ## @VP56_FRAME_PREVIOUS
	.comm	_VP56_FRAME_GOLDEN,8,3          ## @VP56_FRAME_GOLDEN
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Discarding interframe without a prior keyframe!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.no_dead_strip	_vp7_fade_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp7_fade_frame
_vp7_fade_frame:                        ; @vp7_fade_frame
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	mov	w0, #0
	orr	w8, w2, w1
	cbz	w8, LBB0_9
; %bb.1:
	ldr	w8, [x21, #20]
	cbnz	w8, LBB0_9
; %bb.2:
	ldr	x9, [x21, #8]
Lloh0:
	adrp	x26, _VP56_FRAME_PREVIOUS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _VP56_FRAME_PREVIOUS@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x8, [x9, x8, lsl #3]
	cbz	x8, LBB0_8
; %bb.3:
Lloh2:
	adrp	x10, _VP56_FRAME_GOLDEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _VP56_FRAME_GOLDEN@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	ldr	x9, [x9, x10, lsl #3]
	cbz	x9, LBB0_8
; %bb.4:
	mov	x19, x2
	mov	x20, x1
	ldp	w10, w11, [x21]
	lsl	w23, w10, #4
	lsl	w22, w11, #4
	ldr	x24, [x8]
	mov	x25, x24
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_vp8_find_free_buffer
	ldr	x8, [x21, #8]
	ldr	x9, [x26]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x21, #8]
	ldr	x1, [x8, x9]
	mov	x0, x21
	mov	w2, #1
	bl	_vp8_alloc_frame
	tbnz	w0, #31, LBB0_9
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	x9, [x26]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x25, [x8]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	bl	_copy_chroma
LBB0_7:
	ldp	x9, x8, [x25]
	ldr	w0, [x8]
	ldr	w1, [x9]
	ldp	x9, x8, [x24]
	ldr	w2, [x8]
	ldr	w3, [x9]
	mov	x4, x23
	mov	x5, x22
	mov	x6, x20
	mov	x7, x19
	bl	_fade
	mov	w0, #0
	b	LBB0_9
LBB0_8:
	ldr	w0, [x21, #16]
Lloh5:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh10:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_9:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VP56_FRAME_PREVIOUS,8,3        ; @VP56_FRAME_PREVIOUS
	.comm	_VP56_FRAME_GOLDEN,8,3          ; @VP56_FRAME_GOLDEN
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Discarding interframe without a prior keyframe!\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.no_dead_strip	_vp7_fade_frame
.subsections_via_symbols
