	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CC_PaintSelectedColor
_CC_PaintSelectedColor:                 ## @CC_PaintSelectedColor
	.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	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_IDC_COLOR_GRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %edi
	callq	_IsWindowVisible
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	movq	_IDC_COLOR_RESULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_GetDC
	movl	%eax, %r14d
	leaq	-36(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetClientRect
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	_CreateSolidBrush
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rbx
	leaq	-36(%rbp), %r12
	movl	%r14d, %edi
	movq	%r12, %rsi
	movq	%rax, %rdx
	callq	_FillRect
	movq	_BDR_SUNKENOUTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_BF_RECT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_DrawEdge
	movq	%rbx, %rdi
	callq	_DeleteObject
LBB0_3:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_ReleaseDC
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_COLOR_GRAPH,4,2            ## @IDC_COLOR_GRAPH
	.comm	_IDC_COLOR_RESULT,4,2           ## @IDC_COLOR_RESULT
	.comm	_BDR_SUNKENOUTER,4,2            ## @BDR_SUNKENOUTER
	.comm	_BF_RECT,4,2                    ## @BF_RECT
	.no_dead_strip	_CC_PaintSelectedColor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CC_PaintSelectedColor
_CC_PaintSelectedColor:                 ; @CC_PaintSelectedColor
	.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	x21, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _IDC_COLOR_GRAPH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_COLOR_GRAPH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	bl	_IsWindowVisible
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w0, [x21, #8]
Lloh3:
	adrp	x8, _IDC_COLOR_RESULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_COLOR_RESULT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x19, x0
	bl	_GetDC
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x19
	bl	_GetClientRect
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_CreateSolidBrush
	cbz	x0, LBB0_3
; %bb.2:
	mov	x21, x0
	add	x1, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_FillRect
Lloh6:
	adrp	x8, _BDR_SUNKENOUTER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BDR_SUNKENOUTER@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _BF_RECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BF_RECT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	add	x1, sp, #12
	mov	x0, x20
	bl	_DrawEdge
	mov	x0, x21
	bl	_DeleteObject
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_ReleaseDC
LBB0_4:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_COLOR_GRAPH,4,2            ; @IDC_COLOR_GRAPH
	.comm	_IDC_COLOR_RESULT,4,2           ; @IDC_COLOR_RESULT
	.comm	_BDR_SUNKENOUTER,4,2            ; @BDR_SUNKENOUTER
	.comm	_BF_RECT,4,2                    ; @BF_RECT
	.no_dead_strip	_CC_PaintSelectedColor
.subsections_via_symbols
