	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function gamma_correct
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x3f926e978d4fdf3b              ## double 0.017999999999999999
LCPI0_2:
	.quad	0x3ff195810624dd2f              ## double 1.099
LCPI0_3:
	.quad	0xbfb95810624dd2f2              ## double -0.099000000000000004
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_gamma_correct:                         ## @gamma_correct
	.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	%rsi, %rbx
	movsd	(%rdi), %xmm1                   ## xmm1 = mem[0],zero
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm0, %xmm1
	movsd	(%rsi), %xmm0                   ## xmm0 = mem[0],zero
	jne	LBB0_4
	jp	LBB0_4
## %bb.1:
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_3
## %bb.2:
	movapd	%xmm1, %xmm0
	xorl	%edi, %edi
	callq	_pow
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	mulsd	(%rbx), %xmm0
	jmp	LBB0_5
LBB0_4:
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	divsd	%xmm1, %xmm2
	cvttsd2si	%xmm2, %edi
	callq	_pow
	jmp	LBB0_5
LBB0_3:
	xorl	%edi, %edi
	callq	_pow
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
LBB0_5:
	movsd	%xmm0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gamma_correct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gamma_correct
_gamma_correct:                         ; @gamma_correct
	.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, x1
	ldr	d1, [x0]
	ldr	d0, [x1]
	fcmp	d1, #0.0
	b.ne	LBB0_3
; %bb.1:
	mov	x8, #57147
	movk	x8, #36175, lsl #16
	movk	x8, #28311, lsl #32
	movk	x8, #16274, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.pl	LBB0_4
; %bb.2:
	mov	x8, #57147
	movk	x8, #36175, lsl #16
	movk	x8, #28311, lsl #32
	movk	x8, #16274, lsl #48
	fmov	d8, x8
	fmov	d0, d8
	mov	w0, #0
	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
	fdiv	d0, d0, d8
	ldr	d1, [x19]
	fmul	d0, d1, d0
	b	LBB0_5
LBB0_3:
	fmov	d2, #1.00000000
	fdiv	d1, d2, d1
	fcvtzs	w0, d1
	bl	_pow
	b	LBB0_5
LBB0_4:
	mov	w0, #0
	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_5:
	str	d0, [x19]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gamma_correct
.subsections_via_symbols
