	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3                               ## -- Begin function ff_determine_signal_peak
LCPI0_0:
	.quad	0x4024000000000000              ## double 10
	.quad	0x4059000000000000              ## double 100
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_ff_determine_signal_peak
	.p2align	4, 0x90
_ff_determine_signal_peak:              ## @ff_determine_signal_peak
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_AV_FRAME_DATA_CONTENT_LIGHT_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_av_frame_get_side_data
	xorpd	%xmm0, %xmm0
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rax), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movq	_REFERENCE_WHITE@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
LBB0_2:
	movsd	%xmm0, -16(%rbp)                ## 8-byte Spill
	movq	_AV_FRAME_DATA_MASTERING_DISPLAY_METADATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_av_frame_get_side_data
	movsd	-16(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	LCPI0_1(%rip), %xmm0
	jne	LBB0_6
	jp	LBB0_6
## %bb.3:
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:
	movl	(%rax), %edi
	callq	_av_q2d
	movq	_REFERENCE_WHITE@GOTPCREL(%rip), %rax
	divsd	(%rax), %xmm0
LBB0_6:
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_8
	jp	LBB0_8
## %bb.7:
	movq	(%rbx), %rax
	movq	_AVCOL_TRC_SMPTE2084@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	leaq	LCPI0_0(%rip), %rax
	movsd	(%rax,%rdx,8), %xmm0            ## xmm0 = mem[0],zero
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_FRAME_DATA_CONTENT_LIGHT_LEVEL,4,2 ## @AV_FRAME_DATA_CONTENT_LIGHT_LEVEL
	.comm	_REFERENCE_WHITE,8,3            ## @REFERENCE_WHITE
	.comm	_AV_FRAME_DATA_MASTERING_DISPLAY_METADATA,4,2 ## @AV_FRAME_DATA_MASTERING_DISPLAY_METADATA
	.comm	_AVCOL_TRC_SMPTE2084,8,3        ## @AVCOL_TRC_SMPTE2084
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_determine_signal_peak       ; -- Begin function ff_determine_signal_peak
	.p2align	2
_ff_determine_signal_peak:              ; @ff_determine_signal_peak
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _AV_FRAME_DATA_CONTENT_LIGHT_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_FRAME_DATA_CONTENT_LIGHT_LEVEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_av_frame_get_side_data
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	d0, [x8]
Lloh3:
	adrp	x8, _REFERENCE_WHITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REFERENCE_WHITE@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x8]
	fdiv	d8, d0, d1
	b	LBB0_3
LBB0_2:
	movi	d8, #0000000000000000
LBB0_3:
Lloh6:
	adrp	x8, _AV_FRAME_DATA_MASTERING_DISPLAY_METADATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_FRAME_DATA_MASTERING_DISPLAY_METADATA@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av_frame_get_side_data
	fcmp	d8, #0.0
	ccmp	x0, #0, #4, eq
	b.eq	LBB0_6
; %bb.4:
	ldr	x8, [x0]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_6
; %bb.5:
	ldr	w0, [x8]
	bl	_av_q2d
Lloh9:
	adrp	x8, _REFERENCE_WHITE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REFERENCE_WHITE@GOTPAGEOFF]
Lloh11:
	ldr	d1, [x8]
	fdiv	d8, d0, d1
LBB0_6:
	fcmp	d8, #0.0
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _AVCOL_TRC_SMPTE2084@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AVCOL_TRC_SMPTE2084@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	mov	x8, #4636737291354636288
	fmov	d0, x8
	fmov	d1, #10.00000000
	fcsel	d8, d0, d1, eq
LBB0_8:
	fmov	d0, d8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_FRAME_DATA_CONTENT_LIGHT_LEVEL,4,2 ; @AV_FRAME_DATA_CONTENT_LIGHT_LEVEL
	.comm	_REFERENCE_WHITE,8,3            ; @REFERENCE_WHITE
	.comm	_AV_FRAME_DATA_MASTERING_DISPLAY_METADATA,4,2 ; @AV_FRAME_DATA_MASTERING_DISPLAY_METADATA
	.comm	_AVCOL_TRC_SMPTE2084,8,3        ; @AVCOL_TRC_SMPTE2084
.subsections_via_symbols
