	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plot_white_point
_plot_white_point:                      ## @plot_white_point
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movl	16(%rbp), %edx
	movq	_color_systems@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r9d, %rcx
	movq	_LUV@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	jne	LBB0_2
## %bb.1:
	movl	(%rax,%rcx,8), %edi
	movl	4(%rax,%rcx,8), %esi
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_xy_to_upvp
	jmp	LBB0_4
LBB0_2:
	movq	_UCS@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	jne	LBB0_7
## %bb.3:
	movl	(%rax,%rcx,8), %edi
	movl	4(%rax,%rcx,8), %esi
	leaq	-72(%rbp), %rdx
	leaq	-64(%rbp), %rcx
	callq	_xy_to_uv
LBB0_4:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	cvtsi2sd	%eax, %xmm0
	mulsd	-72(%rbp), %xmm0
	cvttsd2si	%xmm0, %r14d
	movq	%r15, %rbx
	decl	%r15d
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r15d, %xmm0
	mulsd	-64(%rbp), %xmm0
	cvttsd2si	%xmm0, %eax
LBB0_5:
	subl	%eax, %r15d
LBB0_6:
	movl	$3, %edi
	callq	_Sz
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r14), %r12d
	movl	$10, %edi
	callq	_Sz
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r14), %r8d
	movq	%r13, %rdi
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r15d, %r9d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	pushq	%rbx
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_draw_rline
	addq	$16, %rsp
	movl	$3, %edi
	callq	_Sz
	movl	%r14d, %ebx
	subl	%eax, %ebx
	movl	$10, %edi
	callq	_Sz
	movl	%r14d, %r8d
	subl	%eax, %r8d
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	%r15d, %r9d
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	pushq	%r13
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_draw_rline
	addq	$16, %rsp
	movl	$3, %edi
	callq	_Sz
                                        ## kill: def $eax killed $eax def $rax
	addl	%r15d, %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	$10, %edi
	callq	_Sz
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%r15), %r9d
	movq	%r12, %rdi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	-76(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	pushq	%r13
	pushq	%rbx
	callq	_draw_rline
	addq	$16, %rsp
	movl	$3, %edi
	callq	_Sz
	movl	%r15d, %ebx
	subl	%eax, %ebx
	movl	$10, %edi
	callq	_Sz
	subl	%eax, %r15d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r14d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	pushq	%r13
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	callq	_draw_rline
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_XYY@GOTPCREL(%rip), %rsi
	cmpl	%edx, (%rsi)
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leal	-1(%rdx), %r14d
	imull	(%rax,%rcx,8), %r14d
	movq	%r15, %rbx
	decl	%r15d
	movl	4(%rax,%rcx,8), %eax
	imull	%r15d, %eax
	jmp	LBB0_5
LBB0_9:
	xorl	%edi, %edi
	callq	_av_assert0
                                        ## implicit-def: $r14d
	movq	%r15, %rbx
                                        ## implicit-def: $r15d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.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_white_point
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plot_white_point
_plot_white_point:                      ; @plot_white_point
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
                                        ; kill: def $w5 killed $w5 def $x5
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _color_systems@GOTPAGE
Lloh1:
	ldr	x8, [x8, _color_systems@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sxtw	x9, w5
	add	x10, x8, w5, sxtw #3
Lloh3:
	adrp	x11, _LUV@GOTPAGE
Lloh4:
	ldr	x11, [x11, _LUV@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	w11, w6
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x10]
	add	x8, x8, x9, lsl #3
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	mov	x3, sp
	bl	_xy_to_upvp
	b	LBB0_4
LBB0_2:
Lloh6:
	adrp	x11, _UCS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _UCS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w11, w6
	b.ne	LBB0_6
; %bb.3:
	ldr	w0, [x10]
	add	x8, x8, x9, lsl #3
	ldr	w1, [x8, #4]
	add	x2, sp, #8
	mov	x3, sp
	bl	_xy_to_uv
LBB0_4:
	sub	w8, w20, #1
	scvtf	d0, w8
	ldr	d1, [sp, #8]
	fmul	d0, d1, d0
	fcvtzs	w23, d0
	sub	w8, w19, #1
	scvtf	d0, w8
	ldr	d1, [sp]
	fmul	d0, d1, d0
	fcvtzs	w9, d0
	sub	w24, w8, w9
LBB0_5:
	mov	w0, #3
	bl	_Sz
	add	w25, w0, w23
	mov	w0, #10
	bl	_Sz
	add	w4, w0, w23
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	mov	x5, x24
	mov	x6, x20
	mov	x7, x19
	bl	_draw_rline
	mov	w0, #3
	bl	_Sz
	sub	w25, w23, w0
	mov	w0, #10
	bl	_Sz
	sub	w4, w23, w0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	mov	x5, x24
	mov	x6, x20
	mov	x7, x19
	bl	_draw_rline
	mov	w0, #3
	bl	_Sz
	add	w25, w0, w24
	mov	w0, #10
	bl	_Sz
	add	w5, w0, w24
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	mov	x4, x23
	mov	x6, x20
	mov	x7, x19
	bl	_draw_rline
	mov	w0, #3
	bl	_Sz
	sub	w25, w24, w0
	mov	w0, #10
	bl	_Sz
	sub	w5, w24, w0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	mov	x4, x23
	mov	x6, x20
	mov	x7, x19
	bl	_draw_rline
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
Lloh9:
	adrp	x11, _XYY@GOTPAGE
Lloh10:
	ldr	x11, [x11, _XYY@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w11, w6
	b.ne	LBB0_8
; %bb.7:
	sub	w11, w20, #1
	ldr	w10, [x10]
	mul	w23, w10, w11
	sub	w10, w19, #1
	add	x8, x8, x9, lsl #3
	ldr	w8, [x8, #4]
	msub	w24, w8, w10, w10
	b	LBB0_5
LBB0_8:
	mov	w0, #0
	bl	_av_assert0
                                        ; implicit-def: $w23
                                        ; implicit-def: $w24
	b	LBB0_5
	.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	_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_white_point
.subsections_via_symbols
