	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function detect_scene_change
LCPI0_0:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_detect_scene_change:                   ## @detect_scene_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rcx
	movq	_SCD_METHOD_FDIFF@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	32(%rdi), %rax
	movq	8(%rax), %rsi
	movq	16(%rax), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	movl	(%rcx), %ecx
	movq	(%rax), %rdx
	movq	(%rsi), %rax
	movq	8(%rsi), %rdi
	movl	(%rax), %esi
	movq	(%rdi), %rdi
	movl	40(%rbx), %r8d
	movl	44(%rbx), %r9d
	leaq	-24(%rbp), %rax
	movq	%rax, (%rsp)
	callq	*24(%rbx)
	xorl	%eax, %eax
	callq	_emms_c
	cvtsi2sdq	-24(%rbp), %xmm0
	movl	44(%rbx), %eax
	imull	40(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	cvtsi2sd	%eax, %xmm1
	divsd	%xmm1, %xmm0
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movapd	%xmm0, %xmm1
	subsd	8(%rbx), %xmm1
	andpd	LCPI0_0(%rip), %xmm1
	callq	_FFMIN
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_av_clipf
	movsd	-16(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	%xmm1, 8(%rbx)
	xorl	%eax, %eax
	ucomisd	16(%rbx), %xmm0
	setae	%al
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCD_METHOD_FDIFF,8,3           ## @SCD_METHOD_FDIFF
	.no_dead_strip	_detect_scene_change
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detect_scene_change
_detect_scene_change:                   ; @detect_scene_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SCD_METHOD_FDIFF@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SCD_METHOD_FDIFF@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x19, x0
	ldp	x9, x8, [x0, #24]
	ldp	x8, x10, [x8, #8]
	ldp	x11, x10, [x10]
	ldr	w3, [x11]
	ldr	x2, [x10]
	ldp	x10, x8, [x8]
	ldr	w1, [x10]
	ldr	x0, [x8]
	ldp	w4, w5, [x19, #40]
	add	x6, sp, #8
	blr	x9
	bl	_emms_c
	ldr	d0, [sp, #8]
	scvtf	d0, d0
	ldp	w9, w8, [x19, #40]
	mul	w8, w8, w9
	add	w8, w8, w8, lsl #1
	scvtf	d1, w8
	fdiv	d8, d0, d1
	ldr	d0, [x19, #8]
	fabd	d1, d8, d0
	fmov	d0, d8
	bl	_FFMIN
	mov	x8, #4636737291354636288
	fmov	d0, x8
	mov	w1, #0
	bl	_av_clipf
	str	d8, [x19, #8]
	ldr	d1, [x19, #16]
	fcmp	d0, d1
	cset	w0, ge
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SCD_METHOD_FDIFF,8,3           ; @SCD_METHOD_FDIFF
	.no_dead_strip	_detect_scene_change
.subsections_via_symbols
