	.file	"extr_colordlg.c_CC_PaintTriangle.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	CC_PaintTriangle, @function
CC_PaintTriangle:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	GetDialogBaseUnits@PLT
	mov	edi, eax
	call	LOWORD@PLT
	mov	esi, DWORD PTR IDC_COLOR_LUMBAR[rip]
	mov	edi, DWORD PTR [rbx]
	mov	ebp, eax
	call	GetDlgItem@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, DWORD PTR IDC_COLOR_GRAPH[rip]
	mov	r12d, eax
	call	GetDlgItem@PLT
	mov	edi, eax
	call	IsWindowVisible@PLT
	test	rax, rax
	jne	.L10
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 88
	.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, ebp
	mov	rsi, rsp
	lea	r14, 16[rsp]
	mov	edi, r12d
	shr	eax, 31
	add	ebp, eax
	call	GetClientRect@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r15d, DWORD PTR [rsp]
	sar	ebp
	call	GetDC@PLT
	mov	rsi, r14
	mov	edi, r12d
	mov	r13d, eax
	mov	eax, DWORD PTR 4[rsp]
	mov	DWORD PTR 16[rsp], eax
	mov	rax, QWORD PTR 8[rsp]
	mov	QWORD PTR 24[rsp], rax
	call	ClientToScreen@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r14
	call	ScreenToClient@PLT
	movsx	rax, r15d
	imul	rax, QWORD PTR 32[rbx]
	mov	edi, r12d
	add	r15d, DWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	mov	esi, DWORD PTR GCLP_HBRBACKGROUND[rip]
	cqo
	add	rcx, 1
	idiv	QWORD PTR MAXVERT[rip]
	mov	QWORD PTR 24[rsp], rcx
	sub	r15d, eax
	mov	eax, r15d
	lea	edx, [r15+rbp]
	mov	DWORD PTR 16[rsp], r15d
	sub	eax, ebp
	movsx	rbp, ebp
	mov	DWORD PTR 32[rsp], edx
	add	rbp, rcx
	mov	DWORD PTR 48[rsp], eax
	mov	QWORD PTR 40[rsp], rbp
	mov	QWORD PTR 56[rsp], rbp
	call	GetClassLongPtrW@PLT
	mov	rdx, rax
	test	rax, rax
	je	.L12
.L3:
	lea	rsi, 8[rbx]
	mov	edi, r13d
	call	FillRect@PLT
	mov	rax, QWORD PTR 24[rsp]
	mov	edi, DWORD PTR BLACK_BRUSH[rip]
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR 40[rsp]
	add	rax, 1
	mov	QWORD PTR 16[rbx], rax
	mov	eax, DWORD PTR 48[rsp]
	sub	eax, 1
	mov	DWORD PTR 8[rbx], eax
	mov	eax, DWORD PTR 32[rsp]
	add	eax, 1
	mov	DWORD PTR 12[rbx], eax
	call	GetStockObject@PLT
	mov	edi, r13d
	mov	rsi, rax
	call	SelectObject@PLT
	mov	edx, 3
	mov	rsi, r14
	mov	edi, r13d
	mov	rbp, rax
	call	Polygon@PLT
	mov	rsi, rbp
	mov	edi, r13d
	call	SelectObject@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, r13d
	call	ReleaseDC@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR COLOR_BTNFACE[rip]
	call	GetSysColorBrush@PLT
	mov	rdx, rax
	jmp	.L3
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CC_PaintTriangle, .-CC_PaintTriangle
	.comm	MAXVERT,8,8
	.comm	IDC_COLOR_LUMBAR,4,4
	.comm	IDC_COLOR_GRAPH,4,4
	.comm	GCLP_HBRBACKGROUND,4,4
	.comm	COLOR_BTNFACE,4,4
	.comm	BLACK_BRUSH,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_PaintTriangle.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CC_PaintTriangle, %function
CC_PaintTriangle:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L13
	sub	sp, sp, #44
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	mov	r4, r0
	bl	GetDialogBaseUnits
	bl	LOWORD
	ldr	r2, .L13+4
	mov	r5, r0
	ldr	r1, [r2]
	ldr	r0, [r4]
	bl	GetDlgItem
	ldr	r3, .L13+8
	mov	r6, r0
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	GetDlgItem
	bl	IsWindowVisible
	cmp	r0, #0
	bne	.L10
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L10:
	mov	r1, sp
	mov	r0, r6
	bl	GetClientRect
	ldr	r0, [r4]
	ldr	r7, [sp]
	bl	GetDC
	ldmib	sp, {r2, r3}
	add	r1, sp, #12
	mov	r8, r0
	mov	r0, r6
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	bl	ClientToScreen
	add	r1, sp, #12
	ldr	r0, [r4]
	bl	ScreenToClient
	ldr	r9, [sp, #16]
	ldr	r3, .L13+12
	ldr	r0, [r4, #20]
	ldr	r2, [sp, #12]
	ldr	r1, [r3]
	mul	r0, r7, r0
	add	r9, r9, #1
	str	r9, [sp, #16]
	add	r7, r7, r2
	bl	__aeabi_idiv
	add	r5, r5, r5, lsr #31
	ldr	r1, .L13+16
	sub	r2, r7, r0
	asr	r5, r5, #1
	add	r3, r2, r5
	add	r9, r9, r5
	mov	r0, r6
	sub	r5, r2, r5
	ldr	r1, [r1]
	str	r2, [sp, #12]
	str	r9, [sp, #24]
	str	r9, [sp, #32]
	str	r3, [sp, #20]
	str	r5, [sp, #28]
	bl	GetClassLongPtrW
	subs	r2, r0, #0
	beq	.L12
.L3:
	add	r1, r4, #4
	mov	r0, r8
	bl	FillRect
	ldr	r1, [sp, #24]
	ldr	r2, [sp, #28]
	ldr	r3, [sp, #20]
	add	r1, r1, #1
	ldr	r0, [sp, #16]
	str	r1, [r4, #12]
	ldr	r1, .L13+20
	add	r3, r3, #1
	sub	r2, r2, #1
	stmib	r4, {r2, r3}
	str	r0, [r4, #16]
	ldr	r0, [r1]
	bl	GetStockObject
	mov	r1, r0
	mov	r0, r8
	bl	SelectObject
	mov	r5, r0
	mov	r2, #3
	add	r1, sp, #12
	mov	r0, r8
	bl	Polygon
	mov	r1, r5
	mov	r0, r8
	bl	SelectObject
	mov	r1, r8
	ldr	r0, [r4]
	bl	ReleaseDC
	b	.L1
.L12:
	ldr	r3, .L13+24
	ldr	r0, [r3]
	bl	GetSysColorBrush
	mov	r2, r0
	b	.L3
.L11:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	IDC_COLOR_LUMBAR
	.word	IDC_COLOR_GRAPH
	.word	MAXVERT
	.word	GCLP_HBRBACKGROUND
	.word	BLACK_BRUSH
	.word	COLOR_BTNFACE
	.size	CC_PaintTriangle, .-CC_PaintTriangle
	.comm	MAXVERT,4,4
	.comm	IDC_COLOR_LUMBAR,4,4
	.comm	IDC_COLOR_GRAPH,4,4
	.comm	GCLP_HBRBACKGROUND,4,4
	.comm	COLOR_BTNFACE,4,4
	.comm	BLACK_BRUSH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
