	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CC_WMCommand
_CC_WMCommand:                          ## @CC_WMCommand
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_TRACE
	movl	%ebx, %edi
	callq	_LOWORD
                                        ## kill: def $eax killed $eax def $rax
	movq	_FALSE@GOTPCREL(%rip), %r13
	addl	$-128, %eax
	cmpl	$11, %eax
	ja	LBB0_38
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	_EN_UPDATE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_38
## %bb.14:
	cmpl	$0, 36(%r14)
	jne	LBB0_38
## %bb.15:
	movl	%ebx, %edi
	callq	_LOWORD
	xorl	%ecx, %ecx
	cmpl	$134, %eax
	sete	%cl
	movl	$240, %esi
	subl	%ecx, %esi
	movl	%r15d, %edi
	callq	_CC_CheckDigitsInEdit
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_LOWORD
	cmpl	$131, %eax
	je	LBB0_20
## %bb.16:
	cmpl	$133, %eax
	je	LBB0_22
## %bb.17:
	cmpl	$134, %eax
	jne	LBB0_38
## %bb.18:
	cmpl	(%r14), %r15d
	je	LBB0_38
## %bb.19:
	movl	%r15d, (%r14)
	jmp	LBB0_24
LBB0_2:
	movq	_EN_UPDATE@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_38
## %bb.3:
	cmpl	$0, 36(%r14)
	jne	LBB0_38
## %bb.4:
	movl	%r15d, %edi
	movl	$255, %esi
	callq	_CC_CheckDigitsInEdit
	movl	%eax, %r12d
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	callq	_GetRValue
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	callq	_GetGValue
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r14), %rax
	movl	8(%rax), %edi
	callq	_GetBValue
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_LOWORD
	cmpl	$136, %eax
	je	LBB0_9
## %bb.5:
	cmpl	$135, %eax
	je	LBB0_8
## %bb.6:
	cmpl	$132, %eax
	jne	LBB0_38
## %bb.7:
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %edi
	jmp	LBB0_10
LBB0_29:
	movq	_HELPMSGSTRINGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RegisterWindowMessageA
	movq	24(%r14), %rcx
	movl	(%rcx), %edi
	testl	%edi, %edi
	je	LBB0_31
## %bb.30:
	movl	%eax, %esi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageA
	movq	24(%r14), %rcx
LBB0_31:
	movq	%rcx, %rdi
	callq	_CC_HookCallChk
	testl	%eax, %eax
	je	LBB0_38
## %bb.32:
	movq	24(%r14), %r8
	movl	4(%r8), %edi
	movl	16(%r14), %esi
	movq	_WM_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_psh15@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_CallWindowProcA
	jmp	LBB0_38
LBB0_33:
	movq	_COLOROKSTRINGA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RegisterWindowMessageA
	movq	24(%r14), %rcx
	movl	(%rcx), %edi
	testl	%edi, %edi
	je	LBB0_35
## %bb.34:
	movl	%eax, %esi
	xorl	%edx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageA
	testl	%eax, %eax
	jne	LBB0_38
LBB0_35:
	movl	16(%r14), %edi
	movl	$1, %esi
	jmp	LBB0_37
LBB0_28:
	movl	16(%r14), %edi
	callq	_GetDC
	movl	%eax, %ebx
	movq	24(%r14), %rax
	movl	8(%rax), %esi
	movl	%ebx, %edi
	callq	_GetNearestColor
	movq	24(%r14), %rcx
	movl	%eax, 8(%rcx)
	movl	16(%r14), %edi
	movl	%ebx, %esi
	callq	_ReleaseDC
	movq	%r14, %rdi
	callq	_CC_EditSetRGB
LBB0_12:
	movq	%r14, %rdi
	callq	_CC_PaintSelectedColor
	movq	24(%r14), %rax
	movl	8(%rax), %esi
	movl	$72, %edi
	callq	_CC_RGBtoHSL
	movl	%eax, (%r14)
	movq	24(%r14), %rax
	movl	8(%rax), %esi
	movl	$83, %edi
	callq	_CC_RGBtoHSL
	movl	%eax, 4(%r14)
	movq	24(%r14), %rax
	movl	8(%rax), %esi
	movl	$76, %edi
	callq	_CC_RGBtoHSL
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_CC_EditSetHSL
LBB0_25:
	movq	%r14, %rdi
	callq	_CC_PaintCross
	movq	%r14, %rdi
	callq	_CC_PaintTriangle
	jmp	LBB0_38
LBB0_26:
	leaq	32(%r14), %rsi
	movq	%r14, %rdi
	callq	_CC_SwitchToFullSize
	movl	16(%r14), %edi
	movl	$134, %esi
	callq	_GetDlgItem
	movl	%eax, %edi
	callq	_SetFocus
	jmp	LBB0_38
LBB0_27:
	movq	24(%r14), %rax
	movq	16(%rax), %rcx
	movl	8(%rax), %eax
	movl	12(%r14), %edx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	movl	%esi, %edi
	andl	$536870910, %edi                ## imm = 0x1FFFFFFE
	subl	%edi, %edx
	sarl	%esi
	leal	(%rsi,%rdx,8), %edx
	movslq	%edx, %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	12(%r14), %eax
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	$16, %eax
	cmovnel	%eax, %ecx
	movl	%ecx, 12(%r14)
	movq	%r14, %rdi
	movl	$2, %esi
	movl	$8, %edx
	callq	_CC_PaintUserColorArray
	jmp	LBB0_38
LBB0_36:
	movl	16(%r14), %edi
	xorl	%esi, %esi
LBB0_37:
	callq	_EndDialog
	movq	_TRUE@GOTPCREL(%rip), %r13
LBB0_38:
	movl	(%r13), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	cmpl	4(%r14), %r15d
	je	LBB0_38
## %bb.21:
	movl	%r15d, 4(%r14)
	jmp	LBB0_24
LBB0_22:
	cmpl	8(%r14), %r15d
	je	LBB0_38
## %bb.23:
	movl	%r15d, 8(%r14)
LBB0_24:
	movl	(%r14), %edi
	movl	4(%r14), %esi
	movl	8(%r14), %edx
	callq	_CC_HSLtoRGB
	movq	24(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	%r14, %rdi
	callq	_CC_PaintSelectedColor
	movq	%r14, %rdi
	callq	_CC_EditSetRGB
	jmp	LBB0_25
LBB0_8:
	cmpl	-44(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %esi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	je	LBB0_38
	jmp	LBB0_11
LBB0_9:
	cmpl	%r15d, %r12d
	movl	%r12d, %r15d
	movl	-48(%rbp), %edi                 ## 4-byte Reload
LBB0_10:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_38
LBB0_11:
	movl	%r15d, %edx
	callq	_RGB
	movq	24(%r14), %rcx
	movl	%eax, 8(%rcx)
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_36, LBB0_36-LJTI0_0
LJTI0_0:
	.long	L0_0_set_29
	.long	L0_0_set_33
	.long	L0_0_set_28
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_36
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CC_WMCommand wParam=%lx lParam=%lx\n"

	.comm	_EN_UPDATE,4,2                  ## @EN_UPDATE
	.comm	_HELPMSGSTRINGA,4,2             ## @HELPMSGSTRINGA
	.comm	_WM_COMMAND,4,2                 ## @WM_COMMAND
	.comm	_psh15,4,2                      ## @psh15
	.comm	_COLOROKSTRINGA,4,2             ## @COLOROKSTRINGA
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_CC_WMCommand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CC_WMCommand
_CC_WMCommand:                          ; @CC_WMCommand
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_TRACE
	mov	x0, x20
	bl	_LOWORD
	sub	w8, w0, #128
	cmp	w8, #11
	b.hi	LBB0_27
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh4:
	adrp	x8, _EN_UPDATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EN_UPDATE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_27
; %bb.3:
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_27
; %bb.4:
	mov	x0, x20
	bl	_LOWORD
	cmp	w0, #134
	mov	w8, #239
	cinc	w1, w8, ne
	mov	x0, x21
	bl	_CC_CheckDigitsInEdit
	mov	x21, x0
	mov	x0, x20
	bl	_LOWORD
	cmp	w0, #131
	b.eq	LBB0_31
; %bb.5:
	cmp	w0, #133
	b.eq	LBB0_33
; %bb.6:
	cmp	w0, #134
	b.ne	LBB0_27
; %bb.7:
	ldr	w8, [x19]
	cmp	w21, w8
	b.eq	LBB0_27
; %bb.8:
	str	w21, [x19]
	b	LBB0_35
LBB0_9:
Lloh7:
	adrp	x8, _EN_UPDATE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EN_UPDATE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w22
	b.ne	LBB0_27
; %bb.10:
	ldr	w8, [x19, #36]
	cbnz	w8, LBB0_27
; %bb.11:
	mov	x0, x21
	mov	w1, #255
	bl	_CC_CheckDigitsInEdit
	mov	x22, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_GetRValue
	mov	x21, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_GetGValue
	mov	x23, x0
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_GetBValue
	mov	x24, x0
	mov	x0, x20
	bl	_LOWORD
	cmp	w0, #136
	b.eq	LBB0_36
; %bb.12:
	cmp	w0, #135
	b.eq	LBB0_37
; %bb.13:
	cmp	w0, #132
	b.ne	LBB0_27
; %bb.14:
	cmp	w22, w21
	mov	x21, x22
	b.eq	LBB0_27
	b	LBB0_38
LBB0_15:
Lloh10:
	adrp	x8, _HELPMSGSTRINGA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HELPMSGSTRINGA@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_RegisterWindowMessageA
	mov	x1, x0
	ldr	x3, [x19, #24]
	ldr	w0, [x3]
	cbz	w0, LBB0_17
; %bb.16:
	mov	w2, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_SendMessageA
	ldr	x3, [x19, #24]
LBB0_17:
	mov	x0, x3
	bl	_CC_HookCallChk
	cbz	w0, LBB0_27
; %bb.18:
	ldr	x4, [x19, #24]
	ldr	w0, [x4, #4]
	ldr	w1, [x19, #16]
Lloh13:
	adrp	x8, _WM_COMMAND@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WM_COMMAND@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x8, _psh15@GOTPAGE
Lloh17:
	ldr	x8, [x8, _psh15@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_CallWindowProcA
	b	LBB0_27
LBB0_19:
Lloh19:
	adrp	x8, _COLOROKSTRINGA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _COLOROKSTRINGA@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_RegisterWindowMessageA
	mov	x1, x0
	ldr	x3, [x19, #24]
	ldr	w0, [x3]
	cbz	w0, LBB0_21
; %bb.20:
	mov	w2, #0
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_SendMessageA
	cbnz	w0, LBB0_27
LBB0_21:
	ldr	w0, [x19, #16]
	mov	w1, #1
	b	LBB0_30
LBB0_22:
	ldr	w0, [x19, #16]
	bl	_GetDC
	mov	x20, x0
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #8]
	bl	_GetNearestColor
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
	ldr	w0, [x19, #16]
	mov	x1, x20
	bl	_ReleaseDC
	mov	x0, x19
	bl	_CC_EditSetRGB
LBB0_23:
	mov	x0, x19
	bl	_CC_PaintSelectedColor
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #8]
	mov	w0, #72
	bl	_CC_RGBtoHSL
	str	w0, [x19]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #8]
	mov	w0, #83
	bl	_CC_RGBtoHSL
	str	w0, [x19, #4]
	ldr	x8, [x19, #24]
	ldr	w1, [x8, #8]
	mov	w0, #76
	bl	_CC_RGBtoHSL
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_CC_EditSetHSL
LBB0_24:
	mov	x0, x19
	bl	_CC_PaintCross
	mov	x0, x19
	bl	_CC_PaintTriangle
	b	LBB0_27
LBB0_25:
	add	x1, x19, #32
	mov	x0, x19
	bl	_CC_SwitchToFullSize
	ldr	w0, [x19, #16]
	mov	w1, #134
	bl	_GetDlgItem
	bl	_SetFocus
	b	LBB0_27
LBB0_26:
	ldr	x8, [x19, #24]
	ldr	x9, [x8, #16]
	ldr	w8, [x8, #8]
	ldr	w10, [x19, #12]
	cmp	w10, #0
	cinc	w11, w10, lt
	and	w12, w11, #0x1ffffffe
	sub	w10, w10, w12
	lsl	w10, w10, #3
	add	w10, w10, w11, asr #1
	str	w8, [x9, w10, sxtw #2]
	ldr	w8, [x19, #12]
	add	w9, w8, #1
	cmp	w9, #16
	csinc	w8, wzr, w8, eq
	str	w8, [x19, #12]
	mov	x0, x19
	mov	w1, #2
	mov	w2, #8
	bl	_CC_PaintUserColorArray
LBB0_27:
Lloh22:
	adrp	x8, _FALSE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_28:
	ldr	w0, [x8]
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_29:
	ldr	w0, [x19, #16]
	mov	w1, #0
LBB0_30:
	bl	_EndDialog
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_28
LBB0_31:
	ldr	w8, [x19, #4]
	cmp	w21, w8
	b.eq	LBB0_27
; %bb.32:
	str	w21, [x19, #4]
	b	LBB0_35
LBB0_33:
	ldr	w8, [x19, #8]
	cmp	w21, w8
	b.eq	LBB0_27
; %bb.34:
	str	w21, [x19, #8]
LBB0_35:
	ldp	w0, w1, [x19]
	ldr	w2, [x19, #8]
	bl	_CC_HSLtoRGB
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
	mov	x0, x19
	bl	_CC_PaintSelectedColor
	mov	x0, x19
	bl	_CC_EditSetRGB
	b	LBB0_24
LBB0_36:
	cmp	w22, w24
	mov	x24, x22
	b.eq	LBB0_27
	b	LBB0_38
LBB0_37:
	cmp	w22, w23
	mov	x23, x22
	b.eq	LBB0_27
LBB0_38:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x24
	bl	_RGB
	ldr	x8, [x19, #24]
	str	w0, [x8, #8]
	b	LBB0_23
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_19-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_25-LBB0_2)>>2
	.byte	(LBB0_26-LBB0_2)>>2
	.byte	(LBB0_29-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CC_WMCommand wParam=%lx lParam=%lx\n"

	.comm	_EN_UPDATE,4,2                  ; @EN_UPDATE
	.comm	_HELPMSGSTRINGA,4,2             ; @HELPMSGSTRINGA
	.comm	_WM_COMMAND,4,2                 ; @WM_COMMAND
	.comm	_psh15,4,2                      ; @psh15
	.comm	_COLOROKSTRINGA,4,2             ; @COLOROKSTRINGA
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_CC_WMCommand
.subsections_via_symbols
