	.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_luma_lut
LCPI0_0:
	.quad	0x4039800000000000              ## double 25.5
LCPI0_1:
	.quad	0x405999999999999a              ## double 102.40000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_create_luma_lut:                       ## @create_luma_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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movss	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	cvtss2sd	%xmm0, %xmm0
	xorl	%ebx, %ebx
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	%xmm0, -24(%rbp)                ## 8-byte Spill
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, -32(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	addsd	-32(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %edi
	callq	_av_clip_uint8
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$256, %rbx                      ## imm = 0x100
	jne	LBB0_1
## %bb.2:
	xorl	%ebx, %ebx
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	LCPI0_1(%rip), %xmm1
	movsd	%xmm1, -24(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %edi
	movl	$10, %esi
	callq	_av_clip_uintp2
	movsd	-24(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	$65536, %rbx                    ## imm = 0x10000
	jne	LBB0_3
## %bb.4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_create_luma_lut
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_luma_lut
_create_luma_lut:                       ; @create_luma_lut
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x20, #0
	ldr	s0, [x0]
	fcvt	d8, s0
	mov	x21, #140737488355328
	movk	x21, #16441, lsl #48
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w20
	fmov	d1, x21
	fmadd	d0, d8, d1, d0
	fcvtzs	w0, d0
	bl	_av_clip_uint8
	ldr	x8, [x19, #16]
	str	w0, [x8, x20, lsl #2]
	add	x20, x20, #1
	cmp	x20, #256
	b.ne	LBB0_1
; %bb.2:
	mov	x20, #0
	mov	x21, #-7378697629483820647
	movk	x21, #39322
	movk	x21, #16473, lsl #48
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	scvtf	d0, w20
	fmov	d1, x21
	fmadd	d0, d8, d1, d0
	fcvtzs	w0, d0
	mov	w1, #10
	bl	_av_clip_uintp2
	ldr	x8, [x19, #8]
	str	w0, [x8, x20, lsl #2]
	add	x20, x20, #1
	cmp	x20, #16, lsl #12               ; =65536
	b.ne	LBB0_3
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_create_luma_lut
.subsections_via_symbols
