	.file	"225142964.c"
	.intel_syntax noprefix
	.text
	.globl	create_simple_window
	.type	create_simple_window, @function
create_simple_window:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -36[rbp], ecx
	mov	DWORD PTR -40[rbp], r8d
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -16[rbp], eax
	mov	DWORD PTR -12[rbp], 2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	r9, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	r8, QWORD PTR 96[rax]
	mov	edi, DWORD PTR -12[rbp]
	mov	r11d, DWORD PTR -32[rbp]
	mov	r10d, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	mov	ecx, DWORD PTR -40[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -24[rbp]
	sub	rsp, 8
	push	r9
	push	r8
	push	rdi
	mov	r9d, r11d
	mov	r8d, r10d
	mov	rdi, rax
	call	XCreateSimpleWindow@PLT
	add	rsp, 32
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapWindow@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	create_simple_window, .-create_simple_window
	.globl	create_gc
	.type	create_gc, @function
create_gc:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 224
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	DWORD PTR -212[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -160[rbp], 0
	mov	DWORD PTR -180[rbp], 2
	mov	DWORD PTR -176[rbp], 0
	mov	DWORD PTR -172[rbp], 1
	mov	DWORD PTR -168[rbp], 2
	mov	rax, QWORD PTR -200[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -164[rbp], eax
	lea	rcx, -144[rbp]
	mov	rdx, QWORD PTR -160[rbp]
	mov	rsi, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	XCreateGC@PLT
	mov	QWORD PTR -152[rbp], rax
	cmp	DWORD PTR -212[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 88[rax]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetForeground@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 96[rax]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetBackground@PLT
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 96[rax]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetForeground@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -164[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 88[rax]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetBackground@PLT
.L5:
	mov	r8d, DWORD PTR -168[rbp]
	mov	edi, DWORD PTR -172[rbp]
	mov	ecx, DWORD PTR -176[rbp]
	mov	edx, DWORD PTR -180[rbp]
	mov	rsi, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	r9d, r8d
	mov	r8d, edi
	mov	rdi, rax
	call	XSetLineAttributes@PLT
	mov	rcx, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetFillStyle@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_gc, .-create_gc
	.globl	handle_expose
	.type	handle_expose, @function
handle_expose:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	DWORD PTR -84[rbp], r8d
	mov	DWORD PTR -88[rbp], r9d
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 56[rax]
	test	eax, eax
	jne	.L18
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, 5
	mov	ecx, 5
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 5
	mov	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, ecx
	mov	ecx, 5
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 5
	mov	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, 5
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	eax, DWORD PTR -88[rbp]
	sub	eax, 5
	mov	edi, eax
	mov	eax, DWORD PTR -84[rbp]
	sub	eax, 5
	mov	ecx, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	200
	mov	r9d, 50
	mov	r8d, 0
	mov	ecx, 50
	mov	rdi, rax
	call	XDrawLine@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	100
	mov	r9d, 200
	mov	r8d, 100
	mov	ecx, 0
	mov	rdi, rax
	call	XDrawLine@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	23040
	push	0
	push	30
	mov	r9d, 30
	mov	r8d, 85
	mov	ecx, 35
	mov	rdi, rax
	call	XDrawArc@PLT
	add	rsp, 32
	mov	WORD PTR -32[rbp], 0
	mov	WORD PTR -30[rbp], 0
	mov	WORD PTR -28[rbp], 15
	mov	WORD PTR -26[rbp], 15
	mov	WORD PTR -24[rbp], 0
	mov	WORD PTR -22[rbp], 15
	mov	WORD PTR -20[rbp], 0
	mov	WORD PTR -18[rbp], 0
	mov	DWORD PTR -36[rbp], 4
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	edi, DWORD PTR -36[rbp]
	lea	rcx, -32[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r9d, 0
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawLines@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	60
	mov	r9d, 50
	mov	r8d, 150
	mov	ecx, 120
	mov	rdi, rax
	call	XDrawRectangle@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	sub	rsp, 8
	push	60
	mov	r9d, 50
	mov	r8d, 150
	mov	ecx, 60
	mov	rdi, rax
	call	XFillRectangle@PLT
	add	rsp, 16
	mov	DWORD PTR -44[rbp], 0
	jmp	.L11
.L16:
	mov	DWORD PTR -40[rbp], 0
	jmp	.L12
.L15:
	mov	eax, DWORD PTR -44[rbp]
	cdqe
	imul	rdx, rax, 2000
	mov	rax, QWORD PTR -96[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	movzx	eax, WORD PTR [rdx+rax*2]
	cwde
	cmp	eax, -1
	je	.L13
	cmp	eax, 1
	jne	.L14
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	edi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawPoint@PLT
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	edi, DWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -44[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawPoint@PLT
	nop
.L14:
	add	DWORD PTR -40[rbp], 1
.L12:
	mov	eax, DWORD PTR -40[rbp]
	cmp	DWORD PTR -88[rbp], eax
	ja	.L15
	add	DWORD PTR -44[rbp], 1
.L11:
	mov	eax, DWORD PTR -44[rbp]
	cmp	DWORD PTR -84[rbp], eax
	ja	.L16
	jmp	.L8
.L18:
	nop
.L8:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	handle_expose, .-handle_expose
	.globl	handle_drag
	.type	handle_drag, @function
handle_drag:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -52[rbp], r8d
	mov	DWORD PTR -56[rbp], r9d
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 64[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 68[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 80[rax]
	cmp	eax, 256
	je	.L20
	cmp	eax, 512
	je	.L21
	jmp	.L23
.L20:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	edi, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rdx, rax, 2000
	mov	rax, QWORD PTR 16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	WORD PTR [rdx+rax*2], 1
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	edi, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rdx, rax, 2000
	mov	rax, QWORD PTR 16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	WORD PTR [rdx+rax*2], -1
	nop
.L22:
.L23:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	handle_drag, .-handle_drag
	.globl	handle_button_down
	.type	handle_button_down, @function
handle_button_down:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -52[rbp], r8d
	mov	DWORD PTR -56[rbp], r9d
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 64[rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 68[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 84[rax]
	cmp	eax, 1
	je	.L25
	cmp	eax, 2
	je	.L26
	jmp	.L28
.L25:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	edi, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rdx, rax, 2000
	mov	rax, QWORD PTR 16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	WORD PTR [rdx+rax*2], 1
	jmp	.L27
.L26:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	edi, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r8d, edi
	mov	rdi, rax
	call	XDrawPoint@PLT
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rdx, rax, 2000
	mov	rax, QWORD PTR 16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	mov	WORD PTR [rdx+rax*2], -1
	nop
.L27:
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	handle_button_down, .-handle_button_down
	.section	.rodata
.LC0:
	.string	"DISPLAY"
	.align 8
.LC1:
	.string	"%s: cannot connect to X server '%s'\n"
	.align 8
.LC2:
	.string	"window width - '%d'; height - '%d'\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -1998848[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 1456
	mov	DWORD PTR -2000292[rbp], edi
	mov	QWORD PTR -2000304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	QWORD PTR -2000248[rbp], rax
	mov	DWORD PTR -2000272[rbp], 0
	jmp	.L30
.L33:
	mov	DWORD PTR -2000268[rbp], 0
	jmp	.L31
.L32:
	mov	eax, DWORD PTR -2000268[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -2000272[rbp]
	cdqe
	imul	rax, rax, 1000
	add	rax, rdx
	mov	WORD PTR -2000016[rbp+rax*2], 0
	add	DWORD PTR -2000268[rbp], 1
.L31:
	cmp	DWORD PTR -2000268[rbp], 999
	jle	.L32
	add	DWORD PTR -2000272[rbp], 1
.L30:
	cmp	DWORD PTR -2000272[rbp], 999
	jle	.L33
	mov	rax, QWORD PTR -2000248[rbp]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR -2000240[rbp], rax
	cmp	QWORD PTR -2000240[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR -2000304[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -2000248[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR -2000240[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -2000260[rbp], eax
	mov	rax, QWORD PTR -2000240[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -2000260[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR -2000256[rbp], eax
	mov	rax, QWORD PTR -2000240[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -2000260[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -2000252[rbp], eax
	mov	eax, DWORD PTR -2000256[rbp]
	mov	edx, eax
	mov	eax, 2863311531
	imul	rax, rdx
	shr	rax, 32
	shr	eax
	mov	DWORD PTR -2000280[rbp], eax
	mov	eax, DWORD PTR -2000252[rbp]
	mov	edx, eax
	mov	eax, 2863311531
	imul	rax, rdx
	shr	rax, 32
	shr	eax
	mov	DWORD PTR -2000276[rbp], eax
	mov	edx, DWORD PTR -2000276[rbp]
	mov	eax, DWORD PTR -2000280[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -2000276[rbp]
	mov	esi, DWORD PTR -2000280[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	rdi, rax
	call	create_simple_window
	mov	QWORD PTR -2000232[rbp], rax
	mov	rcx, QWORD PTR -2000232[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	create_gc
	mov	QWORD PTR -2000224[rbp], rax
	mov	rcx, QWORD PTR -2000232[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	create_gc
	mov	QWORD PTR -2000216[rbp], rax
	mov	rcx, QWORD PTR -2000232[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	mov	edx, 164613
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	DWORD PTR -2000264[rbp], 0
	jmp	.L35
.L43:
	lea	rdx, -2000208[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -2000208[rbp]
	cmp	eax, 22
	ja	.L45
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L38[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L38[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L38:
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L42-.L38
	.long	.L45-.L38
	.long	.L41-.L38
	.long	.L45-.L38
	.long	.L40-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L39-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L45-.L38
	.long	.L37-.L38
	.text
.L39:
	mov	r9d, DWORD PTR -2000276[rbp]
	mov	r8d, DWORD PTR -2000280[rbp]
	lea	rcx, -2000208[rbp]
	mov	rdx, QWORD PTR -2000216[rbp]
	mov	rsi, QWORD PTR -2000224[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	sub	rsp, 8
	lea	rdi, -2000016[rbp]
	push	rdi
	mov	rdi, rax
	call	handle_expose
	add	rsp, 16
	jmp	.L35
.L37:
	mov	eax, DWORD PTR -2000152[rbp]
	mov	DWORD PTR -2000280[rbp], eax
	mov	eax, DWORD PTR -2000148[rbp]
	mov	DWORD PTR -2000276[rbp], eax
	jmp	.L35
.L41:
	mov	r9d, DWORD PTR -2000276[rbp]
	mov	r8d, DWORD PTR -2000280[rbp]
	lea	rcx, -2000208[rbp]
	mov	rdx, QWORD PTR -2000216[rbp]
	mov	rsi, QWORD PTR -2000224[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	sub	rsp, 8
	lea	rdi, -2000016[rbp]
	push	rdi
	mov	rdi, rax
	call	handle_button_down
	add	rsp, 16
	jmp	.L35
.L40:
	mov	r9d, DWORD PTR -2000276[rbp]
	mov	r8d, DWORD PTR -2000280[rbp]
	lea	rcx, -2000208[rbp]
	mov	rdx, QWORD PTR -2000216[rbp]
	mov	rsi, QWORD PTR -2000224[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	sub	rsp, 8
	lea	rdi, -2000016[rbp]
	push	rdi
	mov	rdi, rax
	call	handle_drag
	add	rsp, 16
	jmp	.L35
.L42:
	mov	DWORD PTR -2000264[rbp], 1
	jmp	.L35
.L45:
	nop
.L35:
	cmp	DWORD PTR -2000264[rbp], 0
	je	.L43
	mov	rdx, QWORD PTR -2000224[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XFreeGC@PLT
	mov	rdx, QWORD PTR -2000216[rbp]
	mov	rax, QWORD PTR -2000240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XFreeGC@PLT
	mov	rax, QWORD PTR -2000240[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"225142964.c"
	.text
	.align	2
	.global	create_simple_window
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_simple_window, %function
create_simple_window:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-24]
	mov	r3, #2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r5, [r3, #8]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	ldr	ip, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	lr, [r3, #140]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, lr, r3
	ldr	lr, [r3, #56]
	ldr	r3, [fp, #-32]
	ldr	r4, [r3, #140]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r4, r3
	ldr	r3, [r3, #52]
	str	r3, [sp, #16]
	str	lr, [sp, #12]
	str	ip, [sp, #8]
	str	r0, [sp, #4]
	str	r1, [sp]
	ldr	r3, [fp, #4]
	ldr	r2, [fp, #-44]
	mov	r1, r5
	ldr	r0, [fp, #-32]
	bl	XCreateSimpleWindow
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	XMapWindow
	ldr	r0, [fp, #-32]
	bl	XFlush
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
	.size	create_simple_window, .-create_simple_window
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_gc
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_gc, %function
create_gc:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	str	r2, [fp, #-144]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #2
	str	r3, [fp, #-124]
	mov	r3, #0
	str	r3, [fp, #-120]
	mov	r3, #1
	str	r3, [fp, #-116]
	mov	r3, #2
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-108]
	sub	r3, fp, #100
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	XCreateGC
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-136]
	bl	XSetForeground
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #56]
	mov	r2, r3
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-136]
	bl	XSetBackground
	b	.L5
.L4:
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #56]
	mov	r2, r3
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-136]
	bl	XSetForeground
	ldr	r3, [fp, #-136]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-108]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #52]
	mov	r2, r3
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-136]
	bl	XSetBackground
.L5:
	ldr	r3, [fp, #-112]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-116]
	str	r3, [sp]
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-136]
	bl	XSetLineAttributes
	mov	r2, #0
	ldr	r1, [fp, #-104]
	ldr	r0, [fp, #-136]
	bl	XSetFillStyle
	ldr	r3, [fp, #-104]
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.size	create_gc, .-create_gc
	.section	.rodata
	.align	2
.LC0:
	.short	0
	.short	0
	.short	15
	.short	15
	.short	0
	.short	15
	.short	0
	.short	0
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	handle_expose
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_expose, %function
handle_expose:
	@ args = 12, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #12]
	str	r3, [fp, #-56]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #36]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	mov	r3, #5
	str	r3, [sp]
	mov	r3, #5
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawPoint
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #8]
	sub	r3, r3, #5
	str	r3, [sp]
	mov	r3, #5
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawPoint
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #4]
	sub	r3, r3, #5
	mov	r2, r3
	mov	r3, #5
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawPoint
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #4]
	sub	r3, r3, #5
	mov	r2, r3
	ldr	r3, [fp, #8]
	sub	r3, r3, #5
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawPoint
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	mov	r3, #200
	str	r3, [sp, #8]
	mov	r3, #50
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #50
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawLine
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	mov	r3, #100
	str	r3, [sp, #8]
	mov	r3, #200
	str	r3, [sp, #4]
	mov	r3, #100
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawLine
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	mov	r3, #23040
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #30
	str	r3, [sp, #8]
	mov	r3, #30
	str	r3, [sp, #4]
	mov	r3, #85
	str	r3, [sp]
	mov	r3, #35
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawArc
	ldr	r3, .L21+4
	sub	ip, fp, #24
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	sub	r2, fp, #24
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawLines
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	mov	r3, #60
	str	r3, [sp, #8]
	mov	r3, #50
	str	r3, [sp, #4]
	mov	r3, #150
	str	r3, [sp]
	mov	r3, #120
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawRectangle
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	mov	r3, #60
	str	r3, [sp, #8]
	mov	r3, #50
	str	r3, [sp, #4]
	mov	r3, #150
	str	r3, [sp]
	mov	r3, #60
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XFillRectangle
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L13
.L18:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L14
.L17:
	ldr	r2, [fp, #-36]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #-56]
	add	r2, r3, r2
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	cmn	r3, #1
	beq	.L15
	cmp	r3, #1
	bne	.L16
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	XDrawPoint
	b	.L16
.L15:
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-32]
	str	r3, [sp]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	ldr	r0, [fp, #-40]
	bl	XDrawPoint
	nop
.L16:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L14:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #8]
	cmp	r2, r3
	bhi	.L17
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L13:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #4]
	cmp	r2, r3
	bhi	.L18
	b	.L10
.L20:
	nop
.L10:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC2
	.word	.LC0
	.size	handle_expose, .-handle_expose
	.align	2
	.global	handle_drag
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_drag, %function
handle_drag:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #48]
	cmp	r3, #256
	beq	.L24
	cmp	r3, #512
	beq	.L25
	b	.L27
.L24:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	XDrawPoint
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #12]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	b	.L26
.L25:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	XDrawPoint
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #12]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
	nop
.L26:
.L27:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	handle_drag, .-handle_drag
	.align	2
	.global	handle_button_down
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_button_down, %function
handle_button_down:
	@ args = 12, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #52]
	cmp	r3, #1
	beq	.L29
	cmp	r3, #2
	beq	.L30
	b	.L32
.L29:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	XDrawPoint
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #12]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	b	.L31
.L30:
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-8]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	XDrawPoint
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r2, r3
	ldr	r3, [fp, #12]
	add	r2, r3, r2
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
	nop
.L31:
.L32:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	handle_button_down, .-handle_button_down
	.section	.rodata
	.align	2
.LC3:
	.ascii	"DISPLAY\000"
	.align	2
.LC4:
	.ascii	"%s: cannot connect to X server '%s'\012\000"
	.align	2
.LC5:
	.ascii	"window width - '%d'; height - '%d'\012\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2000160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1998848
	sub	sp, sp, #1328
	sub	sp, sp, #4
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	str	r0, [r3, #-1308]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	str	r1, [r3, #-1312]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r4, r3
	ldr	r0, .L50+4
	bl	getenv
	str	r0, [r4, #-1284]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1296]
	b	.L34
.L37:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1292]
	b	.L35
.L36:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	sub	r2, r3, #1152
	sub	r2, r2, #4
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r1, [r3, #-1296]
	mov	r3, r1
	lsl	r3, r3, #5
	sub	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #3
	sub	r1, fp, #1998848
	sub	r1, r1, #12
	ldr	r1, [r1, #-1292]
	add	r3, r3, r1
	lsl	r3, r3, #1
	add	r3, r2, r3
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1292]
	add	r3, r3, #1
	str	r3, [r2, #-1292]
.L35:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1292]
	cmp	r3, #1000
	blt	.L36
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1296]
	add	r3, r3, #1
	str	r3, [r2, #-1296]
.L34:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1296]
	cmp	r3, #1000
	blt	.L37
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r0, [r3, #-1284]
	bl	XOpenDisplay
	str	r0, [r4, #-1280]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1280]
	cmp	r3, #0
	bne	.L38
	ldr	r3, .L50+8
	ldr	r0, [r3]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1312]
	ldr	r2, [r3]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1284]
	ldr	r1, .L50+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L38:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1280]
	ldr	r3, [r3, #132]
	str	r3, [r2, #-1276]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1280]
	ldr	r1, [r3, #140]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r2, [r3, #-1276]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #12]
	sub	r2, fp, #1998848
	sub	r2, r2, #12
	str	r3, [r2, #-1272]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1280]
	ldr	r1, [r3, #140]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r2, [r3, #-1276]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3, #16]
	sub	r2, fp, #1998848
	sub	r2, r2, #12
	str	r3, [r2, #-1268]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1272]
	ldr	r2, .L50+16
	umull	r0, r3, r2, r3
	lsr	r3, r3, #1
	str	r3, [r1, #-1304]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1268]
	ldr	r2, .L50+16
	umull	r0, r3, r2, r3
	lsr	r3, r3, #1
	str	r3, [r1, #-1300]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r2, [r2, #-1300]
	ldr	r1, [r3, #-1304]
	ldr	r0, .L50+20
	bl	printf
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r1, [r3, #-1304]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r2, [r3, #-1300]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [r0, #-1280]
	bl	create_simple_window
	str	r0, [r4, #-1264]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-1264]
	ldr	r0, [r3, #-1280]
	bl	create_gc
	str	r0, [r4, #-1260]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, #1
	ldr	r1, [r1, #-1264]
	ldr	r0, [r3, #-1280]
	bl	create_gc
	str	r0, [r4, #-1256]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r2, .L50+24
	ldr	r1, [r1, #-1264]
	ldr	r0, [r3, #-1280]
	bl	XSelectInput
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1288]
	b	.L39
.L47:
	ldr	r3, .L50+28
	sub	r2, fp, #12
	add	r3, r2, r3
	sub	r2, fp, #1998848
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-1280]
	bl	XNextEvent
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1252]
	sub	r3, r3, #2
	cmp	r3, #20
	ldrls	pc, [pc, r3, asl #2]
	b	.L49
.L42:
	.word	.L46
	.word	.L49
	.word	.L45
	.word	.L49
	.word	.L44
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L43
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L49
	.word	.L41
.L43:
	ldr	r2, .L50+28
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r0, r3
	ldr	r3, .L50+32
	sub	lr, fp, #12
	add	r3, lr, r3
	str	r3, [sp, #8]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1300]
	str	r3, [sp, #4]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1304]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [ip, #-1256]
	ldr	r1, [r1, #-1260]
	ldr	r0, [r0, #-1280]
	bl	handle_expose
	b	.L39
.L41:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1220]
	sub	r2, fp, #1998848
	sub	r2, r2, #12
	str	r3, [r2, #-1304]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1216]
	sub	r2, fp, #1998848
	sub	r2, r2, #12
	str	r3, [r2, #-1300]
	b	.L39
.L45:
	ldr	r2, .L50+28
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r0, r3
	ldr	r3, .L50+32
	sub	lr, fp, #12
	add	r3, lr, r3
	str	r3, [sp, #8]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1300]
	str	r3, [sp, #4]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1304]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [ip, #-1256]
	ldr	r1, [r1, #-1260]
	ldr	r0, [r0, #-1280]
	bl	handle_button_down
	b	.L39
.L44:
	ldr	r2, .L50+28
	sub	r3, fp, #12
	add	r2, r3, r2
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	ip, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r0, r3
	ldr	r3, .L50+32
	sub	lr, fp, #12
	add	r3, lr, r3
	str	r3, [sp, #8]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1300]
	str	r3, [sp, #4]
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1304]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [ip, #-1256]
	ldr	r1, [r1, #-1260]
	ldr	r0, [r0, #-1280]
	bl	handle_drag
	b	.L39
.L46:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-1288]
	b	.L39
.L49:
	nop
.L39:
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r3, [r3, #-1288]
	cmp	r3, #0
	beq	.L47
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r1, [r2, #-1260]
	ldr	r0, [r3, #-1280]
	bl	XFreeGC
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r1, [r2, #-1256]
	ldr	r0, [r3, #-1280]
	bl	XFreeGC
	sub	r3, fp, #1998848
	sub	r3, r3, #12
	ldr	r0, [r3, #-1280]
	bl	XCloseDisplay
	nop
	ldr	r3, .L50
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L48
	bl	__stack_chk_fail
.L48:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC6
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	-1431655765
	.word	.LC5
	.word	164613
	.word	-2000100
	.word	-2000004
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
