	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function monochrome_color_location
LCPI0_0:
	.quad	0xc076800000000000              ## double -360
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_monochrome_color_location:             ## @monochrome_color_location
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movl	%esi, %r12d
	movl	%edi, %ebx
	addsd	LCPI0_0(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movq	_spectral_chromaticity@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%rax), %xmm1                  ## xmm1 = mem[0],zero
	movapd	%xmm0, %xmm2
	addsd	%xmm1, %xmm2
	addsd	16(%rax), %xmm2
	divsd	%xmm2, %xmm0
	divsd	%xmm2, %xmm1
	movq	_LUV@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_xy_to_upvp
	jmp	LBB0_2
LBB0_3:
	movq	_UCS@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_5
## %bb.4:
	leaq	-48(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	callq	_xy_to_uv
LBB0_2:
	decl	%ebx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ebx, %xmm0
	mulsd	-48(%rbp), %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, (%r15)
	decl	%r12d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	movsd	-40(%rbp), %xmm1                ## xmm1 = mem[0],zero
LBB0_7:
	mulsd	%xmm0, %xmm1
	subsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_XYY@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jne	LBB0_8
## %bb.6:
	decl	%ebx
	xorps	%xmm2, %xmm2
	cvtsi2sd	%ebx, %xmm2
	mulsd	%xmm2, %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, (%r15)
	decl	%r12d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r12d, %xmm0
	jmp	LBB0_7
LBB0_8:
	xorl	%edi, %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_av_assert0                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_spectral_chromaticity,8,3      ## @spectral_chromaticity
	.comm	_LUV,4,2                        ## @LUV
	.comm	_UCS,4,2                        ## @UCS
	.comm	_XYY,4,2                        ## @XYY
	.no_dead_strip	_monochrome_color_location
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function monochrome_color_location
_monochrome_color_location:             ; @monochrome_color_location
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x1
	mov	x22, x0
	mov	x8, #140737488355328
	movk	x8, #49270, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	fcvtzs	w8, d0
Lloh0:
	adrp	x9, _spectral_chromaticity@GOTPAGE
Lloh1:
	ldr	x9, [x9, _spectral_chromaticity@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x9, w8, sxtw #3]
	ldp	d0, d1, [x8]
	ldr	d2, [x8, #16]
	fadd	d3, d0, d1
	fadd	d2, d3, d2
	fdiv	d0, d0, d2
	fdiv	d1, d1, d2
Lloh3:
	adrp	x8, _LUV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LUV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #8
	mov	x1, sp
	bl	_xy_to_upvp
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x8, _UCS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _UCS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_6
; %bb.3:
	add	x0, sp, #8
	mov	x1, sp
	bl	_xy_to_uv
LBB0_4:
	ldr	d0, [sp, #8]
	sub	w8, w22, #1
	scvtf	d1, w8
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	sub	w9, w21, #1
	scvtf	d0, w9
	str	w8, [x20]
	ldr	d1, [sp]
LBB0_5:
	fmsub	d0, d1, d0, d0
	fcvtzs	w8, d0
	str	w8, [x19]
	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
	add	sp, sp, #64
	ret
LBB0_6:
Lloh9:
	adrp	x8, _XYY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XYY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w2
	b.ne	LBB0_8
; %bb.7:
	sub	w8, w22, #1
	scvtf	d2, w8
	fmul	d0, d0, d2
	fcvtzs	w8, d0
	str	w8, [x20]
	sub	w8, w21, #1
	scvtf	d0, w8
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	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
	add	sp, sp, #64
	b	_av_assert0
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_spectral_chromaticity,8,3      ; @spectral_chromaticity
	.comm	_LUV,4,2                        ; @LUV
	.comm	_UCS,4,2                        ; @UCS
	.comm	_XYY,4,2                        ; @XYY
	.no_dead_strip	_monochrome_color_location
.subsections_via_symbols
