	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function create_lut
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x406fe00000000000              ## double 255
LCPI0_2:
	.quad	0xbfe0000000000000              ## double -0.5
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_4:
	.quad	0x4070000000000000              ## double 256
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create_lut:                            ## @create_lut
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movapd	%xmm0, %xmm1
	divsd	(%rdi), %xmm1
	movsd	%xmm1, -64(%rbp)                ## 8-byte Spill
	movsd	8(%rdi), %xmm1                  ## xmm1 = mem[0],zero
	movsd	16(%rdi), %xmm2                 ## xmm2 = mem[0],zero
	movsd	%xmm1, -56(%rbp)                ## 8-byte Spill
	subsd	%xmm1, %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movsd	24(%rdi), %xmm6                 ## xmm6 = mem[0],zero
	movq	32(%rdi), %r15
	xorl	%ebx, %ebx
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	LCPI0_3(%rip), %xmm4            ## xmm4 = mem[0],zero
	xorpd	%xmm5, %xmm5
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	movsd	%xmm6, -32(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, (%r15,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	je	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	divsd	%xmm1, %xmm0
	addsd	%xmm3, %xmm0
	mulsd	%xmm2, %xmm0
	addsd	%xmm4, %xmm0
	addsd	%xmm6, %xmm0
	ucomisd	%xmm0, %xmm5
	movl	$0, %eax
	jae	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movsd	%xmm0, -72(%rbp)                ## 8-byte Spill
	callq	_pow
	movsd	-72(%rbp), %xmm7                ## 8-byte Reload
                                        ## xmm7 = mem[0],zero
	xorpd	%xmm5, %xmm5
	movsd	LCPI0_3(%rip), %xmm4            ## xmm4 = mem[0],zero
	movsd	LCPI0_2(%rip), %xmm3            ## xmm3 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	-56(%rbp), %xmm0                ## 8-byte Folded Reload
	mulsd	-40(%rbp), %xmm7                ## 8-byte Folded Reload
	addsd	%xmm0, %xmm7
	movsd	-32(%rbp), %xmm6                ## 8-byte Reload
                                        ## xmm6 = mem[0],zero
	movl	$255, %eax
	ucomisd	LCPI0_0(%rip), %xmm7
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	mulsd	LCPI0_4(%rip), %xmm7
	cvttsd2si	%xmm7, %eax
	jmp	LBB0_4
LBB0_5:
	movl	$1, 40(%r14)
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_create_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_lut
_create_lut:                            ; @create_lut
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-112]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 112
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	.cfi_offset b10, -72
	.cfi_offset b11, -80
	.cfi_offset b12, -88
	.cfi_offset b13, -96
	.cfi_offset b14, -104
	.cfi_offset b15, -112
	mov	x19, x0
	mov	x20, #0
	fmov	d1, #1.00000000
	ldp	d0, d11, [x0]
	fsub	d12, d1, d11
	ldp	d13, d14, [x0, #16]
	ldr	x21, [x0, #32]
	mov	x22, #246290604621824
	movk	x22, #16495, lsl #48
	fmov	d15, #-0.50000000
	fmov	d10, #0.50000000
	fdiv	d8, d1, d0
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	w8, [x21, x20, lsl #2]
	add	x20, x20, #1
	cmp	x20, #256
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w20
	fmov	d1, x22
	fdiv	d0, d0, d1
	fadd	d0, d0, d15
	fmadd	d0, d13, d0, d10
	fadd	d9, d0, d14
	fcmp	d9, #0.0
	b.ls	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	fmov	d0, d9
	fmov	d1, d8
	bl	_pow
	fmul	d0, d11, d0
	fmadd	d0, d9, d12, d0
	fmov	d1, #1.00000000
	fcmp	d0, d1
	b.ge	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	fcvtzs	w8, d0, #8
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #255
	b	LBB0_2
LBB0_7:
	mov	w8, #1
	str	w8, [x19, #40]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #112            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_create_lut
.subsections_via_symbols
