	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function avpriv_trc_bt1361
LCPI0_0:
	.quad	0xbf726e978d4fdf3b              ## double -0.0044999999999999997
LCPI0_1:
	.quad	0xc010000000000000              ## double -4
LCPI0_2:
	.quad	0x3fdccccccccccccd              ## double 0.45000000000000001
LCPI0_3:
	.quad	0xbff0000000000000              ## double -1
LCPI0_4:
	.quad	0xbfd0000000000000              ## double -0.25
LCPI0_5:
	.quad	0x4012000000000000              ## double 4.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_avpriv_trc_bt1361:                     ## @avpriv_trc_bt1361
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_BT709_alpha@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm2                   ## xmm2 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jae	LBB0_1
## %bb.2:
	movq	_BT709_beta@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_4
## %bb.3:
	mulsd	LCPI0_5(%rip), %xmm0
	jmp	LBB0_5
LBB0_1:
	mulsd	LCPI0_1(%rip), %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	%xmm2, -8(%rbp)                 ## 8-byte Spill
	callq	_pow
	movsd	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-8(%rbp), %xmm2                 ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	mulsd	LCPI0_4(%rip), %xmm0
	jmp	LBB0_5
LBB0_4:
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	%xmm2, -8(%rbp)                 ## 8-byte Spill
	callq	_pow
	movsd	LCPI0_3(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-8(%rbp), %xmm2                 ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	addsd	%xmm2, %xmm1
	mulsd	%xmm2, %xmm0
	subsd	%xmm1, %xmm0
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT709_alpha,8,3                ## @BT709_alpha
	.comm	_BT709_beta,8,3                 ## @BT709_beta
	.no_dead_strip	_avpriv_trc_bt1361
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avpriv_trc_bt1361
_avpriv_trc_bt1361:                     ; @avpriv_trc_bt1361
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-32]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset b8, -24
	.cfi_offset b9, -32
Lloh0:
	adrp	x8, _BT709_alpha@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT709_alpha@GOTPAGEOFF]
Lloh2:
	ldr	d8, [x8]
	mov	x8, #57147
	movk	x8, #36175, lsl #16
	movk	x8, #28311, lsl #32
	movk	x8, #49010, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.ls	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _BT709_beta@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT709_beta@GOTPAGEOFF]
Lloh5:
	ldr	d1, [x8]
	fcmp	d1, d0
	b.le	LBB0_4
; %bb.2:
	fmov	d1, #4.50000000
	fmul	d0, d0, d1
	b	LBB0_5
LBB0_3:
	fmov	d1, #-4.00000000
	fmul	d0, d0, d1
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16348, lsl #48
	fmov	d1, x8
	bl	_pow
	fmov	d1, #-1.00000000
	fadd	d1, d8, d1
	fmadd	d0, d8, d0, d1
	fmov	d1, #-0.25000000
	fmul	d0, d0, d1
	b	LBB0_5
LBB0_4:
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16348, lsl #48
	fmov	d1, x8
	bl	_pow
	fmov	d1, #-1.00000000
	fadd	d1, d8, d1
	fnmsub	d0, d8, d0, d1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BT709_alpha,8,3                ; @BT709_alpha
	.comm	_BT709_beta,8,3                 ; @BT709_beta
	.no_dead_strip	_avpriv_trc_bt1361
.subsections_via_symbols
