	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function compute_gammaval709
LCPI0_0:
	.quad	0x3f926e978d4fdf3b              ## double 0.017999999999999999
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_2:
	.quad	0x3ff195810624dd2f              ## double 1.099
LCPI0_3:
	.quad	0xbfb95810624dd2f2              ## double -0.099000000000000004
LCPI0_4:
	.quad	0x4012000000000000              ## double 4.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_compute_gammaval709:                   ## @compute_gammaval709
	.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
	movapd	%xmm0, %xmm2
	movq	(%rdi), %rax
	movq	_VAR_CLIPVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	movq	_VAR_MINVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	(%rax,%rcx,8), %xmm3            ## xmm3 = mem[0],zero
	movq	_VAR_MAXVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	(%rax,%rcx,8), %xmm4            ## xmm4 = mem[0],zero
	subsd	%xmm3, %xmm0
	subsd	%xmm3, %xmm4
	divsd	%xmm4, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_2
## %bb.1:
	mulsd	LCPI0_4(%rip), %xmm0
	jmp	LBB0_3
LBB0_2:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm2, %xmm1
	movsd	%xmm3, -16(%rbp)                ## 8-byte Spill
	movsd	%xmm4, -8(%rbp)                 ## 8-byte Spill
	callq	_pow
	movsd	-8(%rbp), %xmm4                 ## 8-byte Reload
                                        ## xmm4 = mem[0],zero
	movsd	-16(%rbp), %xmm3                ## 8-byte Reload
                                        ## xmm3 = mem[0],zero
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
LBB0_3:
	mulsd	%xmm4, %xmm0
	addsd	%xmm3, %xmm0
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VAR_CLIPVAL,8,3                ## @VAR_CLIPVAL
	.comm	_VAR_MINVAL,8,3                 ## @VAR_MINVAL
	.comm	_VAR_MAXVAL,8,3                 ## @VAR_MAXVAL
	.no_dead_strip	_compute_gammaval709
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_gammaval709
_compute_gammaval709:                   ; @compute_gammaval709
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _VAR_CLIPVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VAR_CLIPVAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	d1, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _VAR_MINVAL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VAR_MINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	d8, [x8, x9, lsl #3]
Lloh6:
	adrp	x9, _VAR_MAXVAL@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VAR_MAXVAL@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	d2, [x8, x9, lsl #3]
	fsub	d1, d1, d8
	fsub	d9, d2, d8
	fdiv	d2, d1, d9
	mov	x8, #57147
	movk	x8, #36175, lsl #16
	movk	x8, #28311, lsl #32
	movk	x8, #16274, lsl #48
	fmov	d1, x8
	fcmp	d2, d1
	b.pl	LBB0_2
; %bb.1:
	fmov	d0, #4.50000000
	fmul	d0, d2, d0
	b	LBB0_3
LBB0_2:
	fmov	d1, #1.00000000
	fdiv	d1, d1, d0
	fmov	d0, d2
	bl	_pow
	mov	x8, #54002
	movk	x8, #25165, lsl #16
	movk	x8, #22544, lsl #32
	movk	x8, #49081, lsl #48
	fmov	d1, x8
	mov	x8, #56623
	movk	x8, #1572, lsl #16
	movk	x8, #38273, lsl #32
	movk	x8, #16369, lsl #48
	fmov	d2, x8
	fmadd	d0, d0, d2, d1
LBB0_3:
	fmadd	d0, d0, d9, d8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #32               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VAR_CLIPVAL,8,3                ; @VAR_CLIPVAL
	.comm	_VAR_MINVAL,8,3                 ; @VAR_MINVAL
	.comm	_VAR_MAXVAL,8,3                 ; @VAR_MAXVAL
	.no_dead_strip	_compute_gammaval709
.subsections_via_symbols
