	.file	"100140396.c"
	.intel_syntax noprefix
	.text
	.globl	theDisp
	.bss
	.align 8
	.type	theDisp, @object
	.size	theDisp, 8
theDisp:
	.zero	8
	.globl	theScreen
	.align 4
	.type	theScreen, @object
	.size	theScreen, 4
theScreen:
	.zero	4
	.globl	dispcells
	.align 4
	.type	dispcells, @object
	.size	dispcells, 4
dispcells:
	.zero	4
	.globl	theCmap
	.align 8
	.type	theCmap, @object
	.size	theCmap, 8
theCmap:
	.zero	8
	.globl	rootW
	.align 8
	.type	rootW, @object
	.size	rootW, 8
rootW:
	.zero	8
	.globl	mainW
	.align 8
	.type	mainW, @object
	.size	mainW, 8
mainW:
	.zero	8
	.globl	theGC
	.align 8
	.type	theGC, @object
	.size	theGC, 8
theGC:
	.zero	8
	.globl	fcol
	.align 8
	.type	fcol, @object
	.size	fcol, 8
fcol:
	.zero	8
	.globl	bcol
	.align 8
	.type	bcol, @object
	.size	bcol, 8
bcol:
	.zero	8
	.globl	mfont
	.align 8
	.type	mfont, @object
	.size	mfont, 8
mfont:
	.zero	8
	.globl	mfinfo
	.align 8
	.type	mfinfo, @object
	.size	mfinfo, 8
mfinfo:
	.zero	8
	.globl	theVisual
	.align 8
	.type	theVisual, @object
	.size	theVisual, 8
theVisual:
	.zero	8
	.globl	WIDE
	.align 4
	.type	WIDE, @object
	.size	WIDE, 4
WIDE:
	.zero	4
	.globl	HIGH
	.align 4
	.type	HIGH, @object
	.size	HIGH, 4
HIGH:
	.zero	4
	.globl	cWIDE
	.align 4
	.type	cWIDE, @object
	.size	cWIDE, 4
cWIDE:
	.zero	4
	.globl	cHIGH
	.align 4
	.type	cHIGH, @object
	.size	cHIGH, 4
cHIGH:
	.zero	4
	.globl	nxcells
	.align 4
	.type	nxcells, @object
	.size	nxcells, 4
nxcells:
	.zero	4
	.globl	nycells
	.align 4
	.type	nycells, @object
	.size	nycells, 4
nycells:
	.zero	4
	.globl	pvalup
	.align 4
	.type	pvalup, @object
	.size	pvalup, 4
pvalup:
	.zero	4
	.globl	defs
	.align 32
	.type	defs, @object
	.size	defs, 4096
defs:
	.zero	4096
	.globl	cmd
	.align 8
	.type	cmd, @object
	.size	cmd, 8
cmd:
	.zero	8
	.globl	tmpstr
	.align 32
	.type	tmpstr, @object
	.size	tmpstr, 128
tmpstr:
	.zero	128
	.section	.rodata
.LC0:
	.string	"-g"
.LC1:
	.string	"-d"
.LC2:
	.string	"can't open display"
	.align 8
.LC3:
	.string	"This program can only deal with <= 8-bit displays."
.LC4:
	.string	"dispcells = %d.  %s"
.LC5:
	.string	"8x13"
.LC6:
	.string	"couldn't open '%s' font"
	.text
	.globl	main
	.type	main, @function
main:
.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, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR cmd[rip], rax
	mov	QWORD PTR -224[rbp], 0
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR -232[rbp], rax
	mov	DWORD PTR -236[rbp], 1
	jmp	.L2
.L8:
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L3
	add	DWORD PTR -236[rbp], 1
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -224[rbp], rax
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 61
	jne	.L5
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -224[rbp], rax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 2
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L6
	add	DWORD PTR -236[rbp], 1
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -232[rbp], rax
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -256[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -232[rbp], rax
	jmp	.L4
.L7:
	call	Syntax
.L4:
	add	DWORD PTR -236[rbp], 1
.L2:
	mov	eax, DWORD PTR -236[rbp]
	cmp	eax, DWORD PTR -244[rbp]
	jl	.L8
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR theDisp[rip], rax
	mov	rax, QWORD PTR theDisp[rip]
	test	rax, rax
	jne	.L9
	lea	rdi, .LC2[rip]
	call	FatalError
.L9:
	mov	rax, QWORD PTR theDisp[rip]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR theScreen[rip], eax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 80[rax]
	mov	QWORD PTR theCmap[rip], rax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR rootW[rip], rax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 72[rax]
	mov	QWORD PTR theGC[rip], rax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 88[rax]
	mov	QWORD PTR fcol[rip], rax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 96[rax]
	mov	QWORD PTR bcol[rip], rax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR theVisual[rip], rax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 64[rax]
	mov	eax, DWORD PTR 52[rax]
	mov	DWORD PTR dispcells[rip], eax
	mov	eax, DWORD PTR dispcells[rip]
	cmp	eax, 256
	jle	.L10
	mov	eax, DWORD PTR dispcells[rip]
	lea	rcx, .LC3[rip]
	mov	edx, eax
	lea	rsi, .LC4[rip]
	lea	rdi, tmpstr[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, tmpstr[rip]
	call	FatalError
	jmp	.L11
.L10:
	mov	eax, DWORD PTR dispcells[rip]
	cmp	eax, 64
	jle	.L12
	mov	DWORD PTR nycells[rip], 16
	mov	eax, DWORD PTR nycells[rip]
	mov	DWORD PTR nxcells[rip], eax
	jmp	.L11
.L12:
	mov	eax, DWORD PTR dispcells[rip]
	cmp	eax, 16
	jle	.L13
	mov	DWORD PTR nycells[rip], 8
	mov	eax, DWORD PTR nycells[rip]
	mov	DWORD PTR nxcells[rip], eax
	jmp	.L11
.L13:
	mov	eax, DWORD PTR dispcells[rip]
	cmp	eax, 4
	jle	.L14
	mov	DWORD PTR nycells[rip], 4
	mov	eax, DWORD PTR nycells[rip]
	mov	DWORD PTR nxcells[rip], eax
	jmp	.L11
.L14:
	mov	eax, DWORD PTR dispcells[rip]
	cmp	eax, 2
	jle	.L15
	mov	DWORD PTR nycells[rip], 2
	mov	eax, DWORD PTR nycells[rip]
	mov	DWORD PTR nxcells[rip], eax
	jmp	.L11
.L15:
	mov	DWORD PTR nxcells[rip], 2
	mov	DWORD PTR nycells[rip], 1
.L11:
	mov	rax, QWORD PTR theDisp[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	XLoadQueryFont@PLT
	mov	QWORD PTR mfinfo[rip], rax
	mov	rax, QWORD PTR mfinfo[rip]
	test	rax, rax
	jne	.L16
	lea	rdx, .LC5[rip]
	lea	rsi, .LC6[rip]
	lea	rdi, tmpstr[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, tmpstr[rip]
	call	FatalError
.L16:
	mov	rax, QWORD PTR mfinfo[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR mfont[rip], rax
	mov	rdx, QWORD PTR mfont[rip]
	mov	rcx, QWORD PTR theGC[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetFont@PLT
	mov	rdx, QWORD PTR fcol[rip]
	mov	rcx, QWORD PTR theGC[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetForeground@PLT
	mov	rdx, QWORD PTR bcol[rip]
	mov	rcx, QWORD PTR theGC[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetBackground@PLT
	mov	rax, QWORD PTR cmd[rip]
	mov	rcx, QWORD PTR -256[rbp]
	mov	edx, DWORD PTR -244[rbp]
	mov	rsi, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	CreateMainWindow
	mov	edx, DWORD PTR HIGH[rip]
	mov	eax, DWORD PTR WIDE[rip]
	mov	esi, edx
	mov	edi, eax
	call	Resize
	mov	rcx, QWORD PTR mainW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	edx, 163845
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rdx, QWORD PTR mainW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapWindow@PLT
.L17:
	mov	rax, QWORD PTR theDisp[rip]
	lea	rdx, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	HandleEvent
	jmp	.L17
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.type	HandleEvent, @function
HandleEvent:
.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, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	ja	.L39
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L22[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L22[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L22:
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L26-.L22
	.long	.L39-.L22
	.long	.L25-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L24-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L23-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.long	.L39-.L22
	.text
.L24:
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR mainW[rip]
	cmp	rdx, rax
	jne	.L40
	mov	rax, QWORD PTR -56[rbp]
	mov	ecx, DWORD PTR 52[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 48[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, DWORD PTR 44[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 40[rax]
	mov	edi, eax
	call	DrawWindow
	jmp	.L40
.L25:
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR mainW[rip]
	cmp	rdx, rax
	jne	.L41
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 84[rax]
	cmp	eax, 1
	jne	.L41
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR 68[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 64[rax]
	mov	esi, edx
	mov	edi, eax
	call	TrackMouse
	jmp	.L41
.L26:
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -40[rbp], rax
	lea	rcx, -32[rbp]
	lea	rdx, -72[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 128
	lea	rsi, tmpstr[rip]
	mov	rdi, rax
	call	XLookupString@PLT
	movzx	eax, BYTE PTR tmpstr[rip]
	cmp	al, 113
	je	.L30
	movzx	eax, BYTE PTR tmpstr[rip]
	cmp	al, 81
	jne	.L42
.L30:
	call	Quit
	jmp	.L42
.L23:
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 56[rax]
	mov	DWORD PTR -80[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 60[rax]
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR mainW[rip]
	cmp	rdx, rax
	jne	.L43
	mov	eax, DWORD PTR WIDE[rip]
	cmp	DWORD PTR -80[rbp], eax
	jne	.L33
	mov	eax, DWORD PTR HIGH[rip]
	cmp	DWORD PTR -76[rbp], eax
	je	.L43
.L33:
	cmp	DWORD PTR -76[rbp], 0
	je	.L34
	mov	edx, DWORD PTR -76[rbp]
	jmp	.L35
.L34:
	mov	edx, DWORD PTR HIGH[rip]
.L35:
	cmp	DWORD PTR -80[rbp], 0
	je	.L36
	mov	eax, DWORD PTR -80[rbp]
	jmp	.L37
.L36:
	mov	eax, DWORD PTR WIDE[rip]
.L37:
	mov	esi, edx
	mov	edi, eax
	call	Resize
	jmp	.L43
.L39:
	nop
	jmp	.L28
.L40:
	nop
	jmp	.L28
.L41:
	nop
	jmp	.L28
.L42:
	nop
	jmp	.L28
.L43:
	nop
.L28:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	HandleEvent, .-HandleEvent
	.section	.rodata
	.align 8
.LC7:
	.string	"Usage: %s filename [=geom | -geometry geom] [ [-display] disp]\n"
	.text
	.type	Syntax, @function
Syntax:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR cmd[rip]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	Syntax, .-Syntax
	.section	.rodata
.LC8:
	.string	"%s: %s\n"
	.text
	.type	FatalError, @function
FatalError:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR cmd[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, -1
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	FatalError, .-FatalError
	.type	Quit, @function
Quit:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	Quit, .-Quit
	.section	.rodata
.LC9:
	.string	"xcmap"
.LC10:
	.string	"Can't open main window"
	.text
	.type	CreateMainWindow, @function
CreateMainWindow:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 272
	mov	QWORD PTR -248[rbp], rdi
	mov	QWORD PTR -256[rbp], rsi
	mov	DWORD PTR -260[rbp], edx
	mov	QWORD PTR -272[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR HIGH[rip], 256
	mov	eax, DWORD PTR HIGH[rip]
	mov	DWORD PTR WIDE[rip], eax
	mov	DWORD PTR -224[rbp], 1
	mov	eax, DWORD PTR -224[rbp]
	mov	DWORD PTR -228[rbp], eax
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR -232[rbp], eax
	mov	eax, DWORD PTR -232[rbp]
	mov	DWORD PTR -236[rbp], eax
	mov	QWORD PTR -208[rbp], 0
	lea	rdi, -224[rbp]
	lea	rcx, -228[rbp]
	lea	rdx, -232[rbp]
	lea	rsi, -236[rbp]
	mov	rax, QWORD PTR -256[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	XParseGeometry@PLT
	mov	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 4
	test	eax, eax
	je	.L48
	mov	eax, DWORD PTR -228[rbp]
	mov	DWORD PTR WIDE[rip], eax
	mov	rax, QWORD PTR -208[rbp]
	or	rax, 2
	mov	QWORD PTR -208[rbp], rax
.L48:
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 8
	test	eax, eax
	je	.L49
	mov	eax, DWORD PTR -224[rbp]
	mov	DWORD PTR HIGH[rip], eax
	mov	rax, QWORD PTR -208[rbp]
	or	rax, 2
	mov	QWORD PTR -208[rbp], rax
.L49:
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L50
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 2
	test	eax, eax
	je	.L51
.L50:
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 16
	test	eax, eax
	je	.L52
	mov	edx, DWORD PTR theScreen[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	esi, edx
	mov	rdi, rax
	call	XDisplayWidth@PLT
	mov	ecx, DWORD PTR WIDE[rip]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -236[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -236[rbp], edx
.L52:
	mov	eax, DWORD PTR -220[rbp]
	and	eax, 32
	test	eax, eax
	je	.L53
	mov	edx, DWORD PTR theScreen[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	esi, edx
	mov	rdi, rax
	call	XDisplayHeight@PLT
	mov	ecx, DWORD PTR HIGH[rip]
	sub	eax, ecx
	mov	edx, eax
	mov	eax, DWORD PTR -232[rbp]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	sub	edx, eax
	mov	DWORD PTR -232[rbp], edx
.L53:
	mov	rax, QWORD PTR -208[rbp]
	or	rax, 1
	mov	QWORD PTR -208[rbp], rax
.L51:
	mov	eax, DWORD PTR -236[rbp]
	mov	DWORD PTR -200[rbp], eax
	mov	eax, DWORD PTR -232[rbp]
	mov	DWORD PTR -196[rbp], eax
	mov	eax, DWORD PTR WIDE[rip]
	mov	DWORD PTR -192[rbp], eax
	mov	eax, DWORD PTR HIGH[rip]
	mov	DWORD PTR -188[rbp], eax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR -176[rbp], eax
	mov	rax, QWORD PTR theDisp[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR theScreen[rip]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	eax, DWORD PTR 28[rax]
	mov	DWORD PTR -172[rbp], eax
	mov	DWORD PTR -184[rbp], 16
	mov	DWORD PTR -180[rbp], 16
	mov	DWORD PTR -164[rbp], 16
	mov	eax, DWORD PTR -164[rbp]
	mov	DWORD PTR -168[rbp], eax
	mov	rax, QWORD PTR -208[rbp]
	or	rax, 112
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR bcol[rip]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR fcol[rip]
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR theDisp[rip]
	mov	esi, 132
	mov	rdi, rax
	call	XCreateFontCursor@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -216[rbp], 16394
	mov	eax, DWORD PTR HIGH[rip]
	mov	r9d, eax
	mov	eax, DWORD PTR WIDE[rip]
	mov	r8d, eax
	mov	ecx, DWORD PTR -232[rbp]
	mov	edx, DWORD PTR -236[rbp]
	mov	rsi, QWORD PTR rootW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	lea	rdi, -128[rbp]
	push	rdi
	push	QWORD PTR -216[rbp]
	push	0
	push	0
	push	0
	push	2
	mov	rdi, rax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	QWORD PTR mainW[rip], rax
	mov	rsi, QWORD PTR mainW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	rcx, QWORD PTR -272[rbp]
	lea	rdx, -208[rbp]
	push	rdx
	mov	edx, DWORD PTR -260[rbp]
	push	rdx
	mov	r9, rcx
	mov	r8d, 0
	lea	rcx, .LC9[rip]
	lea	rdx, .LC9[rip]
	mov	rdi, rax
	call	XSetStandardProperties@PLT
	add	rsp, 16
	mov	rax, QWORD PTR mainW[rip]
	test	rax, rax
	jne	.L56
	lea	rdi, .LC10[rip]
	call	FatalError
.L56:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L55
	call	__stack_chk_fail@PLT
.L55:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	CreateMainWindow, .-CreateMainWindow
	.type	DrawWindow, @function
DrawWindow:
.LFB12:
	.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	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	mov	esi, DWORD PTR cWIDE[rip]
	mov	eax, DWORD PTR -36[rbp]
	cdq
	idiv	esi
	mov	DWORD PTR -16[rbp], eax
	mov	edi, DWORD PTR cHIGH[rip]
	mov	eax, DWORD PTR -40[rbp]
	cdq
	idiv	edi
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -44[rbp]
	add	edx, eax
	mov	eax, DWORD PTR cWIDE[rip]
	add	eax, edx
	sub	eax, 1
	mov	ecx, DWORD PTR cWIDE[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR -8[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -48[rbp]
	add	edx, eax
	mov	eax, DWORD PTR cHIGH[rip]
	add	eax, edx
	sub	eax, 1
	mov	esi, DWORD PTR cHIGH[rip]
	cdq
	idiv	esi
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L58
.L61:
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L59
.L60:
	mov	eax, DWORD PTR nycells[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rcx, QWORD PTR theGC[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetForeground@PLT
	mov	eax, DWORD PTR cHIGH[rip]
	mov	r8d, eax
	mov	eax, DWORD PTR cWIDE[rip]
	mov	r9d, eax
	mov	eax, DWORD PTR cHIGH[rip]
	imul	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	mov	eax, DWORD PTR cWIDE[rip]
	imul	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR theGC[rip]
	mov	rsi, QWORD PTR mainW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	sub	rsp, 8
	push	r8
	mov	r8d, edi
	mov	rdi, rax
	call	XFillRectangle@PLT
	add	rsp, 16
	add	DWORD PTR -20[rbp], 1
.L59:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L60
	add	DWORD PTR -24[rbp], 1
.L58:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L61
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	DrawWindow, .-DrawWindow
	.type	Resize, @function
Resize:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	mov	edx, DWORD PTR nxcells[rip]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	sub	eax, 1
	mov	ecx, DWORD PTR nxcells[rip]
	cdq
	idiv	ecx
	mov	DWORD PTR cWIDE[rip], eax
	mov	edx, DWORD PTR nycells[rip]
	mov	eax, DWORD PTR -8[rbp]
	add	eax, edx
	sub	eax, 1
	mov	esi, DWORD PTR nycells[rip]
	cdq
	idiv	esi
	mov	DWORD PTR cHIGH[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR WIDE[rip], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR HIGH[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	Resize, .-Resize
	.type	TrackMouse, @function
TrackMouse:
.LFB14:
	.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	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR pvalup[rip], 0
	mov	edx, DWORD PTR -56[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	DrawPixValue
.L67:
	mov	rsi, QWORD PTR mainW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	lea	r9, -40[rbp]
	lea	r8, -44[rbp]
	lea	rcx, -16[rbp]
	lea	rdx, -24[rbp]
	sub	rsp, 8
	lea	rdi, -28[rbp]
	push	rdi
	lea	rdi, -32[rbp]
	push	rdi
	lea	rdi, -36[rbp]
	push	rdi
	mov	rdi, rax
	call	XQueryPointer@PLT
	add	rsp, 32
	test	eax, eax
	je	.L67
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 256
	test	eax, eax
	je	.L70
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	DrawPixValue
	jmp	.L67
.L70:
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	TrackMouse, .-TrackMouse
	.section	.rodata
	.align 8
.LC11:
	.string	"Pix %3ld = ($%04x, $%04x, $%04x)"
	.align 8
.LC12:
	.string	"Pix %3ld is out of legal range. "
	.text
	.type	DrawPixValue, @function
DrawPixValue:
.LFB15:
	.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	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -56[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 0
	jns	.L72
	mov	DWORD PTR -52[rbp], 0
.L72:
	mov	eax, DWORD PTR WIDE[rip]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L73
	mov	eax, DWORD PTR WIDE[rip]
	sub	eax, 1
	mov	DWORD PTR -52[rbp], eax
.L73:
	cmp	DWORD PTR -56[rbp], 0
	jns	.L74
	mov	DWORD PTR -56[rbp], 0
.L74:
	mov	eax, DWORD PTR HIGH[rip]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L75
	mov	eax, DWORD PTR HIGH[rip]
	sub	eax, 1
	mov	DWORD PTR -56[rbp], eax
.L75:
	mov	eax, DWORD PTR pvalup[rip]
	test	eax, eax
	jne	.L76
	mov	eax, DWORD PTR HIGH[rip]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cmp	DWORD PTR -56[rbp], eax
	jl	.L77
	mov	DWORD PTR pvaly.2[rip], 0
	jmp	.L78
.L77:
	mov	eax, DWORD PTR HIGH[rip]
	sub	eax, 12
	mov	DWORD PTR pvaly.2[rip], eax
.L78:
	mov	DWORD PTR pvalup[rip], 1
	mov	QWORD PTR lastpix.1[rip], 65535
	mov	eax, DWORD PTR WIDE[rip]
	mov	ecx, eax
	mov	edx, DWORD PTR pvaly.2[rip]
	mov	rsi, QWORD PTR mainW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	sub	rsp, 8
	push	1
	mov	r9d, 13
	mov	r8d, ecx
	mov	ecx, edx
	mov	edx, 0
	mov	rdi, rax
	call	XClearArea@PLT
	add	rsp, 16
.L76:
	mov	edi, DWORD PTR cWIDE[rip]
	mov	eax, DWORD PTR -52[rbp]
	cdq
	idiv	edi
	mov	DWORD PTR -52[rbp], eax
	mov	ecx, DWORD PTR cHIGH[rip]
	mov	eax, DWORD PTR -56[rbp]
	cdq
	idiv	ecx
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR nxcells[rip]
	imul	eax, DWORD PTR -56[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	add	eax, edx
	cdqe
	mov	QWORD PTR pix.0[rip], rax
	mov	rdx, QWORD PTR pix.0[rip]
	mov	rax, QWORD PTR lastpix.1[rip]
	cmp	rdx, rax
	je	.L86
	mov	rdx, QWORD PTR fcol[rip]
	mov	rcx, QWORD PTR theGC[rip]
	mov	rax, QWORD PTR theDisp[rip]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetForeground@PLT
	mov	rax, QWORD PTR pix.0[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR lastpix.1[rip], rax
	mov	eax, DWORD PTR dispcells[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR pix.0[rip]
	cmp	rdx, rax
	jbe	.L80
	mov	rcx, QWORD PTR theCmap[rip]
	mov	rax, QWORD PTR theDisp[rip]
	lea	rdx, -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XQueryColor@PLT
	movzx	eax, WORD PTR -20[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -22[rbp]
	movzx	ecx, ax
	movzx	eax, WORD PTR -24[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR pix.0[rip]
	mov	r9d, esi
	mov	r8d, ecx
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC11[rip]
	lea	rdi, tmpstr[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, tmpstr[rip+4]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L81
.L83:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 512
	test	eax, eax
	je	.L82
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	toupper@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], dl
.L82:
	add	QWORD PTR -40[rbp], 1
.L81:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L83
	jmp	.L84
.L80:
	mov	rax, QWORD PTR pix.0[rip]
	mov	rdx, rax
	lea	rsi, .LC12[rip]
	lea	rdi, tmpstr[rip]
	mov	eax, 0
	call	sprintf@PLT
.L84:
	lea	rdi, tmpstr[rip]
	call	strlen@PLT
	mov	edi, eax
	mov	eax, DWORD PTR pvaly.2[rip]
	lea	ecx, 10[rax]
	mov	rdx, QWORD PTR theGC[rip]
	mov	rsi, QWORD PTR mainW[rip]
	mov	rax, QWORD PTR theDisp[rip]
	sub	rsp, 8
	push	rdi
	lea	r9, tmpstr[rip]
	mov	r8d, ecx
	mov	ecx, 5
	mov	rdi, rax
	call	XDrawImageString@PLT
	add	rsp, 16
.L86:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	DrawPixValue, .-DrawPixValue
	.local	pvaly.2
	.comm	pvaly.2,4,4
	.local	lastpix.1
	.comm	lastpix.1,8,8
	.local	pix.0
	.comm	pix.0,8,8
	.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	"100140396.c"
	.text
	.comm	theDisp,4,4
	.comm	theScreen,4,4
	.comm	dispcells,4,4
	.comm	theCmap,4,4
	.comm	rootW,4,4
	.comm	mainW,4,4
	.comm	theGC,4,4
	.comm	fcol,4,4
	.comm	bcol,4,4
	.comm	mfont,4,4
	.comm	mfinfo,4,4
	.comm	theVisual,4,4
	.comm	WIDE,4,4
	.comm	HIGH,4,4
	.comm	cWIDE,4,4
	.comm	cHIGH,4,4
	.comm	nxcells,4,4
	.comm	nycells,4,4
	.comm	pvalup,4,4
	.comm	defs,3072,4
	.comm	cmd,4,4
	.comm	tmpstr,128,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-g\000"
	.align	2
.LC1:
	.ascii	"-d\000"
	.align	2
.LC2:
	.ascii	"can't open display\000"
	.align	2
.LC3:
	.ascii	"This program can only deal with <= 8-bit displays.\000"
	.align	2
.LC4:
	.ascii	"dispcells = %d.  %s\000"
	.align	2
.LC5:
	.ascii	"8x13\000"
	.align	2
.LC6:
	.ascii	"couldn't open '%s' font\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	ldr	r2, .L19+4
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-120]
	b	.L2
.L8:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L19+8
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-112]
	b	.L4
.L3:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #61
	bne	.L5
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-112]
	b	.L4
.L5:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #2
	ldr	r1, .L19+12
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-116]
	b	.L4
.L6:
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #58
	mov	r0, r3
	bl	strchr
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-132]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-116]
	b	.L4
.L7:
	bl	Syntax
.L4:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L2:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	blt	.L8
	ldr	r0, [fp, #-116]
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L19+16
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L9
	ldr	r0, .L19+20
	bl	FatalError
.L9:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r3, [r3, #132]
	ldr	r2, .L19+24
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #48]
	ldr	r2, .L19+28
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	ldr	r2, .L19+32
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #44]
	ldr	r2, .L19+36
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #52]
	ldr	r2, .L19+40
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #56]
	ldr	r2, .L19+44
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #40]
	ldr	r2, .L19+48
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #40]
	ldr	r3, [r3, #28]
	ldr	r2, .L19+52
	str	r3, [r2]
	ldr	r3, .L19+52
	ldr	r3, [r3]
	cmp	r3, #256
	ble	.L10
	ldr	r3, .L19+52
	ldr	r2, [r3]
	ldr	r3, .L19+56
	ldr	r1, .L19+60
	ldr	r0, .L19+64
	bl	sprintf
	ldr	r0, .L19+64
	bl	FatalError
	b	.L11
.L10:
	ldr	r3, .L19+52
	ldr	r3, [r3]
	cmp	r3, #64
	ble	.L12
	ldr	r3, .L19+68
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, .L19+68
	ldr	r3, [r3]
	ldr	r2, .L19+72
	str	r3, [r2]
	b	.L11
.L12:
	ldr	r3, .L19+52
	ldr	r3, [r3]
	cmp	r3, #16
	ble	.L13
	ldr	r3, .L19+68
	mov	r2, #8
	str	r2, [r3]
	ldr	r3, .L19+68
	ldr	r3, [r3]
	ldr	r2, .L19+72
	str	r3, [r2]
	b	.L11
.L13:
	ldr	r3, .L19+52
	ldr	r3, [r3]
	cmp	r3, #4
	ble	.L14
	ldr	r3, .L19+68
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, .L19+68
	ldr	r3, [r3]
	ldr	r2, .L19+72
	str	r3, [r2]
	b	.L11
.L14:
	ldr	r3, .L19+52
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L15
	ldr	r3, .L19+68
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L19+68
	ldr	r3, [r3]
	ldr	r2, .L19+72
	str	r3, [r2]
	b	.L11
.L15:
	ldr	r3, .L19+72
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L19+68
	mov	r2, #1
	str	r2, [r3]
.L11:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r1, .L19+76
	mov	r0, r3
	bl	XLoadQueryFont
	mov	r3, r0
	ldr	r2, .L19+80
	str	r3, [r2]
	ldr	r3, .L19+80
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r2, .L19+76
	ldr	r1, .L19+84
	ldr	r0, .L19+64
	bl	sprintf
	ldr	r0, .L19+64
	bl	FatalError
.L16:
	ldr	r3, .L19+80
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L19+88
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+36
	ldr	r1, [r2]
	ldr	r2, .L19+88
	ldr	r2, [r2]
	mov	r0, r3
	bl	XSetFont
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+36
	ldr	r1, [r2]
	ldr	r2, .L19+40
	ldr	r2, [r2]
	mov	r0, r3
	bl	XSetForeground
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+36
	ldr	r1, [r2]
	ldr	r2, .L19+44
	ldr	r2, [r2]
	mov	r0, r3
	bl	XSetBackground
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-132]
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-112]
	bl	CreateMainWindow
	ldr	r3, .L19+92
	ldr	r3, [r3]
	ldr	r2, .L19+96
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	Resize
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+100
	ldr	r1, [r2]
	ldr	r2, .L19+104
	mov	r0, r3
	bl	XSelectInput
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+100
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	XMapWindow
.L17:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	sub	r2, fp, #104
	mov	r1, r2
	mov	r0, r3
	bl	XNextEvent
	sub	r3, fp, #104
	mov	r0, r3
	bl	HandleEvent
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	cmd
	.word	.LC0
	.word	.LC1
	.word	theDisp
	.word	.LC2
	.word	theScreen
	.word	theCmap
	.word	rootW
	.word	theGC
	.word	fcol
	.word	bcol
	.word	theVisual
	.word	dispcells
	.word	.LC3
	.word	.LC4
	.word	tmpstr
	.word	nycells
	.word	nxcells
	.word	.LC5
	.word	mfinfo
	.word	.LC6
	.word	mfont
	.word	WIDE
	.word	HIGH
	.word	mainW
	.word	163845
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HandleEvent, %function
HandleEvent:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	sub	r3, r3, #2
	cmp	r3, #32
	ldrls	pc, [pc, r3, asl #2]
	b	.L41
.L24:
	.word	.L28
	.word	.L41
	.word	.L27
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L26
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L25
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
	.word	.L41
.L26:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #16]
	ldr	r3, .L46+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L42
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #20]
	ldr	r3, [fp, #-28]
	ldr	r1, [r3, #24]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #32]
	bl	DrawWindow
	b	.L42
.L27:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #16]
	ldr	r3, .L46+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L43
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #52]
	cmp	r3, #1
	bne	.L43
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #36]
	mov	r1, r3
	mov	r0, r2
	bl	TrackMouse
	b	.L43
.L28:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-20]
	sub	r2, fp, #44
	sub	r3, fp, #16
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #128
	ldr	r1, .L46+8
	ldr	r0, [fp, #-20]
	bl	XLookupString
	ldr	r3, .L46+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #113
	beq	.L32
	ldr	r3, .L46+8
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #81
	bne	.L44
.L32:
	bl	Quit
	b	.L44
.L25:
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #20]
	ldr	r3, .L46+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L45
	ldr	r3, .L46+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	bne	.L35
	ldr	r3, .L46+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	beq	.L45
.L35:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-36]
	b	.L37
.L36:
	ldr	r3, .L46+12
	ldr	r3, [r3]
.L37:
	ldr	r2, [fp, #-32]
	cmp	r2, #0
	beq	.L38
	ldr	r2, [fp, #-32]
	b	.L39
.L38:
	ldr	r2, .L46+16
	ldr	r2, [r2]
.L39:
	mov	r1, r2
	mov	r0, r3
	bl	Resize
	b	.L45
.L41:
	nop
	b	.L30
.L42:
	nop
	b	.L30
.L43:
	nop
	b	.L30
.L44:
	nop
	b	.L30
.L45:
	nop
.L30:
	nop
	ldr	r3, .L46
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC8
	.word	mainW
	.word	tmpstr
	.word	WIDE
	.word	HIGH
	.size	HandleEvent, .-HandleEvent
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Usage: %s filename [=geom | -geometry geom] [ [-dis"
	.ascii	"play] disp]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Syntax, %function
Syntax:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L49
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L49+4
	bl	printf
	mov	r0, #1
	bl	exit
.L50:
	.align	2
.L49:
	.word	cmd
	.word	.LC9
	.size	Syntax, .-Syntax
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%s: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	FatalError, %function
FatalError:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L52
	ldr	r0, [r3]
	ldr	r3, .L52+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, .L52+8
	bl	fprintf
	mvn	r0, #0
	bl	exit
.L53:
	.align	2
.L52:
	.word	stderr
	.word	cmd
	.word	.LC10
	.size	FatalError, .-FatalError
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Quit, %function
Quit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	exit
	.size	Quit, .-Quit
	.section	.rodata
	.align	2
.LC11:
	.ascii	"xcmap\000"
	.align	2
.LC12:
	.ascii	"Can't open main window\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CreateMainWindow, %function
CreateMainWindow:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #212
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	str	r2, [fp, #-184]
	str	r3, [fp, #-188]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L65+4
	mov	r2, #256
	str	r2, [r3]
	ldr	r3, .L65+4
	ldr	r3, [r3]
	ldr	r2, .L65+8
	str	r3, [r2]
	mov	r3, #1
	str	r3, [fp, #-160]
	ldr	r3, [fp, #-160]
	str	r3, [fp, #-164]
	ldr	r3, [fp, #-164]
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-172]
	mov	r3, #0
	str	r3, [fp, #-88]
	sub	r0, fp, #164
	sub	r2, fp, #168
	sub	r1, fp, #172
	sub	r3, fp, #160
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-180]
	bl	XParseGeometry
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L56
	ldr	r3, [fp, #-164]
	mov	r2, r3
	ldr	r3, .L65+8
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	orr	r3, r3, #2
	str	r3, [fp, #-88]
.L56:
	ldr	r3, [fp, #-156]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L57
	ldr	r3, [fp, #-160]
	mov	r2, r3
	ldr	r3, .L65+4
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	orr	r3, r3, #2
	str	r3, [fp, #-88]
.L57:
	ldr	r3, [fp, #-156]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L58
	ldr	r3, [fp, #-156]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L59
.L58:
	ldr	r3, [fp, #-156]
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L60
	ldr	r3, .L65+12
	ldr	r3, [r3]
	ldr	r2, .L65+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	XDisplayWidth
	mov	r2, r0
	ldr	r3, .L65+8
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-172]
	cmp	r3, #0
	rsblt	r3, r3, #0
	sub	r3, r2, r3
	str	r3, [fp, #-172]
.L60:
	ldr	r3, [fp, #-156]
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L65+12
	ldr	r3, [r3]
	ldr	r2, .L65+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	XDisplayHeight
	mov	r2, r0
	ldr	r3, .L65+4
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	rsblt	r3, r3, #0
	sub	r3, r2, r3
	str	r3, [fp, #-168]
.L61:
	ldr	r3, [fp, #-88]
	orr	r3, r3, #1
	str	r3, [fp, #-88]
.L59:
	ldr	r3, [fp, #-172]
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-168]
	str	r3, [fp, #-80]
	ldr	r3, .L65+8
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	ldr	r3, .L65+4
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	ldr	r3, .L65+12
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L65+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #12]
	str	r3, [fp, #-60]
	ldr	r3, .L65+12
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L65+16
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #16]
	str	r3, [fp, #-56]
	mov	r3, #16
	str	r3, [fp, #-68]
	mov	r3, #16
	str	r3, [fp, #-64]
	mov	r3, #16
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-88]
	orr	r3, r3, #112
	str	r3, [fp, #-88]
	ldr	r3, .L65+20
	ldr	r3, [r3]
	str	r3, [fp, #-144]
	ldr	r3, .L65+24
	ldr	r3, [r3]
	str	r3, [fp, #-136]
	ldr	r3, .L65+12
	ldr	r3, [r3]
	mov	r1, #132
	mov	r0, r3
	bl	XCreateFontCursor
	mov	r3, r0
	str	r3, [fp, #-92]
	ldr	r3, .L65+28
	str	r3, [fp, #-152]
	ldr	r3, .L65+12
	ldr	r0, [r3]
	ldr	r3, .L65+32
	ldr	r1, [r3]
	ldr	r2, [fp, #-172]
	ldr	ip, [fp, #-168]
	ldr	r3, .L65+8
	ldr	r3, [r3]
	mov	lr, r3
	ldr	r3, .L65+4
	ldr	r3, [r3]
	mov	r4, r3
	sub	r3, fp, #148
	str	r3, [sp, #28]
	ldr	r3, [fp, #-152]
	str	r3, [sp, #24]
	mov	r3, #0
	str	r3, [sp, #20]
	mov	r3, #0
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #2
	str	r3, [sp, #8]
	str	r4, [sp, #4]
	str	lr, [sp]
	mov	r3, ip
	bl	XCreateWindow
	mov	r3, r0
	ldr	r2, .L65+36
	str	r3, [r2]
	ldr	r3, .L65+12
	ldr	r0, [r3]
	ldr	r3, .L65+36
	ldr	r1, [r3]
	sub	r3, fp, #88
	str	r3, [sp, #12]
	ldr	r3, [fp, #-184]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-188]
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L65+40
	ldr	r2, .L65+40
	bl	XSetStandardProperties
	ldr	r3, .L65+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L64
	ldr	r0, .L65+44
	bl	FatalError
.L64:
	nop
	ldr	r3, .L65
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L63
	bl	__stack_chk_fail
.L63:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC13
	.word	HIGH
	.word	WIDE
	.word	theDisp
	.word	theScreen
	.word	bcol
	.word	fcol
	.word	16394
	.word	rootW
	.word	mainW
	.word	.LC11
	.word	.LC12
	.size	CreateMainWindow, .-CreateMainWindow
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawWindow, %function
DrawWindow:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #60
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	str	r3, [fp, #-52]
	ldr	r3, .L72
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, .L72+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r2, r2, r3
	ldr	r3, .L72
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L72
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-52]
	add	r2, r2, r3
	ldr	r3, .L72+4
	ldr	r3, [r3]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L72+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-36]
	b	.L68
.L71:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	b	.L69
.L70:
	ldr	r3, .L72+8
	ldr	r0, [r3]
	ldr	r3, .L72+12
	ldr	r1, [r3]
	ldr	r3, .L72+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	mov	r2, r3
	bl	XSetForeground
	ldr	r3, .L72+8
	ldr	r0, [r3]
	ldr	r3, .L72+20
	ldr	r1, [r3]
	ldr	r3, .L72+12
	ldr	ip, [r3]
	ldr	r3, .L72
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	mul	lr, r2, r3
	ldr	r3, .L72+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	ldr	r2, .L72
	ldr	r2, [r2]
	mov	r4, r2
	ldr	r2, .L72+4
	ldr	r2, [r2]
	str	r2, [sp, #8]
	str	r4, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	XFillRectangle
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L69:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L70
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L68:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L71
	nop
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L73:
	.align	2
.L72:
	.word	cWIDE
	.word	cHIGH
	.word	theDisp
	.word	theGC
	.word	nycells
	.word	mainW
	.size	DrawWindow, .-DrawWindow
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Resize, %function
Resize:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L75
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L75
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L75+4
	str	r2, [r3]
	ldr	r3, .L75+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L75+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L75+12
	str	r2, [r3]
	ldr	r2, .L75+16
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L75+20
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L76:
	.align	2
.L75:
	.word	nxcells
	.word	cWIDE
	.word	nycells
	.word	cHIGH
	.word	WIDE
	.word	HIGH
	.size	Resize, .-Resize
	.section	.rodata
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	TrackMouse, %function
TrackMouse:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L85+4
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	DrawPixValue
.L81:
	ldr	r3, .L85+8
	ldr	r0, [r3]
	ldr	r3, .L85+12
	ldr	r1, [r3]
	sub	ip, fp, #32
	sub	r2, fp, #36
	sub	r3, fp, #12
	str	r3, [sp, #16]
	sub	r3, fp, #16
	str	r3, [sp, #12]
	sub	r3, fp, #20
	str	r3, [sp, #8]
	sub	r3, fp, #24
	str	r3, [sp, #4]
	sub	r3, fp, #28
	str	r3, [sp]
	mov	r3, ip
	bl	XQueryPointer
	mov	r3, r0
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-12]
	and	r3, r3, #256
	cmp	r3, #0
	beq	.L84
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	DrawPixValue
	b	.L81
.L84:
	nop
	nop
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L82
	bl	__stack_chk_fail
.L82:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC14
	.word	pvalup
	.word	theDisp
	.word	mainW
	.size	TrackMouse, .-TrackMouse
	.section	.rodata
	.align	2
.LC15:
	.ascii	"Pix %3ld = ($%04x, $%04x, $%04x)\000"
	.align	2
.LC16:
	.ascii	"Pix %3ld is out of legal range. \000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawPixValue, %function
DrawPixValue:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L103
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L88
	mov	r3, #0
	str	r3, [fp, #-48]
.L88:
	ldr	r3, .L103+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L89
	ldr	r3, .L103+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-48]
.L89:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L90
	mov	r3, #0
	str	r3, [fp, #-52]
.L90:
	ldr	r3, .L103+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	blt	.L91
	ldr	r3, .L103+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-52]
.L91:
	ldr	r3, .L103+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L92
	ldr	r3, .L103+8
	ldr	r3, [r3]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	blt	.L93
	ldr	r3, .L103+16
	mov	r2, #0
	str	r2, [r3]
	b	.L94
.L93:
	ldr	r3, .L103+8
	ldr	r3, [r3]
	sub	r3, r3, #12
	ldr	r2, .L103+16
	str	r3, [r2]
.L94:
	ldr	r3, .L103+12
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L103+20
	ldr	r2, .L103+24
	str	r2, [r3]
	ldr	r3, .L103+28
	ldr	r0, [r3]
	ldr	r3, .L103+32
	ldr	r1, [r3]
	ldr	r3, .L103+16
	ldr	r3, [r3]
	ldr	r2, .L103+4
	ldr	r2, [r2]
	mov	ip, r2
	mov	r2, #1
	str	r2, [sp, #8]
	mov	r2, #13
	str	r2, [sp, #4]
	str	ip, [sp]
	mov	r2, #0
	bl	XClearArea
.L92:
	ldr	r3, .L103+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-48]
	ldr	r3, .L103+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r3, .L103+44
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	mul	r2, r3, r2
	ldr	r3, [fp, #-48]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, .L103+48
	str	r2, [r3]
	ldr	r3, .L103+48
	ldr	r2, [r3]
	ldr	r3, .L103+20
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L102
	ldr	r3, .L103+28
	ldr	r3, [r3]
	ldr	r2, .L103+52
	ldr	r1, [r2]
	ldr	r2, .L103+56
	ldr	r2, [r2]
	mov	r0, r3
	bl	XSetForeground
	ldr	r3, .L103+48
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	ldr	r2, .L103+20
	str	r3, [r2]
	ldr	r3, .L103+48
	ldr	r3, [r3]
	ldr	r2, .L103+60
	ldr	r2, [r2]
	cmp	r3, r2
	bcs	.L96
	ldr	r3, .L103+28
	ldr	r3, [r3]
	ldr	r2, .L103+64
	ldr	r1, [r2]
	sub	r2, fp, #36
	mov	r0, r3
	bl	XQueryColor
	ldr	r3, .L103+48
	ldr	r2, [r3]
	ldrh	r3, [fp, #-32]
	mov	r0, r3
	ldrh	r3, [fp, #-30]
	ldrh	r1, [fp, #-28]
	str	r1, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	ldr	r1, .L103+68
	ldr	r0, .L103+72
	bl	sprintf
	ldr	r3, .L103+76
	str	r3, [fp, #-40]
	b	.L97
.L99:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #512
	cmp	r3, #0
	beq	.L98
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	toupper
	mov	r3, r0
	and	r2, r3, #255
	ldr	r3, [fp, #-40]
	strb	r2, [r3]
.L98:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L97:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L99
	b	.L100
.L96:
	ldr	r3, .L103+48
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L103+80
	ldr	r0, .L103+72
	bl	sprintf
.L100:
	ldr	r3, .L103+28
	ldr	r5, [r3]
	ldr	r3, .L103+32
	ldr	r6, [r3]
	ldr	r3, .L103+52
	ldr	r7, [r3]
	ldr	r3, .L103+16
	ldr	r3, [r3]
	add	r4, r3, #10
	ldr	r0, .L103+72
	bl	strlen
	mov	r3, r0
	str	r3, [sp, #8]
	ldr	r3, .L103+72
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, #5
	mov	r2, r7
	mov	r1, r6
	mov	r0, r5
	bl	XDrawImageString
.L102:
	nop
	ldr	r3, .L103
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L101
	bl	__stack_chk_fail
.L101:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC17
	.word	WIDE
	.word	HIGH
	.word	pvalup
	.word	pvaly.9546
	.word	lastpix.9545
	.word	65535
	.word	theDisp
	.word	mainW
	.word	cWIDE
	.word	cHIGH
	.word	nxcells
	.word	pix.9544
	.word	theGC
	.word	fcol
	.word	dispcells
	.word	theCmap
	.word	.LC15
	.word	tmpstr
	.word	tmpstr+4
	.word	.LC16
	.size	DrawPixValue, .-DrawPixValue
	.local	pvaly.9546
	.comm	pvaly.9546,4,4
	.local	lastpix.9545
	.comm	lastpix.9545,4,4
	.local	pix.9544
	.comm	pix.9544,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
