	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CC_PaintTriangle
_CC_PaintTriangle:                      ## @CC_PaintTriangle
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%eax, %eax
	callq	_GetDialogBaseUnits
	movl	%eax, %edi
	callq	_LOWORD
	movl	%eax, %r14d
	movl	(%r12), %edi
	movq	_IDC_COLOR_LUMBAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	movl	(%r12), %edi
	movq	_IDC_COLOR_GRAPH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %edi
	callq	_IsWindowVisible
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movl	%r14d, %ebx
	shrl	$31, %ebx
	addl	%r14d, %ebx
	sarl	%ebx
	leaq	-120(%rbp), %rsi
	movl	%r15d, %edi
	callq	_GetClientRect
	movslq	-120(%rbp), %r14
	movl	(%r12), %edi
	callq	_GetDC
	movl	%eax, -100(%rbp)                ## 4-byte Spill
	movl	-116(%rbp), %eax
	movl	%eax, -96(%rbp)
	movq	-112(%rbp), %rax
	movq	%rax, -88(%rbp)
	leaq	-96(%rbp), %r13
	movl	%r15d, -104(%rbp)               ## 4-byte Spill
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_ClientToScreen
	movl	(%r12), %edi
	movq	%r13, %rsi
	callq	_ScreenToClient
	movq	%r14, %rax
	imulq	32(%r12), %rax
	movq	-88(%rbp), %rcx
	incq	%rcx
	movq	%rcx, -88(%rbp)
	movl	-96(%rbp), %esi
	addl	%r14d, %esi
	movq	_MAXVERT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	cqto
	idivq	%rdi
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	subl	%eax, %esi
	movl	%esi, -96(%rbp)
	leal	(%rsi,%rbx), %eax
	movl	%eax, -80(%rbp)
	subl	%ebx, %esi
	movl	%esi, -64(%rbp)
	movslq	%ebx, %rax
	addq	%rax, %rcx
	movq	%rcx, -72(%rbp)
	movq	%rcx, -56(%rbp)
	movq	_GCLP_HBRBACKGROUND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-104(%rbp), %edi                ## 4-byte Reload
	callq	_GetClassLongPtrW
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_COLOR_BTNFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetSysColorBrush
LBB0_6:
	leaq	8(%r12), %rsi
	movl	-100(%rbp), %ebx                ## 4-byte Reload
	movl	%ebx, %edi
	movq	%rax, %rdx
	callq	_FillRect
	movq	-88(%rbp), %rax
	movq	%rax, 24(%r12)
	movq	-72(%rbp), %rax
	incq	%rax
	movq	%rax, 16(%r12)
	movl	-64(%rbp), %eax
	decl	%eax
	movl	%eax, 8(%r12)
	movl	-80(%rbp), %eax
	incl	%eax
	movl	%eax, 12(%r12)
	movq	_BLACK_BRUSH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetStockObject
	movl	%ebx, %edi
	movq	%rax, %rsi
	callq	_SelectObject
	movq	%rax, %r14
	leaq	-96(%rbp), %rsi
	movl	%ebx, %edi
	movl	$3, %edx
	callq	_Polygon
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_SelectObject
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_ReleaseDC
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_COLOR_LUMBAR,4,2           ## @IDC_COLOR_LUMBAR
	.comm	_IDC_COLOR_GRAPH,4,2            ## @IDC_COLOR_GRAPH
	.comm	_MAXVERT,8,3                    ## @MAXVERT
	.comm	_GCLP_HBRBACKGROUND,4,2         ## @GCLP_HBRBACKGROUND
	.comm	_COLOR_BTNFACE,4,2              ## @COLOR_BTNFACE
	.comm	_BLACK_BRUSH,4,2                ## @BLACK_BRUSH
	.no_dead_strip	_CC_PaintTriangle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CC_PaintTriangle
_CC_PaintTriangle:                      ; @CC_PaintTriangle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	bl	_GetDialogBaseUnits
	bl	_LOWORD
	mov	x20, x0
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _IDC_COLOR_LUMBAR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_COLOR_LUMBAR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x21, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _IDC_COLOR_GRAPH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDC_COLOR_GRAPH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_GetDlgItem
	bl	_IsWindowVisible
	cbz	x0, LBB0_4
; %bb.1:
	cmp	w20, #0
	cinc	w8, w20, lt
	asr	w22, w8, #1
	add	x1, sp, #8
	mov	x0, x21
	bl	_GetClientRect
	ldrsw	x23, [sp, #8]
	ldr	w0, [x19]
	bl	_GetDC
	mov	x20, x0
	ldr	w8, [sp, #12]
	str	w8, [sp, #24]
	ldr	x8, [sp, #16]
	str	x8, [sp, #32]
	add	x1, sp, #24
	mov	x0, x21
	bl	_ClientToScreen
	ldr	w0, [x19]
	add	x1, sp, #24
	bl	_ScreenToClient
	ldr	w8, [sp, #24]
	ldr	x9, [x19, #32]
	mul	x9, x9, x23
Lloh9:
	adrp	x10, _MAXVERT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MAXVERT@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	sdiv	x9, x9, x10
	ldr	x10, [sp, #32]
	add	x10, x10, #1
	str	x10, [sp, #32]
	add	w8, w8, w23
	sub	w8, w8, w9
	str	w8, [sp, #24]
	add	w9, w8, w22
	str	w9, [sp, #40]
	sub	w8, w8, w22
	str	w8, [sp, #56]
	add	x8, x10, w22, sxtw
	str	x8, [sp, #48]
	str	x8, [sp, #64]
Lloh12:
	adrp	x8, _GCLP_HBRBACKGROUND@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GCLP_HBRBACKGROUND@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_GetClassLongPtrW
	mov	x2, x0
	cbnz	x0, LBB0_3
; %bb.2:
Lloh15:
	adrp	x8, _COLOR_BTNFACE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _COLOR_BTNFACE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_GetSysColorBrush
	mov	x2, x0
LBB0_3:
	add	x1, x19, #8
	mov	x0, x20
	bl	_FillRect
	ldr	x8, [sp, #32]
	ldr	x9, [sp, #48]
	add	x9, x9, #1
	stp	x9, x8, [x19, #16]
	ldr	w8, [sp, #56]
	sub	w8, w8, #1
	ldr	w9, [sp, #40]
	add	w9, w9, #1
	stp	w8, w9, [x19, #8]
Lloh18:
	adrp	x8, _BLACK_BRUSH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BLACK_BRUSH@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_GetStockObject
	mov	x1, x0
	mov	x0, x20
	bl	_SelectObject
	mov	x21, x0
	add	x1, sp, #24
	mov	x0, x20
	mov	w2, #3
	bl	_Polygon
	mov	x0, x20
	mov	x1, x21
	bl	_SelectObject
	ldr	w0, [x19]
	mov	x1, x20
	bl	_ReleaseDC
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_COLOR_LUMBAR,4,2           ; @IDC_COLOR_LUMBAR
	.comm	_IDC_COLOR_GRAPH,4,2            ; @IDC_COLOR_GRAPH
	.comm	_MAXVERT,8,3                    ; @MAXVERT
	.comm	_GCLP_HBRBACKGROUND,4,2         ; @GCLP_HBRBACKGROUND
	.comm	_COLOR_BTNFACE,4,2              ; @COLOR_BTNFACE
	.comm	_BLACK_BRUSH,4,2                ; @BLACK_BRUSH
	.no_dead_strip	_CC_PaintTriangle
.subsections_via_symbols
