	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compute_gammaval
_compute_gammaval:                      ## @compute_gammaval
	.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
	movaps	%xmm0, %xmm1
	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), %xmm2            ## xmm2 = mem[0],zero
	movsd	%xmm2, -16(%rbp)                ## 8-byte Spill
	movq	_VAR_MAXVAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movsd	(%rax,%rcx,8), %xmm3            ## xmm3 = mem[0],zero
	subsd	%xmm2, %xmm0
	subsd	%xmm2, %xmm3
	movsd	%xmm3, -8(%rbp)                 ## 8-byte Spill
	divsd	%xmm3, %xmm0
	callq	_pow
	mulsd	-8(%rbp), %xmm0                 ## 8-byte Folded Reload
	addsd	-16(%rbp), %xmm0                ## 8-byte Folded Reload
	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_gammaval
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_gammaval
_compute_gammaval:                      ; @compute_gammaval
	.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
	fmov	d1, d0
Lloh0:
	adrp	x8, _VAR_CLIPVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VAR_CLIPVAL@GOTPAGEOFF]
	ldr	x9, [x0]
Lloh2:
	ldr	x8, [x8]
	ldr	d0, [x9, x8, lsl #3]
Lloh3:
	adrp	x8, _VAR_MINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VAR_MINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	d8, [x9, x8, lsl #3]
Lloh6:
	adrp	x8, _VAR_MAXVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VAR_MAXVAL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	d2, [x9, x8, lsl #3]
	fsub	d0, d0, d8
	fsub	d9, d2, d8
	fdiv	d0, d0, d9
	bl	_pow
	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_gammaval
.subsections_via_symbols
