	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function get_scene_score
LCPI0_0:
	.long	1127219200                      ## 0x43300000
	.long	1160773632                      ## 0x45300000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_1:
	.quad	0x4330000000000000              ## double 4503599627370496
	.quad	0x4530000000000000              ## double 1.9342813113834067E+25
LCPI0_2:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_3:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_get_scene_score:                       ## @get_scene_score
	.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, %r15
	movq	(%rdi), %r12
	movq	40(%r12), %r13
	movq	%r13, -72(%rbp)
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	cmpq	(%r13), %rax
	jne	LBB0_1
## %bb.3:
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	8(%r15), %rax
	cmpq	8(%r13), %rax
	jne	LBB0_7
## %bb.4:
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.8:
	movq	8(%r12), %r8
	movq	16(%r12), %rax
	xorpd	%xmm0, %xmm0
	xorl	%ebx, %ebx
	leaq	-64(%rbp), %r14
	xorpd	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	movq	16(%r13), %rcx
	movq	24(%r13), %rdx
	movl	(%rdx,%rbx,4), %edi
	movl	(%rcx,%rbx,4), %esi
	movq	16(%r15), %rcx
	movq	24(%r15), %rdx
	movl	(%rdx,%rbx,4), %edx
	movl	(%rcx,%rbx,4), %ecx
	movsd	(%r8,%rbx,8), %xmm0             ## xmm0 = mem[0],zero
	movsd	(%rax,%rbx,8), %xmm1            ## xmm1 = mem[0],zero
	movq	%r14, %r8
	callq	*48(%r12)
	movsd	-56(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	addsd	-64(%rbp), %xmm1
	movq	8(%r12), %r8
	movq	16(%r12), %rax
	movsd	(%r8,%rbx,8), %xmm0             ## xmm0 = mem[0],zero
	mulsd	(%rax,%rbx,8), %xmm0
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	addsd	%xmm0, %xmm2
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	incq	%rbx
	movslq	(%r12), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_9
	jmp	LBB0_6
LBB0_1:
	xorpd	%xmm0, %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
LBB0_7:
	movq	%r15, %rdi
	callq	_av_frame_clone
	movq	%rax, 40(%r12)
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorpd	%xmm1, %xmm1
	xorpd	%xmm0, %xmm0
LBB0_6:
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	callq	_emms_c
	movb	24(%r12), %cl
	addb	$-8, %cl
	movl	$1, %eax
	shlq	%cl, %rax
	movq	%rax, %xmm0
	punpckldq	LCPI0_0(%rip), %xmm0    ## xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
	subpd	LCPI0_1(%rip), %xmm0
	movapd	%xmm0, %xmm1
	unpckhpd	%xmm0, %xmm1                    ## xmm1 = xmm1[1],xmm0[1]
	addsd	%xmm0, %xmm1
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -56(%rbp)                ## 8-byte Spill
	movapd	%xmm0, %xmm1
	subsd	32(%r12), %xmm1
	andpd	LCPI0_2(%rip), %xmm1
	callq	_FFMIN
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	divsd	LCPI0_3(%rip), %xmm0
	cvttsd2si	%xmm0, %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_av_clipf
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movsd	-56(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	movsd	%xmm0, 32(%r12)
	leaq	-72(%rbp), %rdi
	callq	_av_frame_free
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_get_scene_score
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_scene_score
_get_scene_score:                       ; @get_scene_score
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x1
	ldr	x20, [x0]
	ldr	x21, [x20, #40]
	str	x21, [sp, #8]
	movi	d8, #0000000000000000
	cbz	x21, LBB0_8
; %bb.1:
	ldr	x8, [x19]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x22, #0
	ldp	x8, x9, [x20, #8]
	movi	d8, #0000000000000000
	movi	d9, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x22, #2
	ldp	x12, x11, [x21, #16]
	ldr	w0, [x11, x10]
	ldr	w1, [x12, x10]
	ldr	x11, [x20, #48]
	ldp	x13, x12, [x19, #16]
	ldr	w2, [x12, x10]
	lsl	x23, x22, #3
	ldr	w3, [x13, x10]
	ldr	d0, [x8, x23]
	ldr	d1, [x9, x23]
	mov	x4, sp
	blr	x11
	ldr	d0, [sp]
	fadd	d9, d9, d0
	ldp	x8, x9, [x20, #8]
	ldr	d0, [x8, x23]
	ldr	d1, [x9, x23]
	fmadd	d8, d0, d1, d8
	add	x22, x22, #1
	ldrsw	x10, [x20]
	cmp	x22, x10
	b.lt	LBB0_5
	b	LBB0_7
LBB0_6:
	movi	d9, #0000000000000000
	movi	d8, #0000000000000000
LBB0_7:
	bl	_emms_c
	fdiv	d0, d9, d8
	ldr	w8, [x20, #24]
	sub	w8, w8, #8
	mov	w9, #1
	lsl	x8, x9, x8
	ucvtf	d1, x8
	fdiv	d9, d0, d1
	ldr	d0, [x20, #32]
	fabd	d1, d9, d0
	fmov	d0, d9
	bl	_FFMIN
	scvtf	d0, w0
	mov	x8, #4636737291354636288
	fmov	d1, x8
	fdiv	d0, d0, d1
	fcvtzs	w0, d0
	mov	w1, #0
	mov	w2, #1
	bl	_av_clipf
	fmov	d8, d0
	str	d9, [x20, #32]
	add	x0, sp, #8
	bl	_av_frame_free
LBB0_8:
	mov	x0, x19
	bl	_av_frame_clone
	str	x0, [x20, #40]
	fmov	d0, d8
	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	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_get_scene_score
.subsections_via_symbols
