	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function blend_frames
_blend_frames:                          ## @blend_frames
	.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
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	16(%rdi), %rbx
	movq	(%rax), %r14
	movq	_FRAMERATE_FLAG_SCD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_1
## %bb.2:
	movsd	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jae	LBB0_4
## %bb.3:
	movl	24(%rbx), %esi
	movl	40(%rbx), %edx
	movq	%r12, %rdi
	callq	_get_scene_score
	movsd	%xmm0, 8(%rbx)
LBB0_4:
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movb	$1, %al
	callq	_ff_dlog
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	jmp	LBB0_5
LBB0_1:
	xorpd	%xmm1, %xmm1
LBB0_5:
	movsd	16(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	xorl	%r13d, %r13d
	ucomisd	%xmm1, %xmm0
	jbe	LBB0_9
## %bb.6:
	movl	24(%rbx), %eax
	movl	%eax, -52(%rbp)
	movl	40(%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	%r15d, -72(%rbp)
	movq	32(%rbx), %rax
	movslq	%r15d, %rcx
	subq	%rcx, %rax
	movq	%rax, -64(%rbp)
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%r14, %rdi
	callq	_ff_get_video_buffer
	movl	%eax, 28(%rbx)
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	24(%rbx), %esi
	movl	%eax, %edi
	callq	_av_frame_copy_props
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ff_dlog
	movq	(%r12), %rax
	movq	(%rax), %rbx
	movq	_filter_slice@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r14), %esi
	sarl	$2, %esi
	movl	$1, %r13d
	movl	$1, %edi
	callq	_FFMAX
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_ff_filter_get_nb_threads
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_FFMIN
	leaq	-72(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	callq	*%rbx
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRAMERATE_FLAG_SCD,4,2         ## @FRAMERATE_FLAG_SCD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"blend_frames() interpolate scene score:%f\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"blend_frames() INTERPOLATE to create work frame\n"

	.comm	_filter_slice,4,2               ## @filter_slice
	.no_dead_strip	_blend_frames
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function blend_frames
_blend_frames:                          ; @blend_frames
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x21, x1
	mov	x19, x0
	ldp	x8, x22, [x0, #8]
	ldr	x20, [x8]
	ldr	w8, [x22]
Lloh0:
	adrp	x9, _FRAMERATE_FLAG_SCD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FRAMERATE_FLAG_SCD@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	d8, [x22, #8]
	fcmp	d8, #0.0
	b.ge	LBB0_3
; %bb.2:
	ldr	w1, [x22, #24]
	ldr	w2, [x22, #40]
	mov	x0, x19
	bl	_get_scene_score
	fmov	d8, d0
	str	d0, [x22, #8]
LBB0_3:
	str	d8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
	b	LBB0_5
LBB0_4:
	movi	d8, #0000000000000000
LBB0_5:
	ldr	d0, [x22, #16]
	fcmp	d8, d0
	b.pl	LBB0_8
; %bb.6:
	ldr	w8, [x22, #24]
	ldr	w9, [x22, #40]
	stp	w9, w8, [sp, #24]
	str	w21, [sp, #8]
	ldr	x8, [x22, #32]
	sub	x8, x8, w21, sxtw
	str	x8, [sp, #16]
	ldp	w2, w1, [x20]
	mov	x0, x20
	bl	_ff_get_video_buffer
	str	w0, [x22, #28]
	cbz	w0, LBB0_9
; %bb.7:
	ldr	w1, [x22, #24]
	bl	_av_frame_copy_props
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ff_dlog
	ldr	x8, [x19]
	ldr	x23, [x8]
Lloh7:
	adrp	x8, _filter_slice@GOTPAGE
Lloh8:
	ldr	x8, [x8, _filter_slice@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	ldr	w8, [x20]
	asr	w1, w8, #2
	mov	w20, #1
	mov	w0, #1
	bl	_FFMAX
	mov	x22, x0
	mov	x0, x19
	bl	_ff_filter_get_nb_threads
	mov	x1, x0
	mov	x0, x22
	bl	_FFMIN
	mov	x4, x0
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x3, #0
	blr	x23
	b	LBB0_10
LBB0_8:
	mov	w20, #0
	b	LBB0_10
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x20, x0
LBB0_10:
	mov	x0, x20
	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	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FRAMERATE_FLAG_SCD,4,2         ; @FRAMERATE_FLAG_SCD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"blend_frames() interpolate scene score:%f\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"blend_frames() INTERPOLATE to create work frame\n"

	.comm	_filter_slice,4,2               ; @filter_slice
	.no_dead_strip	_blend_frames
.subsections_via_symbols
