	.file	"extr_colordlg.c_CC_MouseCheckPredefColorArray.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CC_MouseCheckPredefColorArray, @function
CC_MouseCheckPredefColorArray:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	edi, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	r15, 24[rsp]
	lea	r14, 32[rsp]
	mov	rsi, r15
	call	CONV_LPARAMTOPOINT@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	rsi, r15
	call	ClientToScreen@PLT
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR IDC_COLOR_PREDEF[rip]
	call	GetDlgItem@PLT
	mov	rsi, r14
	mov	edi, eax
	mov	r12d, eax
	call	GetWindowRect@PLT
	mov	rsi, QWORD PTR 24[rsp]
	mov	rdi, r14
	call	PtInRect@PLT
	test	rax, rax
	jne	.L10
.L2:
	mov	eax, DWORD PTR FALSE[rip]
.L1:
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, DWORD PTR 32[rsp]
	sub	eax, DWORD PTR 36[rsp]
	mov	rsi, r15
	mov	edi, r12d
	cdq
	mov	r14d, DWORD PTR 40[rsp]
	idiv	ebx
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 44[rsp]
	mov	DWORD PTR 12[rsp], eax
	call	ScreenToClient@PLT
	mov	eax, DWORD PTR 24[rsp]
	mov	ecx, DWORD PTR 8[rsp]
	mov	esi, DWORD PTR DISTANCE[rip]
	cdq
	idiv	ecx
	sub	ecx, esi
	mov	r10d, eax
	cmp	edx, ecx
	jge	.L2
	sub	r14d, DWORD PTR 12[rsp]
	mov	eax, r14d
	cdq
	idiv	r13d
	mov	r14d, eax
	mov	eax, DWORD PTR 28[rsp]
	cdq
	idiv	r14d
	sub	r14d, esi
	cmp	edx, r14d
	jge	.L2
	mov	rdx, QWORD PTR predefcolors[rip]
	movsx	rsi, eax
	movsx	rcx, r10d
	mov	r9d, ebx
	mov	r8d, r13d
	mov	rdi, rbp
	mov	rdx, QWORD PTR [rdx+rsi*8]
	mov	esi, r12d
	mov	ecx, DWORD PTR [rdx+rcx*4]
	mov	rdx, QWORD PTR 0[rbp]
	mov	DWORD PTR [rdx], ecx
	mov	ecx, eax
	mov	edx, r10d
	call	CC_DrawFocusRect@PLT
	mov	eax, DWORD PTR TRUE[rip]
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CC_MouseCheckPredefColorArray, .-CC_MouseCheckPredefColorArray
	.comm	predefcolors,8,8
	.comm	TRUE,4,4
	.comm	IDC_COLOR_PREDEF,4,4
	.comm	FALSE,4,4
	.comm	DISTANCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_colordlg.c_CC_MouseCheckPredefColorArray.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CC_MouseCheckPredefColorArray, %function
CC_MouseCheckPredefColorArray:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	sub	sp, sp, #52
	add	r4, sp, #20
	mov	r0, r3
	ldr	r3, .L12
	mov	r8, r1
	mov	r1, r4
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	CONV_LPARAMTOPOINT
	mov	r1, r4
	ldr	r0, [r5, #4]
	bl	ClientToScreen
	ldr	r3, .L12+4
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	bl	GetDlgItem
	add	r1, sp, #28
	mov	r7, r0
	bl	GetWindowRect
	ldm	r4, {r1, r2}
	add	r0, sp, #28
	bl	PtInRect
	cmp	r0, #0
	bne	.L10
.L2:
	ldr	r3, .L12+8
	ldr	r0, [r3]
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r3, [sp, #32]
	ldr	r0, [sp, #28]
	mov	r1, r6
	sub	r0, r0, r3
	bl	__aeabi_idiv
	mov	r1, r4
	mov	r4, r0
	mov	r0, r7
	ldr	r10, [sp, #36]
	ldr	r9, [sp, #40]
	bl	ScreenToClient
	mov	r1, r4
	ldr	r0, [sp, #20]
	bl	__aeabi_idivmod
	ldr	r3, .L12+12
	mov	fp, r0
	ldr	r2, [r3]
	sub	r4, r4, r2
	cmp	r1, r4
	str	r2, [sp, #12]
	bge	.L2
	mov	r1, r8
	sub	r0, r10, r9
	bl	__aeabi_idiv
	mov	r4, r0
	ldr	r0, [sp, #24]
	mov	r1, r4
	bl	__aeabi_idivmod
	ldr	r2, [sp, #12]
	sub	r2, r4, r2
	cmp	r1, r2
	bge	.L2
	ldr	r3, .L12+16
	ldr	ip, [r5]
	ldr	r3, [r3]
	mov	r1, r7
	ldr	r2, [r3, r0, lsl #2]
	mov	r3, r0
	ldr	r0, [r2, fp, lsl #2]
	mov	r2, fp
	str	r0, [ip]
	mov	r0, r5
	str	r6, [sp, #4]
	str	r8, [sp]
	bl	CC_DrawFocusRect
	ldr	r3, .L12+20
	ldr	r0, [r3]
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	IDC_COLOR_PREDEF
	.word	FALSE
	.word	DISTANCE
	.word	predefcolors
	.word	TRUE
	.size	CC_MouseCheckPredefColorArray, .-CC_MouseCheckPredefColorArray
	.comm	predefcolors,4,4
	.comm	TRUE,4,4
	.comm	IDC_COLOR_PREDEF,4,4
	.comm	FALSE,4,4
	.comm	DISTANCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
