	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CC_PrepareColorGraph
_CC_PrepareColorGraph:                  ## @CC_PrepareColorGraph
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	8(%rdi), %edi
	movq	_IDC_COLOR_GRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movq	_IDC_WAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edi, %edi
	callq	_LoadCursorW
	movl	%eax, %edi
	callq	_SetCursor
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	leaq	-96(%rbp), %rsi
	movl	%r14d, %edi
	callq	_GetClientRect
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_GetDC
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_CreateCompatibleDC
	movl	%eax, (%r12)
	movl	-96(%rbp), %esi
	movl	-92(%rbp), %edx
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_CreateCompatibleBitmap
	movl	%eax, 4(%r12)
	movl	(%r12), %edi
	movl	%eax, %esi
	callq	_SelectObject
	movq	_XSTEPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	-96(%rbp), %eax
	movl	-92(%rbp), %ecx
	cltd
	idivl	%r8d
	movl	%eax, %r10d
	movq	_YSTEPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%ecx, %eax
	cltd
	idivl	%r9d
	movl	%eax, %r15d
	movl	$239, %eax
	xorl	%edx, %edx
	idivl	%r8d
	movl	%eax, %esi
	movl	$240, %eax
	xorl	%edx, %edx
	idivl	%r9d
	movl	$0, -48(%rbp)
	cmpl	$-238, %esi
	jl	LBB0_8
## %bb.1:
	notl	%r15d
	movl	%eax, %r14d
	negl	%r14d
	xorl	%edi, %edi
	movl	%r10d, -76(%rbp)                ## 4-byte Spill
	movl	%esi, -72(%rbp)                 ## 4-byte Spill
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	addl	%r10d, %r13d
	movl	%r13d, -56(%rbp)
	movl	%ecx, -52(%rbp)
	cmpl	$-239, %eax
	jl	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	%r15d, %ecx
	movl	%ecx, -44(%rbp)
	movl	%r13d, %esi
	movl	$120, %edx
	movl	%edi, %r12d
	callq	_CC_HSLtoRGB
	movl	%eax, %edi
	callq	_CreateSolidBrush
	movl	%eax, %ebx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edx
	callq	_FillRect
	movl	%ebx, %edi
	callq	_DeleteObject
	movl	%r12d, %edi
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	movl	-44(%rbp), %ecx
	movl	%ecx, -52(%rbp)
	addl	%eax, %r13d
	leal	(%r14,%r13), %edx
	cmpl	$240, %edx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-56(%rbp), %r13d
	movl	-76(%rbp), %r10d                ## 4-byte Reload
	movl	-72(%rbp), %esi                 ## 4-byte Reload
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, -48(%rbp)
	cmpl	$238, %edi
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	%esi, %edi
	movl	-92(%rbp), %ecx
	jmp	LBB0_2
LBB0_8:
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_ReleaseDC
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_SetCursor
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_COLOR_GRAPH,4,2            ## @IDC_COLOR_GRAPH
	.comm	_IDC_WAIT,8,3                   ## @IDC_WAIT
	.comm	_XSTEPS,4,2                     ## @XSTEPS
	.comm	_YSTEPS,4,2                     ## @YSTEPS
	.no_dead_strip	_CC_PrepareColorGraph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CC_PrepareColorGraph
_CC_PrepareColorGraph:                  ; @CC_PrepareColorGraph
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, 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
	mov	x20, x0
Lloh3:
	adrp	x8, _IDC_WAIT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_LoadCursorW
	bl	_SetCursor
	str	w0, [sp, #8]                    ; 4-byte Folded Spill
	add	x1, sp, #16
	mov	x0, x20
	bl	_GetClientRect
	str	w20, [sp, #12]                  ; 4-byte Folded Spill
	mov	x0, x20
	bl	_GetDC
	mov	x22, x0
	bl	_CreateCompatibleDC
	str	w0, [x19]
	ldp	w1, w2, [sp, #16]
	mov	x0, x22
	bl	_CreateCompatibleBitmap
	mov	x1, x0
	str	w0, [x19, #4]
	ldr	w0, [x19]
	bl	_SelectObject
Lloh6:
	adrp	x8, _XSTEPS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XSTEPS@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x8]
Lloh9:
	adrp	x9, _YSTEPS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _YSTEPS@GOTPAGEOFF]
	ldp	w11, w8, [sp, #16]
Lloh11:
	ldr	w12, [x9]
	mov	w9, #239
	sdiv	w26, w9, w10
	str	wzr, [sp, #40]
	cmn	w26, #238
	b.lt	LBB0_8
; %bb.1:
	mov	w9, #0
	mov	w23, #0
	sdiv	w13, w8, w12
	mvn	w27, w13
	mov	w13, #240
	sdiv	w28, w13, w12
	neg	w21, w28
	sdiv	w20, w11, w10
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	w9, w9, w20
	stp	w9, w8, [sp, #32]
	cmn	w28, #239
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	w8, w8, w27
	str	w8, [sp, #44]
	mov	x0, x23
	mov	x1, x24
	mov	w2, #120
	bl	_CC_HSLtoRGB
	bl	_CreateSolidBrush
	mov	x25, x0
	ldr	w0, [x19]
	add	x1, sp, #32
	mov	x2, x25
	bl	_FillRect
	mov	x0, x25
	bl	_DeleteObject
	ldr	w8, [sp, #44]
	str	w8, [sp, #36]
	add	w24, w24, w28
	add	w9, w21, w24
	cmp	w9, #240
	b.lt	LBB0_4
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [sp, #32]
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w9, [sp, #40]
	cmp	w23, #238
	b.gt	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w23, w23, w26
	ldr	w8, [sp, #20]
	b	LBB0_2
LBB0_8:
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	mov	x1, x22
	bl	_ReleaseDC
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	bl	_SetCursor
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_COLOR_GRAPH,4,2            ; @IDC_COLOR_GRAPH
	.comm	_IDC_WAIT,8,3                   ; @IDC_WAIT
	.comm	_XSTEPS,4,2                     ; @XSTEPS
	.comm	_YSTEPS,4,2                     ; @YSTEPS
	.no_dead_strip	_CC_PrepareColorGraph
.subsections_via_symbols
