	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function build_gamma_lut
LCPI0_0:
	.long	0x437f0000                      ## float 255
LCPI0_1:
	.long	0x400ccccd                      ## float 2.20000005
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_build_gamma_lut:                       ## @build_gamma_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	%xmm1, %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_pow
	movl	%eax, %ecx
	shll	$12, %ecx
	subl	%eax, %ecx
	movq	(%r14), %rax
	movl	%ecx, (%rax,%rbx,4)
	leal	1(%rbx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	divss	LCPI0_0(%rip), %xmm0
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	callq	_pow
	movl	%eax, %ecx
	shll	$12, %ecx
	subl	%eax, %ecx
	movq	(%r14), %rax
	movl	%ecx, 4(%rax,%rbx,4)
	addq	$2, %rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_build_gamma_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function build_gamma_lut
_build_gamma_lut:                       ; @build_gamma_lut
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	x20, #0
	mov	w21, #1132396544
	mov	w22, #52429
	movk	w22, #16396, lsl #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	s0, w20
	fmov	s1, w21
	fdiv	s0, s0, s1
	fmov	s1, w22
	bl	_pow
	lsl	w8, w0, #12
	sub	w8, w8, w0
	ldr	x9, [x19]
	str	w8, [x9, x20, lsl #2]
	add	x20, x20, #1
	cmp	x20, #256
	b.ne	LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_build_gamma_lut
.subsections_via_symbols
