	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CC_WMLButtonDown
_CC_WMLButtonDown:                      ## @CC_WMLButtonDown
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	$6, %esi
	movl	$8, %edx
	movl	%r14d, %ecx
	callq	_CC_MouseCheckPredefColorArray
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	movl	$2, %esi
	movl	$8, %edx
	movl	%r14d, %ecx
	callq	_CC_MouseCheckUserColorArray
	testq	%rax, %rax
	je	LBB0_2
LBB0_6:
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_CC_RGBtoHSL
	movq	%rax, 24(%rbx)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	$83, %edi
	callq	_CC_RGBtoHSL
	movq	%rax, 16(%rbx)
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	$76, %edi
	callq	_CC_RGBtoHSL
	movq	%rax, 8(%rbx)
LBB0_7:
	movq	%rbx, %rdi
	callq	_CC_EditSetRGB
	movq	%rbx, %rdi
	callq	_CC_EditSetHSL
	movq	%rbx, %rdi
	callq	_CC_PaintCross
	movq	%rbx, %rdi
	callq	_CC_PaintTriangle
	movq	%rbx, %rdi
	callq	_CC_PaintSelectedColor
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	32(%rbx), %edi
	movq	_IDC_COLOR_GRAPH@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	24(%rbx), %rdx
	leaq	16(%rbx), %rcx
	movl	%r14d, %r8d
	callq	_CC_MouseCheckColorGraph
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movl	32(%rbx), %edi
	movq	_IDC_COLOR_LUMBAR@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	8(%rbx), %rcx
	xorl	%edx, %edx
	movl	%r14d, %r8d
	callq	_CC_MouseCheckColorGraph
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	(%r15), %rax
	movq	%rax, 40(%rbx)
	movl	32(%rbx), %edi
	callq	_SetCapture
	movq	24(%rbx), %rdi
	movq	8(%rbx), %rdx
	movq	16(%rbx), %rsi
	callq	_CC_HSLtoRGB
	movq	(%rbx), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_7
LBB0_4:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_COLOR_GRAPH,8,3            ## @IDC_COLOR_GRAPH
	.comm	_IDC_COLOR_LUMBAR,8,3           ## @IDC_COLOR_LUMBAR
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_CC_WMLButtonDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CC_WMLButtonDown
_CC_WMLButtonDown:                      ; @CC_WMLButtonDown
	.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	x20, x1
	mov	x19, x0
	mov	w1, #6
	mov	w2, #8
	mov	x3, x20
	bl	_CC_MouseCheckPredefColorArray
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #2
	mov	w2, #8
	mov	x3, x20
	bl	_CC_MouseCheckUserColorArray
	cbz	x0, LBB0_5
LBB0_2:
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w0, #72
	bl	_CC_RGBtoHSL
	str	x0, [x19, #24]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w0, #83
	bl	_CC_RGBtoHSL
	str	x0, [x19, #16]
	ldr	x8, [x19]
	ldr	w1, [x8]
	mov	w0, #76
	bl	_CC_RGBtoHSL
	str	x0, [x19, #8]
LBB0_3:
	mov	x0, x19
	bl	_CC_EditSetRGB
	mov	x0, x19
	bl	_CC_EditSetHSL
	mov	x0, x19
	bl	_CC_PaintCross
	mov	x0, x19
	bl	_CC_PaintTriangle
	mov	x0, x19
	bl	_CC_PaintSelectedColor
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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
LBB0_5:
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x21, _IDC_COLOR_GRAPH@GOTPAGE
Lloh3:
	ldr	x21, [x21, _IDC_COLOR_GRAPH@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x2, x19, #24
	add	x3, x19, #16
	mov	x4, x20
	bl	_CC_MouseCheckColorGraph
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #32]
Lloh4:
	adrp	x21, _IDC_COLOR_LUMBAR@GOTPAGE
Lloh5:
	ldr	x21, [x21, _IDC_COLOR_LUMBAR@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x3, x19, #8
	mov	x2, #0
	mov	x4, x20
	bl	_CC_MouseCheckColorGraph
	cbz	x0, LBB0_8
LBB0_7:
	ldr	x8, [x21]
	str	x8, [x19, #40]
	ldr	w0, [x19, #32]
	bl	_SetCapture
	ldp	x1, x0, [x19, #16]
	ldr	x2, [x19, #8]
	bl	_CC_HSLtoRGB
	ldr	x8, [x19]
	str	w0, [x8]
	b	LBB0_3
LBB0_8:
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_COLOR_GRAPH,8,3            ; @IDC_COLOR_GRAPH
	.comm	_IDC_COLOR_LUMBAR,8,3           ; @IDC_COLOR_LUMBAR
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_CC_WMLButtonDown
.subsections_via_symbols
