	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CC_MouseCheckColorGraph
_CC_MouseCheckColorGraph:               ## @CC_MouseCheckColorGraph
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movl	%esi, %r12d
	movl	%edi, %ebx
	leaq	-56(%rbp), %r13
	movl	%r8d, %edi
	movq	%r13, %rsi
	callq	_CONV_LPARAMTOPOINT
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_ClientToScreen
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_GetDlgItem
	movl	%eax, %ebx
	leaq	-72(%rbp), %r12
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_GetWindowRect
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_PtInRect
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	leaq	-72(%rbp), %rsi
	movl	%ebx, %edi
	callq	_GetClientRect
	leaq	-56(%rbp), %rsi
	movl	%ebx, %edi
	callq	_ScreenToClient
	movq	-64(%rbp), %rcx
	movq	%rcx, %rax
	subq	-56(%rbp), %rax
	movq	_MAXVERT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	imulq	%rsi, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_3
## %bb.4:
	cqto
	idivq	%rcx
	jmp	LBB0_5
LBB0_1:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovgq	%rax, %rcx
	cmpq	%rsi, %rcx
	cmovgeq	%rsi, %rcx
	testq	%r15, %r15
	je	LBB0_10
## %bb.6:
	movq	_MAXHORI@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	-48(%rbp), %rax
	imulq	%rsi, %rax
	movq	-72(%rbp), %rdi
	movq	%rax, %rdx
	orq	%rdi, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	cqto
	idivq	%rdi
	jmp	LBB0_9
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:
	xorl	%edx, %edx
	testq	%rax, %rax
	cmovgq	%rax, %rdx
	cmpq	%rsi, %rdx
	cmovgeq	%rsi, %rdx
	movl	%edx, (%r15)
LBB0_10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	testq	%r14, %r14
	je	LBB0_12
## %bb.11:
	movl	%ecx, (%r14)
LBB0_12:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MAXHORI,8,3                    ## @MAXHORI
	.comm	_MAXVERT,8,3                    ## @MAXVERT
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_CC_MouseCheckColorGraph
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CC_MouseCheckColorGraph
_CC_MouseCheckColorGraph:               ; @CC_MouseCheckColorGraph
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	add	x1, sp, #16
	mov	x0, x4
	bl	_CONV_LPARAMTOPOINT
	add	x1, sp, #16
	mov	x0, x22
	bl	_ClientToScreen
	mov	x0, x22
	mov	x1, x21
	bl	_GetDlgItem
	mov	x21, x0
	mov	x1, sp
	bl	_GetWindowRect
	ldp	x1, x2, [sp, #16]
	mov	x0, sp
	bl	_PtInRect
	cbz	w0, LBB0_6
; %bb.1:
	mov	x1, sp
	mov	x0, x21
	bl	_GetClientRect
	add	x1, sp, #16
	mov	x0, x21
	bl	_ScreenToClient
	ldp	x8, x9, [sp, #8]
	sub	x9, x8, x9
Lloh0:
	adrp	x10, _MAXVERT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _MAXVERT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	mul	x9, x9, x10
	sdiv	x8, x9, x8
	cmp	x8, #0
	csel	x8, x8, xzr, gt
	cmp	x8, x10
	csel	x8, x8, x10, lt
	cbz	x20, LBB0_3
; %bb.2:
Lloh3:
	adrp	x9, _MAXHORI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAXHORI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x10, [sp, #24]
	mul	x10, x10, x9
	ldr	x11, [sp]
	sdiv	x10, x10, x11
	cmp	x10, #0
	csel	x10, x10, xzr, gt
	cmp	x10, x9
	csel	x9, x10, x9, lt
	str	w9, [x20]
LBB0_3:
	cbz	x19, LBB0_5
; %bb.4:
	str	w8, [x19]
LBB0_5:
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MAXHORI,8,3                    ; @MAXHORI
	.comm	_MAXVERT,8,3                    ; @MAXVERT
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_CC_MouseCheckColorGraph
.subsections_via_symbols
