	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plot_gamuts
_plot_gamuts:                           ## @plot_gamuts
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -116(%rbp)                ## 4-byte Spill
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -160(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movl	%esi, -108(%rbp)                ## 4-byte Spill
	movq	%rdi, -168(%rbp)                ## 8-byte Spill
	movq	_NB_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_14
## %bb.1:
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leal	-1(%rcx), %edx
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	decl	%ecx
	movl	%edx, -100(%rbp)                ## 4-byte Spill
	cvtsi2sd	%edx, %xmm0
	movsd	%xmm0, -80(%rbp)                ## 8-byte Spill
	cvtsi2sd	%ecx, %xmm1
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movd	%ecx, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movdqa	%xmm0, -192(%rbp)               ## 16-byte Spill
	movapd	%xmm1, -240(%rbp)               ## 16-byte Spill
	movddup	%xmm1, %xmm0                    ## xmm0 = xmm1[0,0]
	movapd	%xmm0, -224(%rbp)               ## 16-byte Spill
	movl	$20, %ebx
	xorl	%edx, %edx
                                        ## implicit-def: $r15d
                                        ## implicit-def: $r12d
                                        ## implicit-def: $ecx
                                        ## kill: killed $ecx
                                        ## implicit-def: $xmm0
                                        ## kill: killed $xmm0
                                        ## implicit-def: $r13d
	movl	%r8d, -104(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-20(%r14,%rbx), %edi
	movl	-16(%r14,%rbx), %esi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdx
	leaq	-56(%rbp), %r12
	movq	%r12, %rcx
	callq	_xy_to_upvp
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-12(%r14,%rbx), %edi
	movl	-8(%r14,%rbx), %esi
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_xy_to_upvp
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	movhpd	-56(%rbp), %xmm0                ## xmm0 = xmm0[0],mem[0]
	mulpd	-224(%rbp), %xmm0               ## 16-byte Folded Reload
	cvttpd2dq	%xmm0, %xmm0
	movsd	-64(%rbp), %xmm1                ## xmm1 = mem[0],zero
	mulsd	-80(%rbp), %xmm1                ## 8-byte Folded Reload
	cvttsd2si	%xmm1, %r13d
	movdqa	-192(%rbp), %xmm1               ## 16-byte Reload
	psubd	%xmm0, %xmm1
	movdqa	%xmm1, -144(%rbp)               ## 16-byte Spill
	movl	-4(%r14,%rbx), %edi
	movl	(%r14,%rbx), %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_xy_to_upvp
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movdqa	-144(%rbp), %xmm1               ## 16-byte Reload
	movl	%r13d, %r8d
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %eax
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	-240(%rbp), %xmm0               ## 16-byte Folded Reload
	cvttsd2si	%xmm0, %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	subl	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movd	%xmm1, %ecx
	movl	%ecx, -124(%rbp)                ## 4-byte Spill
	movdqa	%xmm1, -144(%rbp)               ## 16-byte Spill
	pextrd	$1, %xmm1, %r9d
	movl	%r9d, -120(%rbp)                ## 4-byte Spill
	movq	-168(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	-108(%rbp), %r13d               ## 4-byte Reload
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r8d, %r15d
	movq	-160(%rbp), %r12                ## 8-byte Reload
	pushq	%r12
	movq	-152(%rbp), %r14                ## 8-byte Reload
	pushq	%r14
	callq	_draw_rline
	addq	$16, %rsp
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, -112(%rbp)               ## 4-byte Spill
	movl	%r15d, %edx
	movl	-120(%rbp), %ecx                ## 4-byte Reload
	movl	-96(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	%ebx, -96(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r9d
	pushq	%r12
	pushq	%r14
	callq	_draw_rline
	addq	$16, %rsp
	movq	-168(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %r8d
	movl	-124(%rbp), %r9d                ## 4-byte Reload
	pushq	%r12
	pushq	%r14
	callq	_draw_rline
	addq	$16, %rsp
	movq	_NB_CS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-104(%rbp), %r8d                ## 4-byte Reload
	movq	-208(%rbp), %rbx                ## 8-byte Reload
	movq	-200(%rbp), %rdx                ## 8-byte Reload
	movl	-96(%rbp), %r12d                ## 4-byte Reload
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	%eax, %rcx
	addq	$24, %rbx
	cmpq	%rcx, %rdx
	jge	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-116(%rbp), %ecx                ## 4-byte Reload
	btl	%edx, %ecx
	jae	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_color_systems@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_LUV@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	movq	%rbx, -208(%rbp)                ## 8-byte Spill
	movq	%rdx, -200(%rbp)                ## 8-byte Spill
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_UCS@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-20(%r14,%rbx), %edi
	movl	-16(%r14,%rbx), %esi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdx
	leaq	-56(%rbp), %r12
	movq	%r12, %rcx
	callq	_xy_to_uv
	movsd	-64(%rbp), %xmm0                ## xmm0 = mem[0],zero
	mulsd	-80(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	-12(%r14,%rbx), %edi
	movl	-8(%r14,%rbx), %esi
	movsd	-56(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movaps	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_xy_to_uv
	movapd	-96(%rbp), %xmm0                ## 16-byte Reload
	movhpd	-56(%rbp), %xmm0                ## xmm0 = xmm0[0],mem[0]
	mulpd	-224(%rbp), %xmm0               ## 16-byte Folded Reload
	cvttpd2dq	%xmm0, %xmm0
	movsd	-64(%rbp), %xmm1                ## xmm1 = mem[0],zero
	mulsd	-80(%rbp), %xmm1                ## 8-byte Folded Reload
	cvttsd2si	%xmm1, %r13d
	movdqa	-192(%rbp), %xmm1               ## 16-byte Reload
	psubd	%xmm0, %xmm1
	movdqa	%xmm1, -144(%rbp)               ## 16-byte Spill
	movl	-4(%r14,%rbx), %edi
	movl	(%r14,%rbx), %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_xy_to_uv
	jmp	LBB0_5
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_XYY@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-20(%r14,%rbx), %ecx
	movl	-100(%rbp), %eax                ## 4-byte Reload
	imull	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	-12(%r14,%rbx), %r8d
	movd	-16(%r14,%rbx), %xmm0           ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, -8(%r14,%rbx), %xmm0
	imull	%eax, %r8d
	movdqa	-192(%rbp), %xmm1               ## 16-byte Reload
	pmulld	%xmm1, %xmm0
	psubd	%xmm0, %xmm1
	movl	-4(%r14,%rbx), %ecx
	imull	%eax, %ecx
	movl	%ecx, -96(%rbp)                 ## 4-byte Spill
	movl	(%r14,%rbx), %eax
	movl	-68(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %eax
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_av_assert0
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	movl	-112(%rbp), %r8d                ## 4-byte Reload
	movdqa	-144(%rbp), %xmm1               ## 16-byte Reload
	movl	%r12d, -96(%rbp)                ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_12
LBB0_14:
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_CS,4,2                      ## @NB_CS
	.comm	_color_systems,8,3              ## @color_systems
	.comm	_LUV,4,2                        ## @LUV
	.comm	_UCS,4,2                        ## @UCS
	.comm	_XYY,4,2                        ## @XYY
	.no_dead_strip	_plot_gamuts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plot_gamuts
_plot_gamuts:                           ; @plot_gamuts
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	stp	w3, w5, [sp, #44]               ; 8-byte Folded Spill
	str	w2, [sp, #40]                   ; 4-byte Folded Spill
	str	w1, [sp, #32]                   ; 4-byte Folded Spill
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _NB_CS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NB_CS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.1:
	mov	x11, #0
	mov	x24, #0
	ldr	w9, [sp, #40]                   ; 4-byte Folded Reload
	sub	w10, w9, #1
	ldp	w25, w9, [sp, #40]              ; 8-byte Folded Reload
	sub	w9, w9, #1
	stp	w10, w9, [sp, #12]              ; 8-byte Folded Spill
	scvtf	d8, w10
	scvtf	d9, w9
                                        ; implicit-def: $w23
                                        ; implicit-def: $w20
                                        ; implicit-def: $w19
                                        ; implicit-def: $w9
                                        ; kill: killed $w9
                                        ; implicit-def: $w27
                                        ; implicit-def: $w22
	str	w4, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x26, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x8, x11
	ldp	w0, w1, [x19]
	add	x2, sp, #72
	add	x3, sp, #64
	bl	_xy_to_upvp
	ldr	d0, [sp, #72]
	fmul	d0, d0, d8
	fcvtzs	w22, d0
	ldr	d0, [sp, #64]
	fmul	d0, d0, d9
	fcvtzs	w8, d0
	ldr	w20, [sp, #16]                  ; 4-byte Folded Reload
	sub	w27, w20, w8
	ldp	w0, w1, [x19, #8]
	add	x2, sp, #72
	add	x3, sp, #64
	bl	_xy_to_upvp
	ldr	d0, [sp, #72]
	fmul	d0, d0, d8
	fcvtzs	w21, d0
	ldr	d0, [sp, #64]
	fmul	d0, d0, d9
	fcvtzs	w8, d0
	sub	w8, w20, w8
	ldp	w0, w1, [x19, #16]
	mov	x19, x8
	add	x2, sp, #72
	add	x3, sp, #64
	bl	_xy_to_upvp
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x4, x21
	ldr	d0, [sp, #72]
	fmul	d0, d0, d8
	fcvtzs	w8, d0
	str	w8, [sp, #52]                   ; 4-byte Folded Spill
	ldr	d0, [sp, #64]
	fmul	d0, d0, d9
	fcvtzs	w8, d0
	sub	w23, w20, w8
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x26
	ldr	w21, [sp, #32]                  ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x22
	mov	x3, x27
	mov	x5, x19
	mov	x6, x25
	mov	x28, x22
	ldr	w22, [sp, #44]                  ; 4-byte Folded Reload
	mov	x7, x22
	mov	x20, x19
	mov	x19, x4
	bl	_draw_rline
	mov	x0, x26
	mov	x1, x21
	str	w19, [sp, #36]                  ; 4-byte Folded Spill
	mov	x2, x19
	mov	x19, x20
	mov	x3, x20
	ldr	w20, [sp, #52]                  ; 4-byte Folded Reload
	mov	x4, x20
	mov	x5, x23
	mov	x6, x25
	mov	x7, x22
	bl	_draw_rline
	mov	x0, x26
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x28
	mov	x5, x27
	mov	x6, x25
	mov	x7, x22
	bl	_draw_rline
Lloh3:
	adrp	x8, _NB_CS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NB_CS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w4, [sp, #20]                   ; 4-byte Folded Reload
	mov	x22, x28
	ldr	x11, [sp, #56]                  ; 8-byte Folded Reload
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	add	x11, x11, #24
	cmp	x24, w8, sxtw
	b.ge	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [sp, #48]                   ; 4-byte Folded Reload
	lsr	w9, w9, w24
	tbz	w9, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh6:
	adrp	x8, _color_systems@GOTPAGE
Lloh7:
	ldr	x8, [x8, _color_systems@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _LUV@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LUV@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w9, w4
	str	x11, [sp, #56]                  ; 8-byte Folded Spill
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh12:
	adrp	x9, _UCS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _UCS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w9, w4
	b.ne	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x8, x11
	ldp	w0, w1, [x19]
	add	x2, sp, #72
	add	x3, sp, #64
	bl	_xy_to_uv
	ldr	d0, [sp, #72]
	fmul	d0, d0, d8
	fcvtzs	w22, d0
	ldr	d0, [sp, #64]
	fmul	d0, d0, d9
	fcvtzs	w8, d0
	ldr	w20, [sp, #16]                  ; 4-byte Folded Reload
	sub	w27, w20, w8
	ldp	w0, w1, [x19, #8]
	add	x2, sp, #72
	add	x3, sp, #64
	bl	_xy_to_uv
	ldr	d0, [sp, #72]
	fmul	d0, d0, d8
	fcvtzs	w21, d0
	ldr	d0, [sp, #64]
	fmul	d0, d0, d9
	fcvtzs	w8, d0
	sub	w8, w20, w8
	ldp	w0, w1, [x19, #16]
	mov	x19, x8
	add	x2, sp, #72
	add	x3, sp, #64
	bl	_xy_to_uv
	b	LBB0_3
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh15:
	adrp	x9, _XYY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _XYY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w9, w4
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	add	x8, x8, x11
	ldp	w9, w10, [x8]
	ldp	w11, w12, [sp, #12]             ; 8-byte Folded Reload
	mul	w22, w9, w11
	msub	w27, w10, w12, w12
	ldp	w9, w10, [x8, #8]
	mul	w4, w9, w11
	msub	w19, w10, w12, w12
	ldp	w9, w8, [x8, #16]
	mul	w9, w9, w11
	str	w9, [sp, #52]                   ; 4-byte Folded Spill
	msub	w23, w8, w12, w12
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #0
	bl	_av_assert0
	ldr	w4, [sp, #36]                   ; 4-byte Folded Reload
	str	w20, [sp, #52]                  ; 4-byte Folded Spill
	b	LBB0_4
LBB0_13:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_CS,4,2                      ; @NB_CS
	.comm	_color_systems,8,3              ; @color_systems
	.comm	_LUV,4,2                        ; @LUV
	.comm	_UCS,4,2                        ; @UCS
	.comm	_XYY,4,2                        ; @XYY
	.no_dead_strip	_plot_gamuts
.subsections_via_symbols
