	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CC_PaintColorGraph
_CC_PaintColorGraph:                    ## @CC_PaintColorGraph
	.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
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_IDC_COLOR_GRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_IsWindowVisible
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_CC_PrepareColorGraph
LBB0_3:
	movl	%r15d, %edi
	callq	_GetDC
	movl	%eax, %r14d
	leaq	-32(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetClientRect
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	je	LBB0_5
## %bb.4:
	movl	-32(%rbp), %r8d
	movl	-28(%rbp), %ecx
	movq	_SRCCOPY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subq	$8, %rsp
	movl	%r14d, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	pushq	%rax
	pushq	$0
	pushq	$0
	callq	_BitBlt
	addq	$32, %rsp
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
LBB0_6:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_ReleaseDC
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_COLOR_GRAPH,4,2            ## @IDC_COLOR_GRAPH
	.comm	_SRCCOPY,4,2                    ## @SRCCOPY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"choose color: hdcMem is not defined\n"

	.no_dead_strip	_CC_PaintColorGraph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CC_PaintColorGraph
_CC_PaintColorGraph:                    ; @CC_PaintColorGraph
	.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, #4]
Lloh0:
	adrp	x8, _IDC_COLOR_GRAPH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_COLOR_GRAPH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x19, x0
	bl	_IsWindowVisible
	cbz	x0, LBB0_7
; %bb.1:
	ldr	w8, [x21]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_CC_PrepareColorGraph
LBB0_3:
	mov	x0, x19
	bl	_GetDC
	mov	x20, x0
	add	x1, sp, #8
	mov	x0, x19
	bl	_GetClientRect
	ldr	w5, [x21]
	cbz	w5, LBB0_5
; %bb.4:
	ldp	w4, w3, [sp, #8]
Lloh3:
	adrp	x8, _SRCCOPY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SRCCOPY@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	mov	w6, #0
	mov	w7, #0
	bl	_BitBlt
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_ReleaseDC
LBB0_7:
	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 AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_COLOR_GRAPH,4,2            ; @IDC_COLOR_GRAPH
	.comm	_SRCCOPY,4,2                    ; @SRCCOPY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"choose color: hdcMem is not defined\n"

	.no_dead_strip	_CC_PaintColorGraph
.subsections_via_symbols
