	.file	"647961.c"
	.intel_syntax noprefix
	.text
	.local	dpyInfo
	.comm	dpyInfo,488,32
	.section	.rodata
.LC0:
	.string	"x2x"
	.section	.data.rel.local,"aw"
	.align 8
	.type	programStr, @object
	.size	programStr, 8
programStr:
	.quad	.LC0
	.local	fromDpyName
	.comm	fromDpyName,8,8
	.local	toDpyName
	.comm	toDpyName,8,8
	.section	.rodata
	.align 8
.LC1:
	.string	"-*-times-bold-r-*-*-*-180-*-*-*-*-*-*"
	.section	.data.rel.local
	.align 8
	.type	defaultFN, @object
	.size	defaultFN, 8
defaultFN:
	.quad	.LC1
	.align 8
	.type	fontName, @object
	.size	fontName, 8
fontName:
	.quad	.LC1
	.local	label
	.comm	label,8,8
	.local	title
	.comm	title,8,8
	.section	.rodata
.LC2:
	.string	"PING"
	.section	.data.rel.local
	.align 8
	.type	pingStr, @object
	.size	pingStr, 8
pingStr:
	.quad	.LC2
	.local	geomStr
	.comm	geomStr,8,8
	.local	waitDpy
	.comm	waitDpy,4,4
	.local	doBig
	.comm	doBig,4,4
	.data
	.align 4
	.type	doMouse, @object
	.size	doMouse, 4
doMouse:
	.long	1
	.local	doEdge
	.comm	doEdge,4,4
	.align 4
	.type	doSel, @object
	.size	doSel, 4
doSel:
	.long	1
	.align 4
	.type	doAutoUp, @object
	.size	doAutoUp, 4
doAutoUp:
	.long	1
	.local	doResurface
	.comm	doResurface,4,4
	.local	shadows
	.comm	shadows,8,8
	.align 4
	.type	triggerw, @object
	.size	triggerw, 4
triggerw:
	.long	2
	.align 4
	.type	doPointerMap, @object
	.size	doPointerMap, 4
doPointerMap:
	.long	1
	.local	stickies
	.comm	stickies,8,8
	.local	doBtnBlock
	.comm	doBtnBlock,4,4
	.local	doCapsLkHack
	.comm	doCapsLkHack,4,4
	.local	doClipCheck
	.comm	doClipCheck,4,4
	.local	doDpmsMouse
	.comm	doDpmsMouse,4,4
	.local	logicalOffset
	.comm	logicalOffset,4,4
	.local	nButtons
	.comm	nButtons,4,4
	.local	buttonmap
	.comm	buttonmap,3528,32
	.local	noScale
	.comm	noScale,4,4
	.local	compRegLeft
	.comm	compRegLeft,4,4
	.local	compRegRight
	.comm	compRegRight,4,4
	.local	compRegUp
	.comm	compRegUp,4,4
	.local	compRegLow
	.comm	compRegLow,4,4
	.text
	.globl	debug_cmpreg
	.type	debug_cmpreg, @function
debug_cmpreg:
.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, 72
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L3
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	debug_cmpreg, .-debug_cmpreg
	.section	.rodata
	.align 8
.LC3:
	.string	"%s: display names are both %s\n"
	.align 8
.LC4:
	.string	"%s - error: can not open display %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR stdout[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	call	XrmInitialize@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	mov	eax, 0
	call	ParseCommandLine
	mov	rax, QWORD PTR fromDpyName[rip]
	mov	rdi, rax
	call	XDisplayName@PLT
	mov	QWORD PTR fromDpyName[rip], rax
	mov	rax, QWORD PTR toDpyName[rip]
	mov	rdi, rax
	call	XDisplayName@PLT
	mov	QWORD PTR toDpyName[rip], rax
	mov	rdx, QWORD PTR fromDpyName[rip]
	mov	rax, QWORD PTR toDpyName[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L6
	mov	rcx, QWORD PTR toDpyName[rip]
	mov	rdx, QWORD PTR programStr[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L8:
	mov	eax, DWORD PTR waitDpy[rip]
	test	eax, eax
	jne	.L7
	mov	rcx, QWORD PTR fromDpyName[rip]
	mov	rdx, QWORD PTR programStr[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L7:
	mov	edi, 10
	call	sleep@PLT
.L6:
	mov	rax, QWORD PTR fromDpyName[rip]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	XSynchronize@PLT
	mov	edi, 40
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 36[rax], -1
	mov	rdx, QWORD PTR toDpyName[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR shadows[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR shadows[rip], rax
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L9
.L11:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	mov	eax, 0
	call	OpenAndCheckDisplay
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L10
	mov	edi, 3
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L9:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR shadows[rip]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 1
	mov	rdi, rax
	call	XSynchronize@PLT
	lea	rdi, ErrorHandler[rip]
	call	XSetErrorHandler@PLT
	mov	rax, QWORD PTR shadows[rip]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	DoX2X
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L12:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L13
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC5:
	.string	"%s - error: display %s does not support the test extension\n"
	.text
	.type	OpenAndCheckDisplay, @function
OpenAndCheckDisplay:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XDisplayName@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L15
.L18:
	mov	eax, DWORD PTR waitDpy[rip]
	test	eax, eax
	jne	.L16
	mov	rdx, QWORD PTR programStr[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L17
.L16:
	mov	edi, 10
	call	sleep@PLT
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	CheckTestExtension
	test	eax, eax
	jne	.L19
	mov	rdx, QWORD PTR programStr[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	jmp	.L17
.L19:
	mov	rax, QWORD PTR -8[rbp]
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	OpenAndCheckDisplay, .-OpenAndCheckDisplay
	.section	.rodata
.LC6:
	.string	"programStr = %s\n"
.LC7:
	.string	"-from"
.LC8:
	.string	"fromDpyName = %s\n"
.LC9:
	.string	"-to"
.LC10:
	.string	"toDpyName = %s\n"
.LC11:
	.string	"-font"
.LC12:
	.string	"fontName = %s\n"
.LC13:
	.string	"-label"
.LC14:
	.string	"label = %s\n"
.LC15:
	.string	"-title"
.LC16:
	.string	"title = %s\n"
.LC17:
	.string	"-geometry"
.LC18:
	.string	"geometry = %s\n"
.LC19:
	.string	"-wait"
.LC20:
	.string	"will wait for displays"
.LC21:
	.string	"-big"
	.align 8
.LC22:
	.string	"will create big window on from display"
.LC23:
	.string	"-nomouse"
.LC24:
	.string	"will not capture mouse (eek!)"
.LC25:
	.string	"-nopointermap"
.LC26:
	.string	"will not do pointer mapping"
.LC27:
	.string	"-north"
	.align 8
.LC28:
	.string	"\"from\" is on the north side of \"to\""
.LC29:
	.string	"-south"
	.align 8
.LC30:
	.string	"\"from\" is on the south side of \"to\""
.LC31:
	.string	"-east"
	.align 8
.LC32:
	.string	"\"from\" is on the east side of \"to\""
.LC33:
	.string	"-west"
	.align 8
.LC34:
	.string	"\"from\" is on the west side of \"to\""
.LC35:
	.string	"-nosel"
	.align 8
.LC36:
	.string	"will not transmit X selections between displays"
.LC37:
	.string	"-noautoup"
	.align 8
.LC38:
	.string	"will not automatically lift keys and buttons"
.LC39:
	.string	"-buttonblock"
	.align 8
.LC40:
	.string	"mouse buttons down will block disconnects"
.LC41:
	.string	"-capslockhack"
	.align 8
.LC42:
	.string	"behavior of CapsLock will be hacked"
.LC43:
	.string	"-dpmsmouse"
.LC44:
	.string	"mouse movement wakes monitor"
.LC45:
	.string	"-offset"
.LC46:
	.string	"logicalOffset %d\n"
.LC47:
	.string	"-clipcheck"
	.align 8
.LC48:
	.string	"Clipboard type will be checked for XA_STRING"
.LC49:
	.string	"-nocapslockhack"
	.align 8
.LC50:
	.string	"behavior of CapsLock will not be hacked"
.LC51:
	.string	"-sticky"
	.align 8
.LC52:
	.string	"will press/release sticky key: %s\n"
	.align 8
.LC53:
	.string	"x2x: warning: can't translate %s\n"
.LC54:
	.string	"-buttonmap"
	.align 8
.LC55:
	.string	"x2x: warning: invalid button %d\n"
	.align 8
.LC56:
	.string	"will map button %d to keysyms '%s'\n"
	.align 8
.LC57:
	.string	"x2x: warning: too many keys mapped to button %d\n"
.LC58:
	.string	" \t\n\r"
.LC59:
	.string	"-resurface"
	.align 8
.LC60:
	.string	"will resurface the trigger window when obscured"
.LC61:
	.string	"-shadow"
.LC62:
	.string	"-triggerw"
.LC63:
	.string	"-copyright"
.LC64:
	.string	"-noscale"
.LC65:
	.string	"-completeregionleft"
.LC66:
	.string	"-completeregionright"
.LC67:
	.string	"-completeregionup"
.LC68:
	.string	"-completeregionlow"
	.text
	.type	ParseCommandLine, @function
ParseCommandLine:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR programStr[rip]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -48[rbp], 0
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, buttonmap[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -48[rbp], 1
.L21:
	cmp	DWORD PTR -48[rbp], 20
	jle	.L22
	mov	DWORD PTR -52[rbp], 1
	jmp	.L23
.L83:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L24
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L25
	mov	eax, 0
	call	Usage
.L25:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR fromDpyName[rip], rax
	mov	rax, QWORD PTR fromDpyName[rip]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L24:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L27
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L28
	mov	eax, 0
	call	Usage
.L28:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR toDpyName[rip], rax
	mov	rax, QWORD PTR toDpyName[rip]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L27:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L29
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L30
	mov	eax, 0
	call	Usage
.L30:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR fontName[rip], rax
	mov	rax, QWORD PTR fontName[rip]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L29:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L31
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L32
	mov	eax, 0
	call	Usage
.L32:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR label[rip], rax
	mov	rax, QWORD PTR label[rip]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L31:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L33
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jle	.L34
	mov	eax, 0
	call	Usage
.L34:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR title[rip], rax
	mov	rax, QWORD PTR title[rip]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L33:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L35
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L36
	mov	eax, 0
	call	Usage
.L36:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR geomStr[rip], rax
	mov	rax, QWORD PTR geomStr[rip]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L35:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L37
	mov	DWORD PTR waitDpy[rip], 1
	lea	rdi, .LC20[rip]
	call	puts@PLT
	jmp	.L26
.L37:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L38
	mov	DWORD PTR doBig[rip], 1
	lea	rdi, .LC22[rip]
	call	puts@PLT
	jmp	.L26
.L38:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L39
	mov	DWORD PTR doMouse[rip], 0
	lea	rdi, .LC24[rip]
	call	puts@PLT
	jmp	.L26
.L39:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L40
	mov	DWORD PTR doPointerMap[rip], 0
	lea	rdi, .LC26[rip]
	call	puts@PLT
	jmp	.L26
.L40:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L41
	mov	DWORD PTR doEdge[rip], 1
	lea	rdi, .LC28[rip]
	call	puts@PLT
	jmp	.L26
.L41:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L42
	mov	DWORD PTR doEdge[rip], 2
	lea	rdi, .LC30[rip]
	call	puts@PLT
	jmp	.L26
.L42:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC31[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L43
	mov	DWORD PTR doEdge[rip], 3
	lea	rdi, .LC32[rip]
	call	puts@PLT
	jmp	.L26
.L43:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC33[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L44
	mov	DWORD PTR doEdge[rip], 4
	lea	rdi, .LC34[rip]
	call	puts@PLT
	jmp	.L26
.L44:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L45
	mov	DWORD PTR doSel[rip], 0
	lea	rdi, .LC36[rip]
	call	puts@PLT
	jmp	.L26
.L45:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L46
	mov	DWORD PTR doAutoUp[rip], 0
	lea	rdi, .LC38[rip]
	call	puts@PLT
	jmp	.L26
.L46:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L47
	mov	DWORD PTR doBtnBlock[rip], 1
	lea	rdi, .LC40[rip]
	call	puts@PLT
	jmp	.L26
.L47:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L48
	mov	DWORD PTR doCapsLkHack[rip], 1
	lea	rdi, .LC42[rip]
	call	puts@PLT
	jmp	.L26
.L48:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC43[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L49
	mov	DWORD PTR doDpmsMouse[rip], 1
	lea	rdi, .LC44[rip]
	call	puts@PLT
	jmp	.L26
.L49:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC45[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L50
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L51
	mov	eax, 0
	call	Usage
.L51:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR logicalOffset[rip], eax
	mov	eax, DWORD PTR logicalOffset[rip]
	mov	esi, eax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L50:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC47[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L52
	mov	DWORD PTR doClipCheck[rip], 1
	lea	rdi, .LC48[rip]
	call	puts@PLT
	jmp	.L26
.L52:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC49[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L53
	mov	DWORD PTR doCapsLkHack[rip], 0
	lea	rdi, .LC50[rip]
	call	puts@PLT
	jmp	.L26
.L53:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC51[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L54
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L55
	mov	eax, 0
	call	Usage
.L55:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	XStringToKeysym@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L56
	mov	edi, 16
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR stickies[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR stickies[rip], rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC52[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L56:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L54:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC54[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L57
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L58
	mov	eax, 0
	call	Usage
.L58:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jle	.L59
	cmp	DWORD PTR -48[rbp], 20
	jle	.L60
.L59:
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC55[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
.L60:
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L62
	mov	eax, 0
	call	Usage
	jmp	.L26
.L62:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC56[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	mov	DWORD PTR -44[rbp], 0
	jmp	.L63
.L67:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XStringToKeysym@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L64
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC53[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L65
.L64:
	cmp	DWORD PTR -44[rbp], 18
	jle	.L66
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC57[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L65
.L66:
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	movsx	rcx, eax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rcx, 0[0+rax*8]
	lea	rdx, buttonmap[rip]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rcx+rdx], rax
.L65:
	mov	QWORD PTR -40[rbp], 0
.L63:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC58[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L67
	mov	eax, DWORD PTR -44[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -48[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, buttonmap[rip]
	mov	QWORD PTR [rdx+rax], 0
	jmp	.L26
.L57:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC59[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L68
	mov	DWORD PTR doResurface[rip], 1
	lea	rdi, .LC60[rip]
	call	puts@PLT
	jmp	.L26
.L68:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC61[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L69
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L70
	mov	eax, 0
	call	Usage
.L70:
	mov	edi, 40
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 36[rax], -1
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rdx, QWORD PTR shadows[rip]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR shadows[rip], rax
	jmp	.L26
.L69:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC62[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L71
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L72
	mov	eax, 0
	call	Usage
.L72:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR triggerw[rip], eax
	jmp	.L26
.L71:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC63[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L73
	mov	rax, QWORD PTR lawyerese[rip]
	mov	rdi, rax
	call	puts@PLT
	jmp	.L26
.L73:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC64[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L74
	mov	DWORD PTR noScale[rip], 1
	jmp	.L26
.L74:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC65[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L75
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L76
	mov	eax, 0
	call	Usage
.L76:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR compRegLeft[rip], eax
	jmp	.L26
.L75:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC66[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L77
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L78
	mov	eax, 0
	call	Usage
.L78:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR compRegRight[rip], eax
	jmp	.L26
.L77:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC67[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L79
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L80
	mov	eax, 0
	call	Usage
.L80:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR compRegUp[rip], eax
	jmp	.L26
.L79:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC68[rip]
	mov	rdi, rax
	call	strcasecmp@PLT
	test	eax, eax
	jne	.L81
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L82
	mov	eax, 0
	call	Usage
.L82:
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR compRegLow[rip], eax
	jmp	.L26
.L81:
	mov	eax, 0
	call	Usage
.L26:
	add	DWORD PTR -52[rbp], 1
.L23:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jl	.L83
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	ParseCommandLine, .-ParseCommandLine
	.section	.rodata
	.align 8
.LC69:
	.string	"Usage: x2x [-to <DISPLAY> | -from <DISPLAY>] options..."
.LC70:
	.string	"       -copyright"
.LC71:
	.string	"       -font <FONTNAME>"
.LC72:
	.string	"       -geometry <GEOMETRY>"
.LC73:
	.string	"       -wait"
.LC74:
	.string	"       -big"
.LC75:
	.string	"       -buttonblock"
.LC76:
	.string	"       -nomouse"
.LC77:
	.string	"       -nopointermap"
.LC78:
	.string	"       -north"
.LC79:
	.string	"       -south"
.LC80:
	.string	"       -east"
.LC81:
	.string	"       -west"
.LC82:
	.string	"       -nosel"
.LC83:
	.string	"       -noautoup"
.LC84:
	.string	"       -resurface"
.LC85:
	.string	"       -capslockhack"
.LC86:
	.string	"       -nocapslockhack"
.LC87:
	.string	"       -clipcheck"
.LC88:
	.string	"       -shadow <DISPLAY>"
.LC89:
	.string	"       -sticky <sticky key>"
.LC90:
	.string	"       -label <LABEL>"
.LC91:
	.string	"       -title <TITLE>"
	.align 8
.LC92:
	.string	"       -buttonmap <button#> \"<keysym> ...\""
	.text
	.type	Usage, @function
Usage:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC69[rip]
	call	puts@PLT
	lea	rdi, .LC70[rip]
	call	puts@PLT
	lea	rdi, .LC71[rip]
	call	puts@PLT
	lea	rdi, .LC72[rip]
	call	puts@PLT
	lea	rdi, .LC73[rip]
	call	puts@PLT
	lea	rdi, .LC74[rip]
	call	puts@PLT
	lea	rdi, .LC75[rip]
	call	puts@PLT
	lea	rdi, .LC76[rip]
	call	puts@PLT
	lea	rdi, .LC77[rip]
	call	puts@PLT
	lea	rdi, .LC78[rip]
	call	puts@PLT
	lea	rdi, .LC79[rip]
	call	puts@PLT
	lea	rdi, .LC80[rip]
	call	puts@PLT
	lea	rdi, .LC81[rip]
	call	puts@PLT
	lea	rdi, .LC82[rip]
	call	puts@PLT
	lea	rdi, .LC83[rip]
	call	puts@PLT
	lea	rdi, .LC84[rip]
	call	puts@PLT
	lea	rdi, .LC85[rip]
	call	puts@PLT
	lea	rdi, .LC86[rip]
	call	puts@PLT
	lea	rdi, .LC87[rip]
	call	puts@PLT
	lea	rdi, .LC88[rip]
	call	puts@PLT
	lea	rdi, .LC89[rip]
	call	puts@PLT
	lea	rdi, .LC90[rip]
	call	puts@PLT
	lea	rdi, .LC91[rip]
	call	puts@PLT
	lea	rdi, .LC92[rip]
	call	puts@PLT
	mov	edi, 4
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.size	Usage, .-Usage
	.type	CheckTestExtension, @function
CheckTestExtension:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, -12[rbp]
	lea	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	lea	rsi, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	XTestQueryExtension@PLT
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	CheckTestExtension, .-CheckTestExtension
	.section	.rodata
	.align 8
.LC93:
	.string	"x2x:ErrHandler(): Display:`%s` \t error_code:`%i` \n"
.LC94:
	.string	" %s \n"
	.text
	.type	ErrorHandler, @function
ErrorHandler:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -28[rbp], 1024
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 32[rax]
	movzx	esi, al
	mov	ecx, DWORD PTR -28[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	XGetErrorText@PLT
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 32[rax]
	movzx	ebx, al
	mov	edi, 0
	call	XDisplayName@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC93[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC94[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 1
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ErrorHandler, .-ErrorHandler
	.type	signal_handler, @function
signal_handler:
.LFB13:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR dpyInfo[rip+252]
	cmp	eax, 2
	jne	.L91
	lea	rdi, dpyInfo[rip]
	mov	eax, 0
	call	DoDisconnect
.L91:
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR dpyInfo[rip+248], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	signal_handler, .-signal_handler
	.type	DoX2X, @function
DoX2X:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -184[rbp]
	mov	QWORD PTR dpyInfo[rip], rax
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR dpyInfo[rip+128], rax
	lea	rdi, dpyInfo[rip]
	mov	eax, 0
	call	InitDpyInfo
	lea	rdi, dpyInfo[rip]
	mov	eax, 0
	call	RegisterEventHandlers
	lea	rsi, signal_handler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, signal_handler[rip]
	mov	edi, 15
	call	signal@PLT
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	XConnectionNumber@PLT
	mov	DWORD PTR -168[rbp], eax
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	XConnectionNumber@PLT
	mov	DWORD PTR -164[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	cmp	DWORD PTR -164[rbp], eax
	cmovge	eax, DWORD PTR -164[rbp]
	add	eax, 1
	mov	DWORD PTR -160[rbp], eax
	jmp	.L93
.L97:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	XPending@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	je	.L94
	mov	rax, QWORD PTR -184[rbp]
	lea	rsi, dpyInfo[rip]
	mov	rdi, rax
	mov	eax, 0
	call	ProcessEvent
	test	eax, eax
	jne	.L99
.L94:
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	XPending@PLT
	test	eax, eax
	je	.L96
	mov	rax, QWORD PTR -192[rbp]
	lea	rsi, dpyInfo[rip]
	mov	rdi, rax
	mov	eax, 0
	call	ProcessEvent
	test	eax, eax
	je	.L93
	jmp	.L95
.L96:
	cmp	DWORD PTR -156[rbp], 0
	jne	.L93
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 934 "the_stack_data/647961.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -152[rbp], edx
	mov	DWORD PTR -148[rbp], eax
	mov	eax, DWORD PTR -168[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -168[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	eax, DWORD PTR -164[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -164[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -160[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
.L93:
	mov	eax, DWORD PTR dpyInfo[rip+248]
	test	eax, eax
	je	.L97
	jmp	.L95
.L99:
	nop
.L95:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L98
	call	__stack_chk_fail@PLT
.L98:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	DoX2X, .-DoX2X
	.section	.rodata
.LC95:
	.string	"UTF8_STRING"
.LC96:
	.string	"fixed"
.LC97:
	.string	"%s %s"
.LC98:
	.string	"WM_PROTOCOLS"
.LC99:
	.string	"WM_DELETE_WINDOW"
	.align 8
.LC100:
	.string	"fromWidth/Height: %d/%d, toWidth/Height: %d/%d\n"
.LC101:
	.string	"Create window %x on todpy\n"
	.text
	.type	InitDpyInfo, @function
InitDpyInfo:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 440
	.cfi_offset 3, -24
	mov	QWORD PTR -440[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	QWORD PTR -280[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 376[rax], 0
	mov	DWORD PTR -376[rbp], 1
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 88[rax], 0
	mov	DWORD PTR -376[rbp], 1
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	XDefaultScreenOfDisplay@PLT
	mov	QWORD PTR -272[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	XBlackPixelOfScreen@PLT
	mov	QWORD PTR -264[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	XWhitePixelOfScreen@PLT
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	XHeightOfScreen@PLT
	mov	DWORD PTR -364[rbp], eax
	mov	rax, QWORD PTR -272[rbp]
	mov	rdi, rax
	call	XWidthOfScreen@PLT
	mov	DWORD PTR -360[rbp], eax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	XDefaultRootWindow@PLT
	mov	QWORD PTR -248[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	XDefaultRootWindow@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	XScreenCount@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	DWORD PTR 264[rdx], eax
	mov	rax, QWORD PTR -440[rbp]
	mov	eax, DWORD PTR 264[rax]
	mov	DWORD PTR -356[rbp], eax
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 1
	je	.L101
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 2
	jne	.L102
.L101:
	mov	edx, 1
	jmp	.L103
.L102:
	mov	edx, 0
.L103:
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 116[rax], edx
	mov	rax, QWORD PTR -440[rbp]
	mov	eax, DWORD PTR 116[rax]
	mov	DWORD PTR -352[rbp], eax
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, 0
	lea	rsi, .LC95[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -280[rbp]
	mov	edx, 0
	lea	rsi, .LC95[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 136[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 252[rax], 0
	cmp	DWORD PTR -352[rbp], 0
	je	.L104
	mov	eax, DWORD PTR -364[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	jmp	.L105
.L104:
	mov	eax, DWORD PTR -360[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
.L105:
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 124[rax], edx
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 480[rax], 0
	mov	DWORD PTR -56[rbp], 1
	call	XAllocSizeHints@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	DWORD PTR -372[rbp], 3
	mov	edx, DWORD PTR triggerw[rip]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 296[rax], edx
	cmp	DWORD PTR -352[rbp], 0
	je	.L106
	mov	eax, DWORD PTR -364[rbp]
	jmp	.L107
.L106:
	mov	eax, DWORD PTR -360[rbp]
.L107:
	mov	edx, DWORD PTR triggerw[rip]
	sub	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 300[rax], edx
	mov	eax, DWORD PTR doEdge[rip]
	test	eax, eax
	je	.L108
	mov	rsi, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	r8d, 1
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, rax
	call	XCreatePixmap@PLT
	mov	QWORD PTR -216[rbp], rax
	or	DWORD PTR -372[rbp], 16
	lea	rdi, -160[rbp]
	lea	rcx, -160[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rsi, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -288[rbp]
	sub	rsp, 8
	push	0
	mov	r9d, 0
	mov	r8, rdi
	mov	rdi, rax
	call	XCreatePixmapCursor@PLT
	add	rsp, 16
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 80[rdx], rax
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 1
	jne	.L109
	mov	DWORD PTR -368[rbp], 0
	mov	edx, DWORD PTR triggerw[rip]
	mov	eax, DWORD PTR -364[rbp]
	sub	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 288[rax], edx
	mov	edx, DWORD PTR triggerw[rip]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 292[rax], edx
	jmp	.L110
.L109:
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 2
	jne	.L111
	mov	edx, DWORD PTR triggerw[rip]
	mov	eax, DWORD PTR -364[rbp]
	sub	eax, edx
	mov	DWORD PTR -368[rbp], eax
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 288[rax], 1
	mov	eax, DWORD PTR -368[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 292[rax], edx
	jmp	.L110
.L111:
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 3
	jne	.L112
	mov	edx, DWORD PTR triggerw[rip]
	mov	eax, DWORD PTR -360[rbp]
	sub	eax, edx
	mov	DWORD PTR -368[rbp], eax
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 288[rax], 1
	mov	eax, DWORD PTR -368[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 292[rax], edx
	jmp	.L110
.L112:
	mov	DWORD PTR -368[rbp], 0
	mov	edx, DWORD PTR triggerw[rip]
	mov	eax, DWORD PTR -360[rbp]
	sub	eax, edx
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 288[rax], edx
	mov	edx, DWORD PTR triggerw[rip]
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 292[rax], edx
.L110:
	mov	rax, QWORD PTR -264[rbp]
	mov	QWORD PTR -136[rbp], rax
	cmp	DWORD PTR -352[rbp], 0
	jne	.L113
	mov	eax, DWORD PTR triggerw[rip]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -364[rbp]
	sub	eax, edx
	mov	r9d, eax
	jmp	.L114
.L113:
	mov	eax, DWORD PTR triggerw[rip]
	mov	r9d, eax
.L114:
	cmp	DWORD PTR -352[rbp], 0
	je	.L115
	mov	eax, DWORD PTR triggerw[rip]
	lea	edx, [rax+rax]
	mov	eax, DWORD PTR -360[rbp]
	sub	eax, edx
	mov	r8d, eax
	jmp	.L116
.L115:
	mov	eax, DWORD PTR triggerw[rip]
	mov	r8d, eax
.L116:
	cmp	DWORD PTR -352[rbp], 0
	je	.L117
	mov	edx, DWORD PTR -368[rbp]
	jmp	.L118
.L117:
	mov	edx, DWORD PTR triggerw[rip]
.L118:
	cmp	DWORD PTR -352[rbp], 0
	je	.L119
	mov	eax, DWORD PTR triggerw[rip]
	jmp	.L120
.L119:
	mov	eax, DWORD PTR -368[rbp]
.L120:
	mov	rsi, QWORD PTR -240[rbp]
	mov	rdi, QWORD PTR -288[rbp]
	lea	rcx, -144[rbp]
	push	rcx
	push	512
	push	0
	push	2
	push	0
	push	0
	mov	ecx, edx
	mov	edx, eax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -320[rbp], rax
	jmp	.L121
.L108:
	mov	rax, QWORD PTR -288[rbp]
	mov	esi, 50
	mov	rdi, rax
	call	XCreateFontCursor@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 80[rdx], rax
	or	DWORD PTR -372[rbp], 163840
	mov	eax, DWORD PTR doMouse[rip]
	test	eax, eax
	je	.L122
	or	DWORD PTR -372[rbp], 12
.L122:
	mov	rax, QWORD PTR label[rip]
	test	rax, rax
	jne	.L123
	mov	rax, QWORD PTR toDpyName[rip]
	mov	QWORD PTR label[rip], rax
.L123:
	mov	rdx, QWORD PTR fontName[rip]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XLoadFont@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	jne	.L124
	mov	rdx, QWORD PTR defaultFN[rip]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XLoadFont@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	jne	.L124
	mov	rax, QWORD PTR -288[rbp]
	lea	rsi, .LC96[rip]
	mov	rdi, rax
	call	XLoadFont@PLT
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	je	.L125
.L124:
	mov	rax, QWORD PTR label[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	r10d, eax
	mov	rdx, QWORD PTR label[rip]
	lea	r8, -400[rbp]
	lea	rdi, -328[rbp]
	mov	rsi, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR -288[rbp]
	lea	rcx, -160[rbp]
	push	rcx
	lea	rcx, -396[rbp]
	push	rcx
	mov	r9, r8
	mov	r8, rdi
	mov	ecx, r10d
	mov	rdi, rax
	call	XQueryTextExtents@PLT
	add	rsp, 16
	movzx	eax, WORD PTR -158[rbp]
	cwde
	movzx	edx, WORD PTR -160[rbp]
	movsx	edx, dx
	sub	eax, edx
	mov	DWORD PTR -384[rbp], eax
	mov	edx, DWORD PTR -400[rbp]
	mov	eax, DWORD PTR -396[rbp]
	add	eax, edx
	mov	DWORD PTR -380[rbp], eax
	mov	eax, DWORD PTR -400[rbp]
	mov	DWORD PTR -348[rbp], eax
	mov	rsi, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateGC@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 56[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -224[rbp], rax
	mov	rcx, QWORD PTR -256[rbp]
	mov	rdx, QWORD PTR -264[rbp]
	mov	rsi, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	r9, -1
	mov	r8d, 3
	mov	rdi, rax
	call	XSetState@PLT
	mov	rdx, QWORD PTR -304[rbp]
	mov	rcx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetFont@PLT
	mov	rax, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR -304[rbp]
	mov	QWORD PTR 88[rax], rdx
	mov	rax, QWORD PTR -440[rbp]
	mov	edx, DWORD PTR -384[rbp]
	mov	DWORD PTR 104[rax], edx
	mov	rax, QWORD PTR -440[rbp]
	mov	edx, DWORD PTR -380[rbp]
	mov	DWORD PTR 108[rax], edx
	mov	rax, QWORD PTR -440[rbp]
	mov	edx, DWORD PTR -348[rbp]
	mov	DWORD PTR 112[rax], edx
	jmp	.L126
.L125:
	mov	DWORD PTR -380[rbp], 100
	mov	eax, DWORD PTR -380[rbp]
	mov	DWORD PTR -384[rbp], eax
.L126:
	mov	DWORD PTR -428[rbp], 0
	mov	eax, DWORD PTR -428[rbp]
	mov	DWORD PTR -432[rbp], eax
	mov	eax, DWORD PTR -384[rbp]
	add	eax, 4
	mov	DWORD PTR -424[rbp], eax
	mov	eax, DWORD PTR -380[rbp]
	add	eax, 4
	mov	DWORD PTR -420[rbp], eax
	mov	rax, QWORD PTR geomStr[rip]
	lea	rdi, -420[rbp]
	lea	rcx, -424[rbp]
	lea	rdx, -428[rbp]
	lea	rsi, -432[rbp]
	mov	r8, rdi
	mov	rdi, rax
	call	XParseGeometry@PLT
	mov	DWORD PTR -344[rbp], eax
	mov	eax, DWORD PTR -344[rbp]
	and	eax, 48
	mov	DWORD PTR -340[rbp], eax
	cmp	DWORD PTR -340[rbp], 48
	je	.L127
	cmp	DWORD PTR -340[rbp], 48
	jg	.L128
	cmp	DWORD PTR -340[rbp], 16
	je	.L129
	cmp	DWORD PTR -340[rbp], 32
	je	.L130
	jmp	.L128
.L127:
	mov	DWORD PTR -376[rbp], 9
	jmp	.L131
.L129:
	mov	DWORD PTR -376[rbp], 3
	jmp	.L131
.L130:
	mov	DWORD PTR -376[rbp], 7
	jmp	.L131
.L128:
	mov	DWORD PTR -376[rbp], 1
	nop
.L131:
	mov	eax, DWORD PTR -424[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 96[rax], edx
	mov	eax, DWORD PTR -420[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 100[rax], edx
	cmp	DWORD PTR -340[rbp], 0
	je	.L132
	lea	r9, -408[rbp]
	lea	r8, -412[rbp]
	lea	rcx, -416[rbp]
	lea	rdx, -328[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -288[rbp]
	sub	rsp, 8
	lea	rdi, -396[rbp]
	push	rdi
	lea	rdi, -400[rbp]
	push	rdi
	lea	rdi, -404[rbp]
	push	rdi
	mov	rdi, rax
	call	XGetGeometry@PLT
	add	rsp, 32
	mov	eax, DWORD PTR -344[rbp]
	and	eax, 17
	cmp	eax, 17
	jne	.L133
	mov	eax, DWORD PTR -408[rbp]
	mov	edx, DWORD PTR -424[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -432[rbp]
	add	eax, ecx
	mov	DWORD PTR -432[rbp], eax
.L133:
	mov	eax, DWORD PTR -344[rbp]
	and	eax, 34
	cmp	eax, 34
	jne	.L132
	mov	eax, DWORD PTR -404[rbp]
	mov	edx, DWORD PTR -420[rbp]
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -428[rbp]
	add	eax, ecx
	mov	DWORD PTR -428[rbp], eax
.L132:
	mov	r8, QWORD PTR -256[rbp]
	mov	rdi, QWORD PTR -264[rbp]
	mov	r9d, DWORD PTR -420[rbp]
	mov	r10d, DWORD PTR -424[rbp]
	mov	ecx, DWORD PTR -428[rbp]
	mov	edx, DWORD PTR -432[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -288[rbp]
	sub	rsp, 8
	push	r8
	push	rdi
	push	0
	mov	r8d, r10d
	mov	rdi, rax
	call	XCreateSimpleWindow@PLT
	add	rsp, 32
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 24[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -320[rbp], rax
.L121:
	mov	edx, DWORD PTR -432[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	edx, DWORD PTR -428[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	DWORD PTR 12[rax], edx
	mov	eax, DWORD PTR -424[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -232[rbp]
	mov	DWORD PTR 64[rax], edx
	mov	eax, DWORD PTR -420[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -232[rbp]
	mov	DWORD PTR 68[rax], edx
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -376[rbp]
	mov	DWORD PTR 72[rax], edx
	mov	rax, QWORD PTR -232[rbp]
	mov	QWORD PTR [rax], 772
	mov	rdx, QWORD PTR -232[rbp]
	mov	rcx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetWMNormalHints@PLT
	mov	rax, QWORD PTR title[rip]
	test	rax, rax
	je	.L134
	mov	rax, QWORD PTR title[rip]
	mov	QWORD PTR -312[rbp], rax
	jmp	.L135
.L134:
	mov	rax, QWORD PTR programStr[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR toDpyName[rip]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, rbx
	add	rax, 2
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -312[rbp], rax
	mov	rcx, QWORD PTR toDpyName[rip]
	mov	rdx, QWORD PTR programStr[rip]
	mov	rax, QWORD PTR -312[rbp]
	lea	rsi, .LC97[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
.L135:
	mov	rdx, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XStoreName@PLT
	mov	rdx, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetIconName@PLT
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, 1
	lea	rsi, .LC98[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 64[rdx], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, 1
	lea	rsi, .LC99[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 72[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	lea	rdx, 72[rax]
	mov	rsi, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	ecx, 1
	mov	rdi, rax
	call	XSetWMProtocols@PLT
	mov	eax, DWORD PTR doBig[rip]
	test	eax, eax
	je	.L136
	mov	edi, DWORD PTR -364[rbp]
	mov	ecx, DWORD PTR -360[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -288[rbp]
	lea	rdx, -144[rbp]
	push	rdx
	push	512
	push	0
	push	2
	push	0
	push	0
	mov	r9d, edi
	mov	r8d, ecx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 32[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -232[rbp]
	mov	DWORD PTR 12[rax], 0
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -360[rbp]
	mov	DWORD PTR 64[rax], edx
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -364[rbp]
	mov	DWORD PTR 68[rax], edx
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -360[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR -364[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -232[rbp]
	mov	QWORD PTR [rax], 276
	mov	rdx, QWORD PTR -232[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetWMNormalHints@PLT
	mov	rdx, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XStoreName@PLT
	mov	rdx, QWORD PTR -312[rbp]
	mov	rcx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSetIconName@PLT
	jmp	.L137
.L136:
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 32[rax], 0
.L137:
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR title[rip]
	test	rax, rax
	jne	.L138
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	free@PLT
.L138:
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 4
	je	.L139
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 1
	jne	.L140
.L139:
	mov	eax, DWORD PTR -356[rbp]
	lea	edx, -1[rax]
	jmp	.L141
.L140:
	mov	edx, 0
.L141:
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 260[rax], edx
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 272[rdx], rax
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 280[rdx], rax
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -200[rbp], rax
	mov	eax, DWORD PTR -356[rbp]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -192[rbp], rax
	mov	DWORD PTR -388[rbp], 0
	jmp	.L142
.L167:
	mov	edx, DWORD PTR -388[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	XScreenOfDisplay@PLT
	mov	rdi, rax
	call	XWidthOfScreen@PLT
	mov	DWORD PTR -336[rbp], eax
	mov	eax, DWORD PTR -388[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -192[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -336[rbp]
	mov	DWORD PTR [rdx], eax
	mov	edx, DWORD PTR -388[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	XScreenOfDisplay@PLT
	mov	rdi, rax
	call	XHeightOfScreen@PLT
	mov	DWORD PTR -332[rbp], eax
	mov	eax, DWORD PTR -388[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -200[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -332[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -360[rbp]
	cdqe
	add	rax, rax
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR 272[rax]
	mov	eax, DWORD PTR -388[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	add	rax, rax
	mov	rdi, rax
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR 280[rax]
	mov	eax, DWORD PTR -388[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR [rdx], rax
	mov	esi, DWORD PTR -332[rbp]
	mov	ecx, DWORD PTR -336[rbp]
	mov	edx, DWORD PTR -364[rbp]
	mov	eax, DWORD PTR -360[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC100[rip]
	mov	eax, 0
	call	debug_cmpreg
	mov	eax, DWORD PTR compRegRight[rip]
	test	eax, eax
	jne	.L143
	mov	eax, DWORD PTR -360[rbp]
	mov	DWORD PTR compRegRight[rip], eax
.L143:
	mov	eax, DWORD PTR compRegLow[rip]
	test	eax, eax
	jne	.L144
	mov	eax, DWORD PTR -364[rbp]
	mov	DWORD PTR compRegLow[rip], eax
.L144:
	mov	eax, DWORD PTR noScale[rip]
	test	eax, eax
	je	.L145
	mov	DWORD PTR -392[rbp], 0
	jmp	.L146
.L147:
	mov	eax, DWORD PTR -332[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -392[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -392[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -392[rbp], 1
.L146:
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jl	.L147
	mov	DWORD PTR -392[rbp], 0
	jmp	.L148
.L149:
	mov	eax, DWORD PTR -336[rbp]
	lea	ecx, -1[rax]
	mov	eax, DWORD PTR -392[rbp]
	cdq
	idiv	ecx
	mov	eax, DWORD PTR -392[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -392[rbp], 1
.L148:
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -360[rbp]
	jl	.L149
	jmp	.L150
.L145:
	mov	DWORD PTR -392[rbp], 0
	jmp	.L151
.L154:
	mov	eax, DWORD PTR compRegUp[rip]
	cmp	DWORD PTR -392[rbp], eax
	jl	.L152
	mov	eax, DWORD PTR compRegLow[rip]
	cmp	DWORD PTR -392[rbp], eax
	jg	.L152
	mov	edx, DWORD PTR compRegUp[rip]
	mov	eax, DWORD PTR -392[rbp]
	sub	eax, edx
	imul	eax, DWORD PTR -332[rbp]
	mov	edx, DWORD PTR compRegLow[rip]
	mov	ecx, DWORD PTR compRegUp[rip]
	mov	ebx, edx
	sub	ebx, ecx
	cdq
	idiv	ebx
	mov	edx, eax
	jmp	.L153
.L152:
	mov	edx, 100
.L153:
	mov	eax, DWORD PTR -392[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -392[rbp], 1
.L151:
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -364[rbp]
	jl	.L154
	mov	DWORD PTR -392[rbp], 0
	jmp	.L155
.L158:
	mov	eax, DWORD PTR compRegLeft[rip]
	cmp	DWORD PTR -392[rbp], eax
	jl	.L156
	mov	eax, DWORD PTR compRegRight[rip]
	cmp	DWORD PTR -392[rbp], eax
	jg	.L156
	mov	edx, DWORD PTR compRegLeft[rip]
	mov	eax, DWORD PTR -392[rbp]
	sub	eax, edx
	imul	eax, DWORD PTR -336[rbp]
	mov	edx, DWORD PTR compRegRight[rip]
	mov	ecx, DWORD PTR compRegLeft[rip]
	mov	ebx, edx
	sub	ebx, ecx
	cdq
	idiv	ebx
	mov	edx, eax
	jmp	.L157
.L156:
	mov	edx, 100
.L157:
	mov	eax, DWORD PTR -392[rbp]
	cdqe
	lea	rcx, [rax+rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rcx
	mov	WORD PTR [rax], dx
	add	DWORD PTR -392[rbp], 1
.L155:
	mov	eax, DWORD PTR -392[rbp]
	cmp	eax, DWORD PTR -360[rbp]
	jl	.L158
.L150:
	cmp	DWORD PTR -352[rbp], 0
	je	.L159
	cmp	DWORD PTR -388[rbp], 0
	jne	.L160
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 2
	jne	.L161
.L160:
	mov	rax, QWORD PTR -168[rbp]
	mov	WORD PTR [rax], -2
.L161:
	mov	eax, DWORD PTR -388[rbp]
	add	eax, 1
	cmp	DWORD PTR -356[rbp], eax
	jg	.L162
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 1
	jne	.L163
.L162:
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	add	rax, rax
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], -1
	mov	eax, DWORD PTR -364[rbp]
	cdqe
	add	rax, rax
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -168[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], -1
	jmp	.L163
.L159:
	cmp	DWORD PTR -388[rbp], 0
	jne	.L164
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 3
	jne	.L165
.L164:
	mov	rax, QWORD PTR -176[rbp]
	mov	WORD PTR [rax], -2
.L165:
	mov	eax, DWORD PTR -388[rbp]
	add	eax, 1
	cmp	DWORD PTR -356[rbp], eax
	jg	.L166
	mov	eax, DWORD PTR doEdge[rip]
	cmp	eax, 4
	jne	.L163
.L166:
	mov	eax, DWORD PTR -360[rbp]
	cdqe
	add	rax, rax
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], -1
	mov	eax, DWORD PTR -360[rbp]
	cdqe
	add	rax, rax
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	WORD PTR [rax], -1
.L163:
	add	DWORD PTR -388[rbp], 1
.L142:
	mov	eax, DWORD PTR -388[rbp]
	cmp	eax, DWORD PTR -356[rbp]
	jl	.L167
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rsi, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -280[rbp]
	push	0
	push	0
	push	0
	push	1
	push	0
	push	0
	mov	r9d, 1
	mov	r8d, 1
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	QWORD PTR -184[rbp], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR -184[rbp]
	mov	QWORD PTR 376[rax], rdx
	mov	rax, QWORD PTR -184[rbp]
	mov	esi, eax
	lea	rdi, .LC101[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	RefreshPointerMapping
	mov	eax, DWORD PTR doSel[rip]
	test	eax, eax
	je	.L168
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 384[rax], 0
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 472[rax], 0
	mov	rax, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	QWORD PTR 304[rax], rdx
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 312[rax], 1
	mov	rcx, QWORD PTR pingStr[rip]
	mov	rax, QWORD PTR -288[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 320[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 328[rax], 0
	mov	rax, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR -320[rbp]
	mov	QWORD PTR 336[rax], rdx
	or	DWORD PTR -372[rbp], 4194304
	mov	rax, QWORD PTR -440[rbp]
	mov	rdx, QWORD PTR -288[rbp]
	mov	QWORD PTR 344[rax], rdx
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 352[rax], 1
	mov	rcx, QWORD PTR pingStr[rip]
	mov	rax, QWORD PTR -280[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	rdx, QWORD PTR -440[rbp]
	mov	QWORD PTR 360[rdx], rax
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 368[rax], 0
	mov	rcx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	edx, 4194304
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -280[rbp]
	mov	ecx, 0
	mov	esi, 1
	mov	rdi, rax
	call	XSetSelectionOwner@PLT
.L168:
	mov	eax, DWORD PTR doResurface[rip]
	test	eax, eax
	je	.L169
	or	DWORD PTR -372[rbp], 65536
.L169:
	mov	eax, DWORD PTR -372[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rax, QWORD PTR -440[rbp]
	mov	edx, DWORD PTR -372[rbp]
	mov	DWORD PTR 256[rax], edx
	mov	eax, DWORD PTR doSel[rip]
	test	eax, eax
	je	.L170
	mov	rdx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	ecx, 0
	mov	esi, 1
	mov	rdi, rax
	call	XSetSelectionOwner@PLT
.L170:
	mov	rdx, QWORD PTR -320[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapRaised@PLT
	mov	rax, QWORD PTR -440[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DrawWindowText
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -296[rbp], rax
	jmp	.L171
.L172:
	mov	rax, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 1
	mov	rdi, rax
	call	XTestGrabControl@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -296[rbp], rax
.L171:
	cmp	QWORD PTR -296[rbp], 0
	jne	.L172
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 152[rax], 0
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 160[rax], 0
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 48[rax], 0
	mov	rax, QWORD PTR -440[rbp]
	mov	DWORD PTR 248[rax], 0
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L173
	call	__stack_chk_fail@PLT
.L173:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	InitDpyInfo, .-InitDpyInfo
	.section	.rodata
.LC102:
	.string	"DMPS Wakup"
	.text
	.type	DoWakeUp, @function
DoWakeUp:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -12[rbp]
	lea	rcx, -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	DPMSQueryExtension@PLT
	test	eax, eax
	je	.L183
	lea	rdx, -15[rbp]
	lea	rcx, -14[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	DPMSInfo@PLT
	test	eax, eax
	je	.L184
	movzx	eax, BYTE PTR -15[rbp]
	test	al, al
	je	.L185
	movzx	eax, WORD PTR -14[rbp]
	movzx	eax, ax
	test	eax, eax
	je	.L186
	nop
	lea	rdi, .LC102[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	DPMSForceLevel@PLT
	jmp	.L174
.L183:
	nop
	jmp	.L174
.L184:
	nop
	jmp	.L174
.L185:
	nop
	jmp	.L174
.L186:
	nop
.L174:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L181
	call	__stack_chk_fail@PLT
.L181:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	DoWakeUp, .-DoWakeUp
	.section	.rodata
.LC103:
	.string	"  LED mask = %lx\n"
	.text
	.type	KeyboardState, @function
KeyboardState:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -144[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XGetKeyboardControl@PLT
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC103[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -152[rbp], rax
	jmp	.L188
.L194:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XGetKeyboardControl@PLT
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -64[rbp]
	cmp	rdx, rax
	je	.L196
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -64[rbp]
	xor	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L191
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 65509
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -153[rbp], al
	cmp	BYTE PTR -153[rbp], 0
	je	.L191
	movzx	esi, BYTE PTR -153[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	movzx	esi, BYTE PTR -153[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 32[rax], 1
.L191:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -64[rbp]
	xor	rax, rdx
	and	eax, 2
	test	rax, rax
	je	.L192
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 65407
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -153[rbp], al
	cmp	BYTE PTR -153[rbp], 0
	je	.L192
	movzx	esi, BYTE PTR -153[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	movzx	esi, BYTE PTR -153[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 32[rax], 1
.L192:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L190
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 32[rax], 0
	jmp	.L190
.L196:
	nop
.L190:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -152[rbp], rax
.L188:
	cmp	QWORD PTR -152[rbp], 0
	jne	.L194
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L195
	call	__stack_chk_fail@PLT
.L195:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	KeyboardState, .-KeyboardState
	.section	.rodata
.LC104:
	.string	"  LED mask = %lx(%lx)\n"
	.text
	.type	RestoreKeyboardState, @function
RestoreKeyboardState:
.LFB18:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L198
.L204:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XGetKeyboardControl@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC104[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	cmp	rdx, rax
	je	.L206
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	xor	rax, rdx
	and	eax, 1
	test	rax, rax
	je	.L201
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 65509
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -89[rbp], al
	cmp	BYTE PTR -89[rbp], 0
	je	.L201
	movzx	esi, BYTE PTR -89[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	movzx	esi, BYTE PTR -89[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 32[rax], 1
.L201:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	xor	rax, rdx
	and	eax, 2
	test	rax, rax
	je	.L202
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 65407
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -89[rbp], al
	cmp	BYTE PTR -89[rbp], 0
	je	.L202
	movzx	esi, BYTE PTR -89[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	movzx	esi, BYTE PTR -89[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 32[rax], 1
.L202:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L200
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 32[rax], 0
	jmp	.L200
.L206:
	nop
.L200:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -88[rbp], rax
.L198:
	cmp	QWORD PTR -88[rbp], 0
	jne	.L204
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L205
	call	__stack_chk_fail@PLT
.L205:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	RestoreKeyboardState, .-RestoreKeyboardState
	.type	bad_window_handler, @function
bad_window_handler:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	bad_window_handler, .-bad_window_handler
	.type	DoDPMSForceLevel, @function
DoDPMSForceLevel:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -28[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 36[rax]
	cmp	eax, -1
	jne	.L210
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -12[rbp]
	lea	rcx, -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	DPMSQueryExtension@PLT
	test	eax, eax
	je	.L211
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 36[rax], 1
	jmp	.L210
.L211:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 36[rax], 0
.L210:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 36[rax]
	test	eax, eax
	je	.L215
	movzx	edx, WORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, edx
	mov	rdi, rax
	call	DPMSForceLevel@PLT
.L215:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L214
	call	__stack_chk_fail@PLT
.L214:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	DoDPMSForceLevel, .-DoDPMSForceLevel
	.section	.rodata
.LC105:
	.string	"connecting"
	.text
	.type	DoConnect, @function
DoConnect:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 248[rax]
	test	eax, eax
	jne	.L226
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L219
.L220:
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	DoDPMSForceLevel
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
.L219:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L220
	lea	rdi, .LC105[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 252[rax], 2
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 48[rax]
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, 40[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetInputFocus@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	XSetInputFocus@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 152[rax]
	test	rax, rax
	je	.L221
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 152[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 160[rax]
	mov	DWORD PTR -52[rbp], eax
	lea	rdi, bad_window_handler[rip]
	call	XSetErrorHandler@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -52[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	XSetInputFocus@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	XSetErrorHandler@PLT
.L221:
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -48[rbp], rax
	jmp	.L222
.L223:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	DoWakeUp
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
.L222:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L223
	mov	eax, DWORD PTR doAutoUp[rip]
	test	eax, eax
	je	.L224
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	KeyboardState
.L224:
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L225
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapRaised@PLT
.L225:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	sub	rsp, 8
	push	0
	push	rdx
	push	0
	mov	r9d, 1
	mov	r8d, 1
	mov	ecx, 76
	mov	edx, 1
	mov	rdi, rax
	call	XGrabPointer@PLT
	add	rsp, 32
	mov	rsi, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9d, 0
	mov	r8d, 1
	mov	ecx, 1
	mov	edx, 1
	mov	rdi, rax
	call	XGrabKeyboard@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 256[rax]
	or	eax, 64
	movsx	rdx, eax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	jmp	.L216
.L226:
	nop
.L216:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	DoConnect, .-DoConnect
	.section	.rodata
.LC106:
	.string	"disconnecting"
	.text
	.type	DoDisconnect, @function
DoDisconnect:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	QWORD PTR -40[rbp], rax
	lea	rdi, .LC106[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 252[rax], 0
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 160[rax]
	mov	rax, QWORD PTR -72[rbp]
	lea	rcx, 152[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetInputFocus@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	esi, 1
	mov	rdi, rax
	call	XSetInputFocus@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L228
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 48[rax]
	mov	DWORD PTR -52[rbp], eax
	lea	rdi, bad_window_handler[rip]
	call	XSetErrorHandler@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -52[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	XSetInputFocus@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XSetErrorHandler@PLT
.L228:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L229
	mov	rax, QWORD PTR -72[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XUnmapWindow@PLT
.L229:
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XUngrabKeyboard@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XUngrabPointer@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 256[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	eax, DWORD PTR doSel[rip]
	test	eax, eax
	je	.L230
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -48[rbp], rax
	jne	.L231
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 304
	jmp	.L232
.L231:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 344
.L232:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L230
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, 0
	mov	esi, 1
	mov	rdi, rax
	call	XSetSelectionOwner@PLT
.L230:
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	eax, DWORD PTR doAutoUp[rip]
	test	eax, eax
	je	.L234
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	FakeThingsUp
	call	RestoreKeyboardState
.L234:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	DoDisconnect, .-DoDisconnect
	.type	RegisterEventHandlers, @function
RegisterEventHandlers:
.LFB23:
	.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 -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessMotionNotify[rip]
	mov	edx, 6
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessExpose[rip]
	mov	edx, 12
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessEnterNotify[rip]
	mov	edx, 7
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessButtonPress[rip]
	mov	edx, 4
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessButtonRelease[rip]
	mov	edx, 5
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessKeyEvent[rip]
	mov	edx, 2
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessKeyEvent[rip]
	mov	edx, 3
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessConfigureNotify[rip]
	mov	edx, 22
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessClientMessage[rip]
	mov	edx, 33
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessMapping[rip]
	mov	edx, 34
	mov	esi, 0
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	eax, DWORD PTR doResurface[rip]
	test	eax, eax
	je	.L236
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessVisibility[rip]
	mov	edx, 15
	mov	rdi, rax
	call	XSaveContext@PLT
.L236:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 128[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 376[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, ProcessMapping[rip]
	mov	edx, 34
	mov	esi, 0
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	eax, DWORD PTR doSel[rip]
	test	eax, eax
	je	.L238
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessSelectionRequest[rip]
	mov	edx, 30
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessPropertyNotify[rip]
	mov	edx, 28
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessSelectionNotify[rip]
	mov	edx, 31
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, ProcessSelectionClear[rip]
	mov	edx, 29
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, ProcessSelectionRequest[rip]
	mov	edx, 30
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, ProcessPropertyNotify[rip]
	mov	edx, 28
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, ProcessSelectionNotify[rip]
	mov	edx, 31
	mov	rdi, rax
	call	XSaveContext@PLT
	mov	rsi, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, ProcessSelectionClear[rip]
	mov	edx, 29
	mov	rdi, rax
	call	XSaveContext@PLT
.L238:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	RegisterEventHandlers, .-RegisterEventHandlers
	.section	.rodata
	.align 8
.LC107:
	.string	"no handler for window 0x%x, event type %d\n"
	.text
	.type	ProcessEvent, @function
ProcessEvent:
.LFB24:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -208[rbp]
	mov	QWORD PTR -216[rbp], rax
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	QWORD PTR -224[rbp], 0
	mov	rax, QWORD PTR -216[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	rsi, QWORD PTR 32[rax]
	lea	rcx, -224[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	XFindContext@PLT
	test	eax, eax
	je	.L240
	mov	rax, QWORD PTR -216[rbp]
	mov	edx, DWORD PTR [rax]
	lea	rcx, -224[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XFindContext@PLT
	test	eax, eax
	jne	.L241
.L240:
	mov	r8, QWORD PTR -224[rbp]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	r8
	jmp	.L243
.L241:
	mov	rax, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rdx, QWORD PTR 32[rdx]
	mov	ecx, edx
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC107[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L243:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L244
	call	__stack_chk_fail@PLT
.L244:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	ProcessEvent, .-ProcessEvent
	.section	.rodata
	.align 8
.LC108:
	.string	"sj: Call XTestFakeMotionEvent %d/%d to %d/%d\n"
	.text
	.type	ProcessMotionNotify, @function
ProcessMotionNotify:
.LFB25:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 116[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 260[rax]
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L246
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 76[rax]
	jmp	.L247
.L246:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 72[rax]
.L247:
	mov	DWORD PTR -32[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 88[rax]
	test	eax, eax
	jne	.L248
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 120[rax]
	cmp	DWORD PTR -32[rbp], eax
	jle	.L249
	mov	eax, -2
	jmp	.L250
.L249:
	mov	eax, -1
.L250:
	mov	DWORD PTR -36[rbp], eax
	jmp	.L251
.L248:
	cmp	DWORD PTR -20[rbp], 0
	je	.L252
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 280[rax]
	jmp	.L253
.L252:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 272[rax]
.L253:
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 120[rax]
	sub	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L254
	neg	DWORD PTR -28[rbp]
.L254:
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 124[rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L251
	mov	eax, 0
	jmp	.L255
.L251:
	cmp	DWORD PTR -36[rbp], 0
	jns	.L256
	mov	DWORD PTR -24[rbp], 0
	cmp	DWORD PTR -36[rbp], -1
	jne	.L257
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 264[rax]
	sub	eax, 1
	cmp	DWORD PTR -40[rbp], eax
	je	.L258
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 260[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 260[rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 260[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 296[rax]
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L259
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 280[rax]
	jmp	.L260
.L259:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 272[rax]
.L260:
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	mov	DWORD PTR -36[rbp], eax
	jmp	.L261
.L258:
	mov	eax, DWORD PTR doBtnBlock[rip]
	test	eax, eax
	je	.L262
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 7936
	test	eax, eax
	je	.L262
	mov	DWORD PTR -24[rbp], 1
	jmp	.L263
.L262:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DoDisconnect
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 292[rax]
	mov	DWORD PTR -32[rbp], eax
.L263:
	cmp	DWORD PTR -20[rbp], 0
	je	.L264
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 280[rax]
	jmp	.L265
.L264:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 272[rax]
.L265:
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 288[rax]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	mov	DWORD PTR -36[rbp], eax
	jmp	.L261
.L257:
	cmp	DWORD PTR -40[rbp], 0
	je	.L266
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 260[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	DWORD PTR 260[rax], edx
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 260[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 300[rax]
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L267
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 280[rax]
	jmp	.L268
.L267:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 272[rax]
.L268:
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	mov	DWORD PTR -36[rbp], eax
	jmp	.L261
.L266:
	mov	eax, DWORD PTR doBtnBlock[rip]
	test	eax, eax
	je	.L269
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 7936
	test	eax, eax
	je	.L269
	mov	DWORD PTR -24[rbp], 1
	jmp	.L270
.L269:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DoDisconnect
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 292[rax]
	mov	DWORD PTR -32[rbp], eax
.L270:
	cmp	DWORD PTR -20[rbp], 0
	je	.L271
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 280[rax]
	jmp	.L272
.L271:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 272[rax]
.L272:
	mov	edx, DWORD PTR -40[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR 288[rax]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	cwde
	mov	DWORD PTR -36[rbp], eax
.L261:
	cmp	DWORD PTR -24[rbp], 0
	jne	.L256
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L273
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 76[rax]
	jmp	.L274
.L273:
	mov	edx, DWORD PTR -32[rbp]
.L274:
	cmp	DWORD PTR -20[rbp], 0
	je	.L275
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 72[rax]
	jmp	.L276
.L275:
	mov	eax, DWORD PTR -32[rbp]
.L276:
	mov	rcx, QWORD PTR -64[rbp]
	mov	rsi, QWORD PTR 16[rcx]
	mov	rdi, QWORD PTR -8[rbp]
	sub	rsp, 8
	push	rdx
	push	rax
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	rdx, rsi
	mov	esi, 0
	call	XWarpPointer@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	XFlush@PLT
.L256:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	DWORD PTR 120[rax], edx
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L277
.L284:
	mov	eax, DWORD PTR doDpmsMouse[rip]
	test	eax, eax
	je	.L278
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	DoDPMSForceLevel
.L278:
	mov	ecx, DWORD PTR lc.0[rip]
	lea	eax, 1[rcx]
	mov	DWORD PTR lc.0[rip], eax
	mov	edx, ecx
	mov	eax, 3435973837
	imul	rax, rdx
	shr	rax, 32
	mov	edx, eax
	shr	edx, 3
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L279
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 280[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 76[rax]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	esi, ax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 272[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 72[rax]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	ecx, ax
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 76[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 72[rax]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC108[rip]
	mov	eax, 0
	call	debug_cmpreg
.L279:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L280
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR 280[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 76[rax]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movsx	edx, ax
	jmp	.L281
.L280:
	mov	edx, DWORD PTR -36[rbp]
.L281:
	cmp	DWORD PTR -20[rbp], 0
	je	.L282
	mov	rax, QWORD PTR -64[rbp]
	mov	rcx, QWORD PTR 272[rax]
	mov	eax, DWORD PTR -40[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 72[rax]
	cdqe
	add	rax, rax
	add	rax, rcx
	movzx	eax, WORD PTR [rax]
	cwde
	jmp	.L283
.L282:
	mov	eax, DWORD PTR -36[rbp]
.L283:
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdi, QWORD PTR 16[rcx]
	mov	esi, DWORD PTR -40[rbp]
	mov	r8d, 0
	mov	ecx, edx
	mov	edx, eax
	call	XTestFakeMotionEvent@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L277:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L284
	mov	eax, 0
.L255:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	ProcessMotionNotify, .-ProcessMotionNotify
	.type	ProcessExpose, @function
ProcessExpose:
.LFB26:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	XClearWindow@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DrawWindowText
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	ProcessExpose, .-ProcessExpose
	.type	DrawWindowText, @function
DrawWindowText:
.LFB27:
	.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	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L294
	mov	rax, QWORD PTR label[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	r9d, eax
	mov	rcx, QWORD PTR label[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 100[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR 108[rax]
	mov	eax, edx
	sub	eax, esi
	cmp	eax, -1
	jl	.L290
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 100[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR 108[rax]
	mov	eax, edx
	sub	eax, esi
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	jmp	.L291
.L290:
	mov	edx, 0
.L291:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 112[rax]
	lea	r8d, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 96[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR 104[rax]
	mov	eax, edx
	sub	eax, esi
	cmp	eax, -1
	jl	.L292
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 96[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, DWORD PTR 104[rax]
	mov	eax, edx
	sub	eax, esi
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edi, eax
	jmp	.L293
.L292:
	mov	edi, 0
.L293:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rsp, 8
	push	r9
	mov	r9, rcx
	mov	ecx, edi
	mov	rdi, rax
	call	XDrawImageString@PLT
	add	rsp, 16
	jmp	.L287
.L294:
	nop
.L287:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	DrawWindowText, .-DrawWindowText
	.section	.rodata
	.align 8
.LC109:
	.string	"ProcessEnterNotify call ProcessMotionNotify with %d %d\n"
	.text
	.type	ProcessEnterNotify, @function
ProcessEnterNotify:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	eax, DWORD PTR compRegLeft[rip]
	cmp	edx, eax
	jge	.L296
	mov	edx, DWORD PTR compRegLeft[rip]
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 72[rax], edx
.L296:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	eax, DWORD PTR compRegRight[rip]
	cmp	edx, eax
	jle	.L297
	mov	edx, DWORD PTR compRegRight[rip]
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 72[rax], edx
.L297:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 76[rax]
	mov	eax, DWORD PTR compRegUp[rip]
	cmp	edx, eax
	jge	.L298
	mov	edx, DWORD PTR compRegUp[rip]
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 76[rax], edx
.L298:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 76[rax]
	mov	eax, DWORD PTR compRegLow[rip]
	cmp	edx, eax
	jle	.L299
	mov	edx, DWORD PTR compRegLow[rip]
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 76[rax], edx
.L299:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 80[rax]
	test	eax, eax
	jne	.L300
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 252[rax]
	test	eax, eax
	jne	.L300
	mov	rax, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -136[rbp], rax
	jne	.L300
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DoConnect
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 116[rax]
	test	eax, eax
	je	.L301
	mov	rax, QWORD PTR -144[rbp]
	mov	esi, DWORD PTR 288[rax]
	mov	rax, QWORD PTR -152[rbp]
	mov	ecx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -120[rbp]
	sub	rsp, 8
	push	rsi
	push	rcx
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	esi, 0
	mov	rdi, rax
	call	XWarpPointer@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 72[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR 288[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR 120[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 120[rax]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L302
.L301:
	mov	rax, QWORD PTR -152[rbp]
	mov	esi, DWORD PTR 76[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	ecx, DWORD PTR 288[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -120[rbp]
	sub	rsp, 8
	push	rsi
	push	rcx
	push	0
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	esi, 0
	mov	rdi, rax
	call	XWarpPointer@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, DWORD PTR 288[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR 120[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 120[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	DWORD PTR -36[rbp], eax
.L302:
	mov	DWORD PTR -24[rbp], 1
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC109[rip]
	mov	eax, 0
	call	debug_cmpreg
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	ProcessMotionNotify
.L300:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L304
	call	__stack_chk_fail@PLT
.L304:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	ProcessEnterNotify, .-ProcessEnterNotify
	.section	.rodata
	.align 8
.LC110:
	.string	"awaiting button release before connecting"
	.align 8
.LC111:
	.string	"Got button %d, max is %d (%d)\n"
.LC112:
	.string	"Mapped!"
	.align 8
.LC113:
	.string	"Button %d is mapped, sending keys: "
.LC114:
	.string	" (0x%04X)"
.LC115:
	.string	" (no code)"
	.align 8
.LC116:
	.string	"from button %d down, to button %d down\n"
.LC117:
	.string	"unknown button %d\n"
	.align 8
.LC118:
	.string	"awaiting button release before disconnecting"
	.text
	.type	ProcessButtonPress, @function
ProcessButtonPress:
.LFB29:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 252[rax]
	test	eax, eax
	je	.L306
	cmp	eax, 2
	je	.L307
	jmp	.L309
.L306:
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 252[rax], 1
	lea	rdi, .LC110[rip]
	call	puts@PLT
	jmp	.L309
.L307:
	mov	edx, DWORD PTR nButtons[rip]
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	ecx, edx
	mov	edx, 20
	mov	esi, eax
	lea	rdi, .LC111[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	cmp	eax, 20
	ja	.L310
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	edx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, buttonmap[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L310
	lea	rdi, .LC112[rip]
	call	puts@PLT
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L311
.L316:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	esi, eax
	lea	rdi, .LC113[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L312
.L315:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -29[rbp], al
	cmp	BYTE PTR -29[rbp], 0
	je	.L313
	movzx	esi, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	movzx	esi, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	movzx	eax, BYTE PTR -29[rbp]
	mov	esi, eax
	lea	rdi, .LC114[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L314
.L313:
	lea	rdi, .LC115[rip]
	mov	eax, 0
	call	printf@PLT
.L314:
	add	DWORD PTR -24[rbp], 1
.L312:
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 84[rax]
	mov	eax, DWORD PTR -24[rbp]
	movsx	rcx, eax
	mov	edx, edx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rcx
	lea	rdx, 0[0+rax*8]
	lea	rax, buttonmap[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L315
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L311:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L316
	jmp	.L317
.L310:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	edx, DWORD PTR nButtons[rip]
	cmp	eax, edx
	ja	.L317
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 84[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, edx
	add	rdx, 40
	mov	eax, DWORD PTR 4[rax+rdx*4]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L318
.L319:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, DWORD PTR -20[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeButtonEvent@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC116[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L318:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L319
	mov	eax, DWORD PTR doAutoUp[rip]
	test	eax, eax
	je	.L317
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, 1
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	FakeAction
.L317:
	mov	eax, DWORD PTR doEdge[rip]
	test	eax, eax
	jne	.L331
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 7936
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	cmp	eax, 5
	ja	.L321
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L323[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L323[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L323:
	.long	.L321-.L323
	.long	.L327-.L323
	.long	.L326-.L323
	.long	.L325-.L323
	.long	.L324-.L323
	.long	.L322-.L323
	.text
.L327:
	and	DWORD PTR -28[rbp], -257
	jmp	.L328
.L326:
	and	DWORD PTR -28[rbp], -513
	jmp	.L328
.L325:
	and	DWORD PTR -28[rbp], -1025
	jmp	.L328
.L324:
	and	DWORD PTR -28[rbp], -2049
	jmp	.L328
.L322:
	and	DWORD PTR -28[rbp], -4097
	jmp	.L328
.L321:
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	esi, eax
	lea	rdi, .LC117[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L328:
	cmp	DWORD PTR -28[rbp], 0
	je	.L332
	lea	rdi, .LC118[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR 252[rax], 3
	jmp	.L332
.L331:
	nop
	jmp	.L309
.L332:
	nop
.L309:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	ProcessButtonPress, .-ProcessButtonPress
	.section	.rodata
	.align 8
.LC119:
	.string	"from button %d up, to button %d up\n"
	.text
	.type	ProcessButtonRelease, @function
ProcessButtonRelease:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	QWORD PTR -152[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 252[rax]
	cmp	eax, 2
	je	.L334
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 252[rax]
	cmp	eax, 3
	jne	.L335
.L334:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	edx, DWORD PTR nButtons[rip]
	cmp	eax, edx
	ja	.L335
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	edx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, buttonmap[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L335
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 84[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, edx
	add	rdx, 40
	mov	eax, DWORD PTR 4[rax+rdx*4]
	mov	DWORD PTR -124[rbp], eax
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -120[rbp], rax
	jmp	.L336
.L337:
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, DWORD PTR -124[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeButtonEvent@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	edx, DWORD PTR -124[rbp]
	mov	esi, eax
	lea	rdi, .LC119[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -120[rbp], rax
.L336:
	cmp	QWORD PTR -120[rbp], 0
	jne	.L337
	mov	eax, DWORD PTR doAutoUp[rip]
	test	eax, eax
	je	.L335
	mov	edx, DWORD PTR -124[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	ecx, 0
	mov	esi, 1
	mov	rdi, rax
	mov	eax, 0
	call	FakeAction
.L335:
	mov	eax, DWORD PTR doEdge[rip]
	test	eax, eax
	je	.L338
	mov	eax, 0
	jmp	.L353
.L338:
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 252[rax]
	cmp	eax, 1
	je	.L340
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 252[rax]
	cmp	eax, 3
	jne	.L341
.L340:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 7936
	mov	DWORD PTR -128[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 84[rax]
	cmp	eax, 5
	ja	.L342
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L344[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L344[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L344:
	.long	.L342-.L344
	.long	.L348-.L344
	.long	.L347-.L344
	.long	.L346-.L344
	.long	.L345-.L344
	.long	.L343-.L344
	.text
.L348:
	and	DWORD PTR -128[rbp], -257
	jmp	.L349
.L347:
	and	DWORD PTR -128[rbp], -513
	jmp	.L349
.L346:
	and	DWORD PTR -128[rbp], -1025
	jmp	.L349
.L345:
	and	DWORD PTR -128[rbp], -2049
	jmp	.L349
.L343:
	and	DWORD PTR -128[rbp], -4097
	jmp	.L349
.L342:
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 84[rax]
	mov	esi, eax
	lea	rdi, .LC117[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L349:
	cmp	DWORD PTR -128[rbp], 0
	jne	.L341
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 252[rax]
	cmp	eax, 1
	jne	.L350
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DoConnect
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 116[rax]
	test	eax, eax
	je	.L351
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 72[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 76[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR 120[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 120[rax]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L352
.L351:
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR 72[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR 120[rax], edx
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 120[rax]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR 76[rax]
	mov	DWORD PTR -36[rbp], eax
.L352:
	mov	DWORD PTR -24[rbp], 1
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rax
	mov	edi, 0
	mov	eax, 0
	call	ProcessMotionNotify
	jmp	.L341
.L350:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	DoDisconnect
.L341:
	mov	eax, 0
.L353:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L354
	call	__stack_chk_fail@PLT
.L354:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	ProcessButtonRelease, .-ProcessButtonRelease
	.section	.rodata
.LC120:
	.string	"pressed"
.LC121:
	.string	"released"
.LC122:
	.string	"key '%s' %s (state=0x%x)\n"
.LC123:
	.string	"DoFakeShift %d\n"
	.text
	.type	ProcessKeyEvent, @function
ProcessKeyEvent:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 80
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	DWORD PTR -52[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 84[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XkbKeycodeToKeysym@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	sete	al
	movzx	eax, al
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	r12d, DWORD PTR 80[rax]
	cmp	DWORD PTR -48[rbp], 0
	je	.L356
	lea	rbx, .LC120[rip]
	jmp	.L357
.L356:
	lea	rbx, .LC121[rip]
.L357:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XKeysymToString@PLT
	mov	ecx, r12d
	mov	rdx, rbx
	mov	rsi, rax
	lea	rdi, .LC122[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR doCapsLkHack[rip]
	test	eax, eax
	je	.L358
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 2
	test	eax, eax
	je	.L358
	cmp	QWORD PTR -24[rbp], 65505
	je	.L359
	cmp	QWORD PTR -24[rbp], 65506
	jne	.L360
.L359:
	mov	eax, 0
	jmp	.L361
.L360:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 1
	mov	DWORD PTR -52[rbp], eax
	cmp	QWORD PTR -24[rbp], 64
	jbe	.L362
	cmp	QWORD PTR -24[rbp], 90
	jbe	.L363
.L362:
	cmp	QWORD PTR -24[rbp], 96
	jbe	.L364
	cmp	QWORD PTR -24[rbp], 122
	ja	.L364
.L363:
	cmp	DWORD PTR -52[rbp], 0
	sete	al
	movzx	eax, al
	mov	DWORD PTR -52[rbp], eax
.L364:
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC123[rip]
	mov	eax, 0
	call	printf@PLT
.L358:
	mov	rax, QWORD PTR stickies[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L365
.L368:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -24[rbp], rax
	je	.L383
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
.L365:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L368
	jmp	.L367
.L383:
	nop
.L367:
	cmp	QWORD PTR -32[rbp], 0
	je	.L369
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L370
.L374:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 65505
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -54[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -53[rbp], al
	cmp	BYTE PTR -53[rbp], 0
	je	.L371
	cmp	DWORD PTR -52[rbp], 0
	je	.L372
	movzx	esi, BYTE PTR -54[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
.L372:
	movzx	esi, BYTE PTR -53[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	movzx	esi, BYTE PTR -53[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	cmp	DWORD PTR -52[rbp], 0
	je	.L373
	movzx	esi, BYTE PTR -54[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
.L373:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 32[rax], 0
.L371:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
.L370:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L374
	jmp	.L375
.L369:
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 2
	test	eax, eax
	je	.L376
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 80[rax]
	and	eax, 1
	test	eax, eax
	je	.L376
	mov	eax, 1
	jmp	.L377
.L376:
	mov	eax, 0
.L377:
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L378
.L382:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, 65505
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -54[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -53[rbp], al
	cmp	BYTE PTR -53[rbp], 0
	je	.L379
	cmp	DWORD PTR -44[rbp], 0
	je	.L380
	cmp	BYTE PTR -54[rbp], 0
	je	.L380
	movzx	esi, BYTE PTR -54[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
.L380:
	movzx	esi, BYTE PTR -53[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -48[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	cmp	DWORD PTR -44[rbp], 0
	je	.L381
	cmp	BYTE PTR -54[rbp], 0
	je	.L381
	movzx	esi, BYTE PTR -54[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
.L381:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR 32[rax], 0
.L379:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -40[rbp], rax
.L378:
	cmp	QWORD PTR -40[rbp], 0
	jne	.L382
	mov	eax, DWORD PTR doAutoUp[rip]
	test	eax, eax
	je	.L375
	mov	ecx, DWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	FakeAction
.L375:
	mov	eax, 0
.L361:
	add	rsp, 80
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	ProcessKeyEvent, .-ProcessKeyEvent
	.type	ProcessConfigureNotify, @function
ProcessConfigureNotify:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 88[rax]
	test	rax, rax
	je	.L385
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 56[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 96[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 60[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 100[rax], edx
.L385:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	ProcessConfigureNotify, .-ProcessConfigureNotify
	.type	ProcessClientMessage, @function
ProcessClientMessage:
.LFB33:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	rdx, rax
	jne	.L388
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 72[rax]
	cmp	rdx, rax
	jne	.L388
	mov	eax, 1
	jmp	.L390
.L388:
	mov	eax, 0
.L390:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	ProcessClientMessage, .-ProcessClientMessage
	.section	.rodata
.LC124:
	.string	"selection request"
	.text
	.type	ProcessSelectionRequest, @function
ProcessSelectionRequest:
.LFB34:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -56[rbp], rax
	jne	.L392
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 304
	jmp	.L393
.L392:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 344
.L393:
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -56[rbp], rax
	jne	.L394
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L395
.L394:
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -40[rbp], rax
.L395:
	lea	rdi, .LC124[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L396
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 48[rax]
	cmp	rax, 1
	jne	.L396
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 56[rax]
	cmp	rax, 68
	jbe	.L397
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 56[rax]
	cmp	QWORD PTR -40[rbp], rax
	je	.L397
.L396:
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR 64[rax], 0
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	SendSelectionNotify
	jmp	.L398
.L397:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L399
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 304
	jmp	.L400
.L399:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 344
.L400:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	mov	eax, 0
	call	SendPing
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 384[rax]
	test	rax, rax
	je	.L401
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR 456[rax], 0
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 392
	mov	rdi, rax
	mov	eax, 0
	call	SendSelectionNotify
.L401:
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 384[rax], rdx
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR [rdx]
	mov	rbx, QWORD PTR 8[rdx]
	mov	QWORD PTR 392[rax], rcx
	mov	QWORD PTR 400[rax], rbx
	mov	rcx, QWORD PTR 16[rdx]
	mov	rbx, QWORD PTR 24[rdx]
	mov	QWORD PTR 408[rax], rcx
	mov	QWORD PTR 416[rax], rbx
	mov	rcx, QWORD PTR 32[rdx]
	mov	rbx, QWORD PTR 40[rdx]
	mov	QWORD PTR 424[rax], rcx
	mov	QWORD PTR 432[rax], rbx
	mov	rcx, QWORD PTR 48[rdx]
	mov	rbx, QWORD PTR 56[rdx]
	mov	QWORD PTR 440[rax], rcx
	mov	QWORD PTR 448[rax], rbx
	mov	rcx, QWORD PTR 64[rdx]
	mov	rbx, QWORD PTR 72[rdx]
	mov	QWORD PTR 456[rax], rcx
	mov	QWORD PTR 464[rax], rbx
.L398:
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	ProcessSelectionRequest, .-ProcessSelectionRequest
	.type	SendPing, @function
SendPing:
.LFB35:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	jne	.L405
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	push	0
	push	0
	mov	r9d, 2
	mov	r8d, 8
	mov	ecx, 1
	mov	rdi, rax
	call	XChangeProperty@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 24[rax], 1
.L405:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	SendPing, .-SendPing
	.section	.rodata
.LC125:
	.string	"property notify"
	.text
	.type	ProcessPropertyNotify, @function
ProcessPropertyNotify:
.LFB36:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L407
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 304
	jmp	.L408
.L407:
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 344
.L408:
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC125[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	rdx, rax
	jne	.L409
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	cmp	eax, 2
	jne	.L410
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	XSetSelectionOwner@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	jmp	.L409
.L410:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 384[rax]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L409
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 472[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 48[rax]
	cmp	rdx, rax
	jne	.L411
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	SendPing
	jmp	.L409
.L411:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 448[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L412
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 136[rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L412
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L413
.L412:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 128[rax]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L413
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L413
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -16[rbp], rax
.L413:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR 472[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR 440[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9, rdi
	mov	r8, rcx
	mov	ecx, 1
	mov	rdi, rax
	call	XConvertSelection@PLT
.L409:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	ProcessPropertyNotify, .-ProcessPropertyNotify
	.section	.rodata
.LC126:
	.string	"selection notify"
	.text
	.type	ProcessSelectionNotify, @function
ProcessSelectionNotify:
.LFB37:
	.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 -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC126[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -72[rbp], rax
	jne	.L416
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L417
.L416:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -24[rbp], rax
.L417:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 384[rax]
	cmp	QWORD PTR -72[rbp], rax
	jne	.L418
	mov	rax, QWORD PTR -80[rbp]
	mov	rdx, QWORD PTR 472[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 64[rax]
	cmp	rdx, rax
	jne	.L418
	mov	DWORD PTR -60[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -32[rbp]
	push	rdx
	lea	rdx, -40[rbp]
	push	rdx
	lea	rdx, -48[rbp]
	push	rdx
	lea	rdx, -64[rbp]
	push	rdx
	lea	rdx, -56[rbp]
	push	rdx
	push	0
	mov	r9d, 1
	mov	r8d, 1024
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XGetWindowProperty@PLT
	add	rsp, 48
	test	eax, eax
	jne	.L419
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	je	.L419
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	je	.L419
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	je	.L419
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L419
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, 68
	jbe	.L420
	mov	rax, QWORD PTR -56[rbp]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L419
.L420:
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jne	.L421
	mov	DWORD PTR -60[rbp], 1
	jmp	.L419
.L421:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1025
	mov	rcx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, -32[rbp]
	push	rdx
	lea	rdx, -40[rbp]
	push	rdx
	lea	rdx, -48[rbp]
	push	rdx
	lea	rdx, -64[rbp]
	push	rdx
	lea	rdx, -56[rbp]
	push	rdx
	push	0
	mov	r9d, 1
	mov	r8, rcx
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XGetWindowProperty@PLT
	add	rsp, 48
	test	eax, eax
	jne	.L422
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	je	.L422
	mov	eax, DWORD PTR -64[rbp]
	test	eax, eax
	je	.L422
	mov	rax, QWORD PTR -48[rbp]
	test	rax, rax
	je	.L422
	mov	rax, QWORD PTR -40[rbp]
	test	rax, rax
	jne	.L422
	mov	rax, QWORD PTR -32[rbp]
	test	rax, rax
	je	.L422
	mov	eax, 1
	jmp	.L423
.L422:
	mov	eax, 0
.L423:
	mov	DWORD PTR -60[rbp], eax
.L419:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 392
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -60[rbp], 0
	je	.L424
	mov	rax, QWORD PTR -56[rbp]
	cmp	QWORD PTR -24[rbp], rax
	jne	.L425
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -72[rbp], rax
	jne	.L426
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 136[rax]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L425
.L426:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -56[rbp], rax
.L425:
	mov	rax, QWORD PTR -48[rbp]
	mov	r9d, eax
	mov	rdi, QWORD PTR -32[rbp]
	mov	r8d, DWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 64[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	push	r9
	push	rdi
	mov	r9d, 0
	mov	rdi, rax
	call	XChangeProperty@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	XFree@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	SendSelectionNotify
	jmp	.L427
.L424:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 64[rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	SendSelectionNotify
.L427:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR 384[rax], 0
.L418:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L429
	call	__stack_chk_fail@PLT
.L429:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	ProcessSelectionNotify, .-ProcessSelectionNotify
	.type	SendSelectionNotify, @function
SendSelectionNotify:
.LFB38:
	.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	DWORD PTR -80[rbp], 31
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	DWORD PTR -64[rbp], eax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 72[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	lea	rdx, -80[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XSendEvent@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L431
	call	__stack_chk_fail@PLT
.L431:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	SendSelectionNotify, .-SendSelectionNotify
	.section	.rodata
.LC127:
	.string	"selection clear"
	.text
	.type	ProcessSelectionClear, @function
ProcessSelectionClear:
.LFB39:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	lea	rdi, .LC127[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 40[rax]
	cmp	rax, 1
	jne	.L433
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -40[rbp], rax
	jne	.L434
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 304
	jmp	.L435
.L434:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 344
.L435:
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	QWORD PTR -16[rbp], rax
	jne	.L436
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 304
	jmp	.L437
.L436:
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 344
.L437:
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 2
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	SendPing
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 384[rax]
	test	rax, rax
	je	.L433
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 456[rax], 0
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 392
	mov	rdi, rax
	mov	eax, 0
	call	SendSelectionNotify
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR 384[rax], 0
.L433:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	ProcessSelectionClear, .-ProcessSelectionClear
	.type	ProcessVisibility, @function
ProcessVisibility:
.LFB40:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	test	eax, eax
	je	.L440
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XRaiseWindow@PLT
.L440:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	ProcessVisibility, .-ProcessVisibility
	.section	.rodata
.LC128:
	.string	"mapping"
	.text
	.type	ProcessMapping, @function
ProcessMapping:
.LFB41:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	lea	rdi, .LC128[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 40[rax]
	cmp	eax, 1
	jg	.L443
	test	eax, eax
	jns	.L444
	jmp	.L445
.L443:
	cmp	eax, 2
	je	.L446
	jmp	.L445
.L444:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	XRefreshKeyboardMapping@PLT
	jmp	.L445
.L446:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	RefreshPointerMapping
	nop
.L445:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE41:
	.size	ProcessMapping, .-ProcessMapping
	.type	FakeAction, @function
FakeAction:
.LFB42:
	.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -48[rbp], ecx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	BYTE PTR -25[rbp], 0
	cmp	DWORD PTR -44[rbp], 0
	jne	.L449
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -25[rbp], al
	jmp	.L450
.L449:
	mov	rax, QWORD PTR -56[rbp]
	mov	BYTE PTR -25[rbp], al
.L450:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 480
	mov	QWORD PTR -24[rbp], rax
	jmp	.L451
.L453:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
.L451:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L452
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 8[rax]
	cmp	DWORD PTR -44[rbp], eax
	jne	.L453
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR 24[rax]
	cmp	BYTE PTR -25[rbp], al
	jne	.L453
.L452:
	cmp	DWORD PTR -48[rbp], 0
	je	.L454
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L456
	mov	edi, 32
	mov	eax, 0
	call	xmalloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -25[rbp]
	mov	BYTE PTR 24[rax], dl
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L456
.L454:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L456
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L456:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE42:
	.size	FakeAction, .-FakeAction
	.section	.rodata
.LC129:
	.string	"key 0x%x up\n"
.LC130:
	.string	"button %d up\n"
	.text
	.type	FakeThingsUp, @function
FakeThingsUp:
.LFB43:
	.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 -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 480[rax]
	test	rax, rax
	je	.L458
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 480[rax]
	mov	QWORD PTR -24[rbp], rax
	jmp	.L459
.L464:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L460
.L463:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L461
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -29[rbp], al
	cmp	BYTE PTR -29[rbp], 0
	je	.L462
	movzx	esi, BYTE PTR -29[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC129[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L462
.L461:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeButtonEvent@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], 1
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rsi, rax
	lea	rdi, .LC130[rip]
	mov	eax, 0
	call	printf@PLT
.L462:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L460:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L463
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -24[rbp], rax
.L459:
	cmp	QWORD PTR -24[rbp], 0
	jne	.L464
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 480[rax], 0
.L458:
	mov	rax, QWORD PTR shadows[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L465
.L467:
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 32[rax]
	test	eax, eax
	je	.L466
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	XFlush@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR 32[rax], 0
.L466:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L465:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L467
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE43:
	.size	FakeThingsUp, .-FakeThingsUp
	.section	.rodata
.LC131:
	.string	"got button mapping: %d items\n"
.LC132:
	.string	"button %d -> %d\n"
	.text
	.type	RefreshPointerMapping, @function
RefreshPointerMapping:
.LFB44:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 128[rax]
	cmp	QWORD PTR -56[rbp], rax
	jne	.L478
	mov	DWORD PTR -36[rbp], 1
	jmp	.L470
.L471:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -36[rbp]
	lea	rcx, 40[rdx]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 4[rax+rcx*4], edx
	add	DWORD PTR -36[rbp], 1
.L470:
	cmp	DWORD PTR -36[rbp], 20
	jbe	.L471
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 20
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetPointerMapping@PLT
	cmp	eax, 20
	jg	.L472
	lea	rcx, -32[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 20
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetPointerMapping@PLT
	jmp	.L473
.L472:
	mov	eax, 20
.L473:
	mov	DWORD PTR nButtons[rip], eax
	mov	eax, DWORD PTR nButtons[rip]
	mov	esi, eax
	lea	rdi, .LC131[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR doPointerMap[rip]
	test	eax, eax
	je	.L478
	mov	DWORD PTR -36[rbp], 0
	jmp	.L474
.L476:
	mov	eax, DWORD PTR -36[rbp]
	movzx	eax, BYTE PTR -32[rbp+rax]
	movzx	eax, al
	mov	edx, DWORD PTR -36[rbp]
	lea	ecx, 1[rdx]
	mov	edx, eax
	mov	esi, ecx
	lea	rdi, .LC132[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	movzx	eax, BYTE PTR -32[rbp+rax]
	cmp	al, 20
	ja	.L475
	mov	eax, DWORD PTR -36[rbp]
	movzx	eax, BYTE PTR -32[rbp+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -36[rbp]
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -64[rbp]
	movsx	rdx, edx
	add	rdx, 40
	mov	DWORD PTR 4[rax+rdx*4], ecx
.L475:
	add	DWORD PTR -36[rbp], 1
.L474:
	mov	eax, DWORD PTR nButtons[rip]
	cmp	DWORD PTR -36[rbp], eax
	jb	.L476
.L478:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L477
	call	__stack_chk_fail@PLT
.L477:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE44:
	.size	RefreshPointerMapping, .-RefreshPointerMapping
	.section	.rodata
.LC133:
	.string	"%s - error: %s\n"
	.text
	.type	xmalloc, @function
xmalloc:
.LFB45:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L480
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	rdx, QWORD PTR programStr[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC133[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L480:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE45:
	.size	xmalloc, .-xmalloc
	.local	lc.0
	.comm	lc.0,4,4
	.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	"647961.c"
	.text
	.local	dpyInfo
	.comm	dpyInfo,320,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"x2x\000"
	.data
	.align	2
	.type	programStr, %object
	.size	programStr, 4
programStr:
	.word	.LC0
	.local	fromDpyName
	.comm	fromDpyName,4,4
	.local	toDpyName
	.comm	toDpyName,4,4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"-*-times-bold-r-*-*-*-180-*-*-*-*-*-*\000"
	.data
	.align	2
	.type	defaultFN, %object
	.size	defaultFN, 4
defaultFN:
	.word	.LC1
	.align	2
	.type	fontName, %object
	.size	fontName, 4
fontName:
	.word	.LC1
	.local	label
	.comm	label,4,4
	.local	title
	.comm	title,4,4
	.section	.rodata
	.align	2
.LC2:
	.ascii	"PING\000"
	.data
	.align	2
	.type	pingStr, %object
	.size	pingStr, 4
pingStr:
	.word	.LC2
	.local	geomStr
	.comm	geomStr,4,4
	.local	waitDpy
	.comm	waitDpy,4,4
	.local	doBig
	.comm	doBig,4,4
	.align	2
	.type	doMouse, %object
	.size	doMouse, 4
doMouse:
	.word	1
	.local	doEdge
	.comm	doEdge,4,4
	.align	2
	.type	doSel, %object
	.size	doSel, 4
doSel:
	.word	1
	.align	2
	.type	doAutoUp, %object
	.size	doAutoUp, 4
doAutoUp:
	.word	1
	.local	doResurface
	.comm	doResurface,4,4
	.local	shadows
	.comm	shadows,4,4
	.align	2
	.type	triggerw, %object
	.size	triggerw, 4
triggerw:
	.word	2
	.align	2
	.type	doPointerMap, %object
	.size	doPointerMap, 4
doPointerMap:
	.word	1
	.local	stickies
	.comm	stickies,4,4
	.local	doBtnBlock
	.comm	doBtnBlock,4,4
	.local	doCapsLkHack
	.comm	doCapsLkHack,4,4
	.local	doClipCheck
	.comm	doClipCheck,4,4
	.local	doDpmsMouse
	.comm	doDpmsMouse,4,4
	.local	logicalOffset
	.comm	logicalOffset,4,4
	.local	nButtons
	.comm	nButtons,4,4
	.local	buttonmap
	.comm	buttonmap,1764,4
	.local	noScale
	.comm	noScale,4,4
	.local	compRegLeft
	.comm	compRegLeft,4,4
	.local	compRegRight
	.comm	compRegRight,4,4
	.local	compRegUp
	.comm	compRegUp,4,4
	.local	compRegLow
	.comm	compRegLow,4,4
	.text
	.align	2
	.global	debug_cmpreg
	.syntax unified
	.arm
	.fpu softvfp
	.type	debug_cmpreg, %function
debug_cmpreg:
	@ args = 4, pretend = 16, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 1
	@ link register save eliminated.
	push	{r0, r1, r2, r3}
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	add	sp, sp, #16
	bx	lr
	.size	debug_cmpreg, .-debug_cmpreg
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%s: display names are both %s\012\000"
	.align	2
.LC4:
	.ascii	"%s - error: can not open display %s\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L12
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	bl	XrmInitialize
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	ParseCommandLine
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	XDisplayName
	mov	r3, r0
	ldr	r2, .L12+4
	str	r3, [r2]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	XDisplayName
	mov	r3, r0
	ldr	r2, .L12+8
	str	r3, [r2]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r2, .L12+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L12+12
	ldr	r0, [r3]
	ldr	r3, .L12+16
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r1, .L12+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, .L12+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L12+12
	ldr	r0, [r3]
	ldr	r3, .L12+16
	ldr	r2, [r3]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	ldr	r1, .L12+28
	bl	fprintf
	mov	r0, #2
	bl	exit
.L5:
	mov	r0, #10
	bl	sleep
.L4:
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	XOpenDisplay
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L6
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	XSynchronize
	mov	r0, #24
	bl	xmalloc
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	mvn	r2, #0
	str	r2, [r3, #20]
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, .L12+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r2, .L12+32
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r3, .L12+32
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L7
.L9:
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	OpenAndCheckDisplay
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L8
	mov	r0, #3
	bl	exit
.L8:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L12+32
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r1, #1
	mov	r0, r3
	bl	XSynchronize
	ldr	r0, .L12+36
	bl	XSetErrorHandler
	ldr	r3, .L12+32
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	DoX2X
	ldr	r0, [fp, #-8]
	bl	XCloseDisplay
	ldr	r3, .L12+32
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L10
.L11:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XCloseDisplay
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L10:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L11
	mov	r0, #0
	bl	exit
.L13:
	.align	2
.L12:
	.word	stdout
	.word	fromDpyName
	.word	toDpyName
	.word	stderr
	.word	programStr
	.word	.LC3
	.word	waitDpy
	.word	.LC4
	.word	shadows
	.word	ErrorHandler
	.size	main, .-main
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s - error: display %s does not support the test ex"
	.ascii	"tension\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	OpenAndCheckDisplay, %function
OpenAndCheckDisplay:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	XDisplayName
	str	r0, [fp, #-16]
	b	.L15
.L18:
	ldr	r3, .L20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L20+4
	ldr	r0, [r3]
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, .L20+12
	bl	fprintf
	mov	r3, #0
	b	.L17
.L16:
	mov	r0, #10
	bl	sleep
.L15:
	ldr	r0, [fp, #-16]
	bl	XOpenDisplay
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L18
	ldr	r0, [fp, #-8]
	bl	CheckTestExtension
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L20+4
	ldr	r0, [r3]
	ldr	r3, .L20+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r1, .L20+16
	bl	fprintf
	mov	r3, #0
	b	.L17
.L19:
	ldr	r3, [fp, #-8]
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	waitDpy
	.word	stderr
	.word	programStr
	.word	.LC4
	.word	.LC5
	.size	OpenAndCheckDisplay, .-OpenAndCheckDisplay
	.section	.rodata
	.align	2
.LC6:
	.ascii	"programStr = %s\012\000"
	.align	2
.LC7:
	.ascii	"-from\000"
	.align	2
.LC8:
	.ascii	"fromDpyName = %s\012\000"
	.align	2
.LC9:
	.ascii	"-to\000"
	.align	2
.LC10:
	.ascii	"toDpyName = %s\012\000"
	.align	2
.LC11:
	.ascii	"-font\000"
	.align	2
.LC12:
	.ascii	"fontName = %s\012\000"
	.align	2
.LC13:
	.ascii	"-label\000"
	.align	2
.LC14:
	.ascii	"label = %s\012\000"
	.align	2
.LC15:
	.ascii	"-title\000"
	.align	2
.LC16:
	.ascii	"title = %s\012\000"
	.align	2
.LC17:
	.ascii	"-geometry\000"
	.align	2
.LC18:
	.ascii	"geometry = %s\012\000"
	.align	2
.LC19:
	.ascii	"-wait\000"
	.align	2
.LC20:
	.ascii	"will wait for displays\000"
	.align	2
.LC21:
	.ascii	"-big\000"
	.align	2
.LC22:
	.ascii	"will create big window on from display\000"
	.align	2
.LC23:
	.ascii	"-nomouse\000"
	.align	2
.LC24:
	.ascii	"will not capture mouse (eek!)\000"
	.align	2
.LC25:
	.ascii	"-nopointermap\000"
	.align	2
.LC26:
	.ascii	"will not do pointer mapping\000"
	.align	2
.LC27:
	.ascii	"-north\000"
	.align	2
.LC28:
	.ascii	"\"from\" is on the north side of \"to\"\000"
	.align	2
.LC29:
	.ascii	"-south\000"
	.align	2
.LC30:
	.ascii	"\"from\" is on the south side of \"to\"\000"
	.align	2
.LC31:
	.ascii	"-east\000"
	.align	2
.LC32:
	.ascii	"\"from\" is on the east side of \"to\"\000"
	.align	2
.LC33:
	.ascii	"-west\000"
	.align	2
.LC34:
	.ascii	"\"from\" is on the west side of \"to\"\000"
	.align	2
.LC35:
	.ascii	"-nosel\000"
	.align	2
.LC36:
	.ascii	"will not transmit X selections between displays\000"
	.align	2
.LC37:
	.ascii	"-noautoup\000"
	.align	2
.LC38:
	.ascii	"will not automatically lift keys and buttons\000"
	.align	2
.LC39:
	.ascii	"-buttonblock\000"
	.align	2
.LC40:
	.ascii	"mouse buttons down will block disconnects\000"
	.align	2
.LC41:
	.ascii	"-capslockhack\000"
	.align	2
.LC42:
	.ascii	"behavior of CapsLock will be hacked\000"
	.align	2
.LC43:
	.ascii	"-dpmsmouse\000"
	.align	2
.LC44:
	.ascii	"mouse movement wakes monitor\000"
	.align	2
.LC45:
	.ascii	"-offset\000"
	.align	2
.LC46:
	.ascii	"logicalOffset %d\012\000"
	.align	2
.LC47:
	.ascii	"-clipcheck\000"
	.align	2
.LC48:
	.ascii	"Clipboard type will be checked for XA_STRING\000"
	.align	2
.LC49:
	.ascii	"-nocapslockhack\000"
	.align	2
.LC50:
	.ascii	"behavior of CapsLock will not be hacked\000"
	.align	2
.LC51:
	.ascii	"-sticky\000"
	.align	2
.LC52:
	.ascii	"will press/release sticky key: %s\012\000"
	.align	2
.LC53:
	.ascii	"x2x: warning: can't translate %s\012\000"
	.align	2
.LC54:
	.ascii	"-buttonmap\000"
	.align	2
.LC55:
	.ascii	"x2x: warning: invalid button %d\012\000"
	.align	2
.LC56:
	.ascii	"will map button %d to keysyms '%s'\012\000"
	.align	2
.LC57:
	.ascii	"x2x: warning: too many keys mapped to button %d\012"
	.ascii	"\000"
	.align	2
.LC58:
	.ascii	" \011\012\015\000"
	.align	2
.LC59:
	.ascii	"-resurface\000"
	.align	2
.LC60:
	.ascii	"will resurface the trigger window when obscured\000"
	.align	2
.LC61:
	.ascii	"-shadow\000"
	.align	2
.LC62:
	.ascii	"-triggerw\000"
	.align	2
.LC63:
	.ascii	"-copyright\000"
	.align	2
.LC64:
	.ascii	"-noscale\000"
	.align	2
.LC65:
	.ascii	"-completeregionleft\000"
	.align	2
.LC66:
	.ascii	"-completeregionright\000"
	.align	2
.LC67:
	.ascii	"-completeregionup\000"
	.align	2
.LC68:
	.ascii	"-completeregionlow\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ParseCommandLine, %function
ParseCommandLine:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L86
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+4
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L23
.L24:
	ldr	r1, .L86+8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L23:
	ldr	r3, [fp, #-32]
	cmp	r3, #20
	ble	.L24
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L25
.L85:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+12
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L27
	bl	Usage
.L27:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L86+16
	str	r3, [r2]
	ldr	r3, .L86+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+20
	bl	printf
	b	.L28
.L26:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+24
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L30
	bl	Usage
.L30:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L86+28
	str	r3, [r2]
	ldr	r3, .L86+28
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+32
	bl	printf
	b	.L28
.L29:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+36
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L32
	bl	Usage
.L32:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L86+40
	str	r3, [r2]
	ldr	r3, .L86+40
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+44
	bl	printf
	b	.L28
.L31:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+48
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L34
	bl	Usage
.L34:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L86+52
	str	r3, [r2]
	ldr	r3, .L86+52
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+56
	bl	printf
	b	.L28
.L33:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+60
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L36
	bl	Usage
.L36:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L86+64
	str	r3, [r2]
	ldr	r3, .L86+64
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+68
	bl	printf
	b	.L28
.L35:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+72
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L38
	bl	Usage
.L38:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L86+76
	str	r3, [r2]
	ldr	r3, .L86+76
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+80
	bl	printf
	b	.L28
.L37:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+84
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L86+88
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+92
	bl	puts
	b	.L28
.L39:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+96
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L86+100
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+104
	bl	puts
	b	.L28
.L40:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+108
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L41
	ldr	r3, .L86+112
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L86+116
	bl	puts
	b	.L28
.L41:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+120
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L86+124
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L86+128
	bl	puts
	b	.L28
.L42:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+132
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L86+136
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+140
	bl	puts
	b	.L28
.L43:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+144
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	ldr	r3, .L86+136
	mov	r2, #2
	str	r2, [r3]
	ldr	r0, .L86+148
	bl	puts
	b	.L28
.L44:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+152
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	ldr	r3, .L86+136
	mov	r2, #3
	str	r2, [r3]
	ldr	r0, .L86+156
	bl	puts
	b	.L28
.L45:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+160
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L86+136
	mov	r2, #4
	str	r2, [r3]
	ldr	r0, .L86+164
	bl	puts
	b	.L28
.L46:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+168
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	ldr	r3, .L86+172
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L86+176
	bl	puts
	b	.L28
.L47:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+180
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L86+184
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L86+188
	bl	puts
	b	.L28
.L48:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+192
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	ldr	r3, .L86+196
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+200
	bl	puts
	b	.L28
.L49:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+204
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L50
	ldr	r3, .L86+208
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+212
	bl	puts
	b	.L28
.L50:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+216
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	ldr	r3, .L86+220
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+224
	bl	puts
	b	.L28
.L51:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+228
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L53
	bl	Usage
.L53:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L86+232
	str	r3, [r2]
	ldr	r3, .L86+232
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+236
	bl	printf
	b	.L28
.L52:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+240
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	ldr	r3, .L86+244
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+248
	bl	puts
	b	.L28
.L54:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+252
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	ldr	r3, .L86+208
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, .L86+256
	bl	puts
	b	.L28
.L55:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+260
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L57
	bl	Usage
.L57:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	XStringToKeysym
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L58
	mov	r0, #8
	bl	xmalloc
	str	r0, [fp, #-8]
	ldr	r3, .L86+264
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r2, .L86+264
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+268
	bl	printf
	b	.L28
.L58:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L86+272
	bl	printf
	b	.L28
.L56:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+276
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L60
	bl	Usage
.L60:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L61
	ldr	r3, [fp, #-32]
	cmp	r3, #20
	ble	.L62
.L61:
	ldr	r1, [fp, #-32]
	ldr	r0, .L86+280
	bl	printf
	b	.L28
.L62:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L64
	bl	Usage
	b	.L28
.L64:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L86+284
	bl	printf
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L65
.L69:
	ldr	r0, [fp, #-16]
	bl	XStringToKeysym
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L66
	ldr	r1, [fp, #-16]
	ldr	r0, .L86+272
	bl	printf
	b	.L67
.L66:
	ldr	r3, [fp, #-28]
	cmp	r3, #18
	ble	.L68
	ldr	r1, [fp, #-32]
	ldr	r0, .L86+288
	bl	printf
	b	.L67
.L68:
	ldr	r1, [fp, #-28]
	add	r3, r1, #1
	str	r3, [fp, #-28]
	ldr	r0, .L86+8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	add	r3, r2, r1
	ldr	r2, [fp, #-12]
	str	r2, [r0, r3, lsl #2]
.L67:
	mov	r3, #0
	str	r3, [fp, #-24]
.L65:
	ldr	r1, .L86+292
	ldr	r0, [fp, #-24]
	bl	strtok
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L69
	ldr	r1, .L86+8
	ldr	r2, [fp, #-32]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r1, r3, lsl #2]
	b	.L28
.L59:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+296
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L70
	ldr	r3, .L86+300
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L86+304
	bl	puts
	b	.L28
.L70:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+308
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L71
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L72
	bl	Usage
.L72:
	mov	r0, #24
	bl	xmalloc
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	mvn	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, .L86+312
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r2, .L86+312
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	b	.L28
.L71:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+316
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L73
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L74
	bl	Usage
.L74:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L86+320
	str	r3, [r2]
	b	.L28
.L73:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+324
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L75
	ldr	r3, .L86+328
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	b	.L28
.L75:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+332
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L76
	ldr	r3, .L86+336
	mov	r2, #1
	str	r2, [r3]
	b	.L28
.L76:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+340
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L78
	bl	Usage
.L78:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L86+344
	str	r3, [r2]
	b	.L28
.L77:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+348
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L80
	bl	Usage
.L80:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L86+352
	str	r3, [r2]
	b	.L28
.L79:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+356
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L82
	bl	Usage
.L82:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L86+360
	str	r3, [r2]
	b	.L28
.L81:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L86+364
	mov	r0, r3
	bl	strcasecmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L83
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L84
	bl	Usage
.L84:
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L86+368
	str	r3, [r2]
	b	.L28
.L83:
	bl	Usage
.L28:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L25:
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	blt	.L85
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L87:
	.align	2
.L86:
	.word	programStr
	.word	.LC6
	.word	buttonmap
	.word	.LC7
	.word	fromDpyName
	.word	.LC8
	.word	.LC9
	.word	toDpyName
	.word	.LC10
	.word	.LC11
	.word	fontName
	.word	.LC12
	.word	.LC13
	.word	label
	.word	.LC14
	.word	.LC15
	.word	title
	.word	.LC16
	.word	.LC17
	.word	geomStr
	.word	.LC18
	.word	.LC19
	.word	waitDpy
	.word	.LC20
	.word	.LC21
	.word	doBig
	.word	.LC22
	.word	.LC23
	.word	doMouse
	.word	.LC24
	.word	.LC25
	.word	doPointerMap
	.word	.LC26
	.word	.LC27
	.word	doEdge
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	doSel
	.word	.LC36
	.word	.LC37
	.word	doAutoUp
	.word	.LC38
	.word	.LC39
	.word	doBtnBlock
	.word	.LC40
	.word	.LC41
	.word	doCapsLkHack
	.word	.LC42
	.word	.LC43
	.word	doDpmsMouse
	.word	.LC44
	.word	.LC45
	.word	logicalOffset
	.word	.LC46
	.word	.LC47
	.word	doClipCheck
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.word	stickies
	.word	.LC52
	.word	.LC53
	.word	.LC54
	.word	.LC55
	.word	.LC56
	.word	.LC57
	.word	.LC58
	.word	.LC59
	.word	doResurface
	.word	.LC60
	.word	.LC61
	.word	shadows
	.word	.LC62
	.word	triggerw
	.word	.LC63
	.word	lawyerese
	.word	.LC64
	.word	noScale
	.word	.LC65
	.word	compRegLeft
	.word	.LC66
	.word	compRegRight
	.word	.LC67
	.word	compRegUp
	.word	.LC68
	.word	compRegLow
	.size	ParseCommandLine, .-ParseCommandLine
	.section	.rodata
	.align	2
.LC69:
	.ascii	"Usage: x2x [-to <DISPLAY> | -from <DISPLAY>] option"
	.ascii	"s...\000"
	.align	2
.LC70:
	.ascii	"       -copyright\000"
	.align	2
.LC71:
	.ascii	"       -font <FONTNAME>\000"
	.align	2
.LC72:
	.ascii	"       -geometry <GEOMETRY>\000"
	.align	2
.LC73:
	.ascii	"       -wait\000"
	.align	2
.LC74:
	.ascii	"       -big\000"
	.align	2
.LC75:
	.ascii	"       -buttonblock\000"
	.align	2
.LC76:
	.ascii	"       -nomouse\000"
	.align	2
.LC77:
	.ascii	"       -nopointermap\000"
	.align	2
.LC78:
	.ascii	"       -north\000"
	.align	2
.LC79:
	.ascii	"       -south\000"
	.align	2
.LC80:
	.ascii	"       -east\000"
	.align	2
.LC81:
	.ascii	"       -west\000"
	.align	2
.LC82:
	.ascii	"       -nosel\000"
	.align	2
.LC83:
	.ascii	"       -noautoup\000"
	.align	2
.LC84:
	.ascii	"       -resurface\000"
	.align	2
.LC85:
	.ascii	"       -capslockhack\000"
	.align	2
.LC86:
	.ascii	"       -nocapslockhack\000"
	.align	2
.LC87:
	.ascii	"       -clipcheck\000"
	.align	2
.LC88:
	.ascii	"       -shadow <DISPLAY>\000"
	.align	2
.LC89:
	.ascii	"       -sticky <sticky key>\000"
	.align	2
.LC90:
	.ascii	"       -label <LABEL>\000"
	.align	2
.LC91:
	.ascii	"       -title <TITLE>\000"
	.align	2
.LC92:
	.ascii	"       -buttonmap <button#> \"<keysym> ...\"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Usage, %function
Usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L89
	bl	puts
	ldr	r0, .L89+4
	bl	puts
	ldr	r0, .L89+8
	bl	puts
	ldr	r0, .L89+12
	bl	puts
	ldr	r0, .L89+16
	bl	puts
	ldr	r0, .L89+20
	bl	puts
	ldr	r0, .L89+24
	bl	puts
	ldr	r0, .L89+28
	bl	puts
	ldr	r0, .L89+32
	bl	puts
	ldr	r0, .L89+36
	bl	puts
	ldr	r0, .L89+40
	bl	puts
	ldr	r0, .L89+44
	bl	puts
	ldr	r0, .L89+48
	bl	puts
	ldr	r0, .L89+52
	bl	puts
	ldr	r0, .L89+56
	bl	puts
	ldr	r0, .L89+60
	bl	puts
	ldr	r0, .L89+64
	bl	puts
	ldr	r0, .L89+68
	bl	puts
	ldr	r0, .L89+72
	bl	puts
	ldr	r0, .L89+76
	bl	puts
	ldr	r0, .L89+80
	bl	puts
	ldr	r0, .L89+84
	bl	puts
	ldr	r0, .L89+88
	bl	puts
	ldr	r0, .L89+92
	bl	puts
	mov	r0, #4
	bl	exit
.L90:
	.align	2
.L89:
	.word	.LC69
	.word	.LC70
	.word	.LC71
	.word	.LC72
	.word	.LC73
	.word	.LC74
	.word	.LC75
	.word	.LC76
	.word	.LC77
	.word	.LC78
	.word	.LC79
	.word	.LC80
	.word	.LC81
	.word	.LC82
	.word	.LC83
	.word	.LC84
	.word	.LC85
	.word	.LC86
	.word	.LC87
	.word	.LC88
	.word	.LC89
	.word	.LC90
	.word	.LC91
	.word	.LC92
	.size	Usage, .-Usage
	.section	.rodata
	.align	2
.LC93:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckTestExtension, %function
CheckTestExtension:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	ldr	r3, .L94
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	sub	r2, fp, #20
	sub	r1, fp, #24
	sub	r3, fp, #12
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-32]
	bl	XTestQueryExtension
	mov	r3, r0
	ldr	r2, .L94
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L93
	bl	__stack_chk_fail
.L93:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L95:
	.align	2
.L94:
	.word	.LC93
	.size	CheckTestExtension, .-CheckTestExtension
	.section	.rodata
	.align	2
.LC94:
	.ascii	"x2x:ErrHandler(): Display:`%s` \011 error_code:`%i`"
	.ascii	" \012\000"
	.align	2
.LC95:
	.ascii	" %s \012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ErrorHandler, %function
ErrorHandler:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #1024
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	XGetErrorText
	mov	r0, #0
	bl	XDisplayName
	mov	r1, r0
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L98
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L98+4
	bl	printf
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #1
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L99:
	.align	2
.L98:
	.word	.LC94
	.word	.LC95
	.size	ErrorHandler, .-ErrorHandler
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ 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, .L102
	ldr	r3, [r3, #188]
	cmp	r3, #2
	bne	.L101
	ldr	r0, .L102
	bl	DoDisconnect
.L101:
	ldr	r2, .L102
	ldr	r3, [fp, #-8]
	str	r3, [r2, #184]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	dpyInfo
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC96:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoX2X, %function
DoX2X:
	@ args = 0, pretend = 0, frame = 168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L114
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, .L114+4
	ldr	r3, [fp, #-168]
	str	r3, [r2]
	ldr	r2, .L114+4
	ldr	r3, [fp, #-172]
	str	r3, [r2, #80]
	ldr	r0, .L114+4
	bl	InitDpyInfo
	ldr	r0, .L114+4
	bl	RegisterEventHandlers
	ldr	r1, .L114+8
	mov	r0, #2
	bl	signal
	ldr	r1, .L114+8
	mov	r0, #15
	bl	signal
	ldr	r0, [fp, #-168]
	bl	XConnectionNumber
	str	r0, [fp, #-156]
	ldr	r0, [fp, #-172]
	bl	XConnectionNumber
	str	r0, [fp, #-152]
	ldr	r2, [fp, #-152]
	ldr	r3, [fp, #-156]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	add	r3, r3, #1
	str	r3, [fp, #-148]
	b	.L105
.L111:
	ldr	r0, [fp, #-168]
	bl	XPending
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	beq	.L106
	ldr	r1, .L114+4
	ldr	r0, [fp, #-168]
	bl	ProcessEvent
	mov	r3, r0
	cmp	r3, #0
	bne	.L113
.L106:
	ldr	r0, [fp, #-172]
	bl	XPending
	mov	r3, r0
	cmp	r3, #0
	beq	.L108
	ldr	r1, .L114+4
	ldr	r0, [fp, #-172]
	bl	ProcessEvent
	mov	r3, r0
	cmp	r3, #0
	beq	.L105
	b	.L107
.L108:
	ldr	r3, [fp, #-144]
	cmp	r3, #0
	bne	.L105
	sub	r3, fp, #136
	str	r3, [fp, #-140]
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L109
.L110:
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-160]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L109:
	ldr	r3, [fp, #-160]
	cmp	r3, #31
	bls	.L110
	ldr	r3, [fp, #-156]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-156]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-152]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-152]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-148]
	bl	select
.L105:
	ldr	r3, .L114+4
	ldr	r3, [r3, #184]
	cmp	r3, #0
	beq	.L111
	b	.L107
.L113:
	nop
.L107:
	nop
	ldr	r3, .L114
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L112
	bl	__stack_chk_fail
.L112:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L115:
	.align	2
.L114:
	.word	.LC96
	.word	dpyInfo
	.word	signal_handler
	.size	DoX2X, .-DoX2X
	.section	.rodata
	.align	2
.LC97:
	.ascii	"UTF8_STRING\000"
	.align	2
.LC98:
	.ascii	"fixed\000"
	.align	2
.LC99:
	.ascii	"%s %s\000"
	.align	2
.LC100:
	.ascii	"WM_PROTOCOLS\000"
	.align	2
.LC101:
	.ascii	"WM_DELETE_WINDOW\000"
	.align	2
.LC102:
	.ascii	"fromWidth/Height: %d/%d, toWidth/Height: %d/%d\012\000"
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
.LC103:
	.ascii	"Create window %x on todpy\012\000"
	.align	2
.LC104:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	InitDpyInfo, %function
InitDpyInfo:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #308
	str	r0, [fp, #-280]
	ldr	r3, .L190+108
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-280]
	ldr	r3, [r3]
	str	r3, [fp, #-188]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #80]
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #264]
	mov	r3, #1
	str	r3, [fp, #-212]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #44]
	mov	r3, #1
	str	r3, [fp, #-212]
	ldr	r0, [fp, #-188]
	bl	XDefaultScreenOfDisplay
	str	r0, [fp, #-180]
	ldr	r0, [fp, #-180]
	bl	XBlackPixelOfScreen
	mov	r3, r0
	str	r3, [fp, #-176]
	ldr	r0, [fp, #-180]
	bl	XWhitePixelOfScreen
	mov	r3, r0
	str	r3, [fp, #-172]
	ldr	r0, [fp, #-180]
	bl	XHeightOfScreen
	str	r0, [fp, #-168]
	ldr	r0, [fp, #-180]
	bl	XWidthOfScreen
	str	r0, [fp, #-164]
	ldr	r0, [fp, #-184]
	bl	XDefaultRootWindow
	str	r0, [fp, #-160]
	ldr	r0, [fp, #-188]
	bl	XDefaultRootWindow
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-156]
	ldr	r0, [fp, #-184]
	bl	XScreenCount
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #200]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #200]
	str	r3, [fp, #-152]
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #1
	beq	.L117
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L118
.L117:
	mov	r2, #1
	b	.L119
.L118:
	mov	r2, #0
.L119:
	ldr	r3, [fp, #-280]
	str	r2, [r3, #68]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #68]
	str	r3, [fp, #-148]
	mov	r2, #0
	ldr	r1, .L190
	ldr	r0, [fp, #-188]
	bl	XInternAtom
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #4]
	mov	r2, #0
	ldr	r1, .L190
	ldr	r0, [fp, #-184]
	bl	XInternAtom
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #84]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #188]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L120
	ldr	r3, [fp, #-168]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	b	.L121
.L120:
	ldr	r3, [fp, #-164]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
.L121:
	ldr	r3, [fp, #-280]
	str	r2, [r3, #76]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #316]
	mov	r3, #1
	str	r3, [fp, #-28]
	bl	XAllocSizeHints
	str	r0, [fp, #-144]
	mov	r3, #3
	str	r3, [fp, #-208]
	ldr	r3, .L190+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-280]
	str	r2, [r3, #220]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L122
	ldr	r3, [fp, #-168]
	b	.L123
.L122:
	ldr	r3, [fp, #-164]
.L123:
	ldr	r2, .L190+4
	ldr	r2, [r2]
	sub	r3, r3, r2
	sub	r2, r3, #1
	ldr	r3, [fp, #-280]
	str	r2, [r3, #224]
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L124
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #1
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-188]
	bl	XCreatePixmap
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-208]
	orr	r3, r3, #16
	str	r3, [fp, #-208]
	sub	r2, fp, #88
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	sub	r3, fp, #88
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, [fp, #-124]
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-188]
	bl	XCreatePixmapCursor
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #40]
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L125
	mov	r3, #0
	str	r3, [fp, #-192]
	ldr	r3, .L190+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-168]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-280]
	str	r2, [r3, #212]
	ldr	r3, .L190+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-280]
	str	r2, [r3, #216]
	b	.L126
.L125:
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L127
	ldr	r3, .L190+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-168]
	sub	r3, r2, r3
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-280]
	mov	r2, #1
	str	r2, [r3, #212]
	ldr	r3, [fp, #-192]
	sub	r2, r3, #1
	ldr	r3, [fp, #-280]
	str	r2, [r3, #216]
	b	.L126
.L127:
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L128
	ldr	r3, .L190+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-164]
	sub	r3, r2, r3
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-280]
	mov	r2, #1
	str	r2, [r3, #212]
	ldr	r3, [fp, #-192]
	sub	r2, r3, #1
	ldr	r3, [fp, #-280]
	str	r2, [r3, #216]
	b	.L126
.L128:
	mov	r3, #0
	str	r3, [fp, #-192]
	ldr	r3, .L190+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-164]
	sub	r3, r2, r3
	sub	r2, r3, #1
	ldr	r3, [fp, #-280]
	str	r2, [r3, #212]
	ldr	r3, .L190+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-280]
	str	r2, [r3, #216]
.L126:
	ldr	r3, [fp, #-176]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L129
	ldr	r3, .L190+4
	ldr	r2, [r3]
	b	.L130
.L129:
	ldr	r2, [fp, #-192]
.L130:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L131
	ldr	r3, [fp, #-192]
	b	.L132
.L131:
	ldr	r3, .L190+4
	ldr	r3, [r3]
.L132:
	ldr	r1, [fp, #-148]
	cmp	r1, #0
	beq	.L133
	ldr	r1, .L190+4
	ldr	r1, [r1]
	lsl	r1, r1, #1
	ldr	r0, [fp, #-164]
	sub	r1, r0, r1
	mov	ip, r1
	b	.L134
.L133:
	ldr	r1, .L190+4
	ldr	r1, [r1]
	mov	ip, r1
.L134:
	ldr	r1, [fp, #-148]
	cmp	r1, #0
	bne	.L135
	ldr	r1, .L190+4
	ldr	r1, [r1]
	lsl	r1, r1, #1
	ldr	r0, [fp, #-168]
	sub	r1, r0, r1
	mov	r0, r1
	b	.L136
.L135:
	ldr	r1, .L190+4
	ldr	r1, [r1]
	mov	r0, r1
.L136:
	sub	r1, fp, #76
	str	r1, [sp, #28]
	mov	r1, #512
	str	r1, [sp, #24]
	mov	r1, #0
	str	r1, [sp, #20]
	mov	r1, #2
	str	r1, [sp, #16]
	mov	r1, #0
	str	r1, [sp, #12]
	mov	r1, #0
	str	r1, [sp, #8]
	str	r0, [sp, #4]
	str	ip, [sp]
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-188]
	bl	XCreateWindow
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-232]
	b	.L137
.L124:
	mov	r1, #50
	ldr	r0, [fp, #-188]
	bl	XCreateFontCursor
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #40]
	ldr	r3, [fp, #-208]
	orr	r3, r3, #163840
	str	r3, [fp, #-208]
	ldr	r3, .L190+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L138
	ldr	r3, [fp, #-208]
	orr	r3, r3, #12
	str	r3, [fp, #-208]
.L138:
	ldr	r3, .L190+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L139
	ldr	r3, .L190+16
	ldr	r3, [r3]
	ldr	r2, .L190+12
	str	r3, [r2]
.L139:
	ldr	r3, .L190+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-188]
	bl	XLoadFont
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bne	.L140
	ldr	r3, .L190+24
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-188]
	bl	XLoadFont
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	bne	.L140
	ldr	r1, .L190+28
	ldr	r0, [fp, #-188]
	bl	XLoadFont
	str	r0, [fp, #-200]
	ldr	r3, [fp, #-200]
	cmp	r3, #0
	beq	.L141
.L140:
	ldr	r3, .L190+12
	ldr	r4, [r3]
	ldr	r3, .L190+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #88
	str	r3, [sp, #12]
	sub	r3, fp, #240
	str	r3, [sp, #8]
	sub	r3, fp, #244
	str	r3, [sp, #4]
	sub	r3, fp, #236
	str	r3, [sp]
	mov	r3, r2
	mov	r2, r4
	ldr	r1, [fp, #-200]
	ldr	r0, [fp, #-188]
	bl	XQueryTextExtents
	ldrsh	r3, [fp, #-86]
	mov	r2, r3
	ldrsh	r3, [fp, #-88]
	sub	r3, r2, r3
	str	r3, [fp, #-220]
	ldr	r2, [fp, #-244]
	ldr	r3, [fp, #-240]
	add	r3, r2, r3
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-244]
	str	r3, [fp, #-140]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-188]
	bl	XCreateGC
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #28]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-136]
	ldr	r2, [fp, #-176]
	ldr	r3, [fp, #-172]
	mvn	r1, #0
	str	r1, [sp, #4]
	mov	r1, #3
	str	r1, [sp]
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-188]
	bl	XSetState
	ldr	r2, [fp, #-200]
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-188]
	bl	XSetFont
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-200]
	str	r2, [r3, #44]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-220]
	str	r2, [r3, #56]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-216]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-140]
	str	r2, [r3, #64]
	b	.L142
.L141:
	mov	r3, #100
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-216]
	str	r3, [fp, #-220]
.L142:
	mov	r3, #0
	str	r3, [fp, #-268]
	ldr	r3, [fp, #-268]
	str	r3, [fp, #-272]
	ldr	r3, [fp, #-220]
	add	r3, r3, #4
	str	r3, [fp, #-264]
	ldr	r3, [fp, #-216]
	add	r3, r3, #4
	str	r3, [fp, #-260]
	ldr	r3, .L190+32
	ldr	r0, [r3]
	sub	ip, fp, #264
	sub	r2, fp, #268
	sub	r1, fp, #272
	sub	r3, fp, #260
	str	r3, [sp]
	mov	r3, ip
	bl	XParseGeometry
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	and	r3, r3, #48
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #48
	beq	.L143
	ldr	r3, [fp, #-128]
	cmp	r3, #48
	bgt	.L144
	ldr	r3, [fp, #-128]
	cmp	r3, #16
	beq	.L145
	ldr	r3, [fp, #-128]
	cmp	r3, #32
	beq	.L146
	b	.L144
.L143:
	mov	r3, #9
	str	r3, [fp, #-212]
	b	.L147
.L145:
	mov	r3, #3
	str	r3, [fp, #-212]
	b	.L147
.L146:
	mov	r3, #7
	str	r3, [fp, #-212]
	b	.L147
.L144:
	mov	r3, #1
	str	r3, [fp, #-212]
	nop
.L147:
	ldr	r3, [fp, #-264]
	mov	r2, r3
	ldr	r3, [fp, #-280]
	str	r2, [r3, #48]
	ldr	r3, [fp, #-260]
	mov	r2, r3
	ldr	r3, [fp, #-280]
	str	r2, [r3, #52]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	beq	.L148
	sub	r1, fp, #256
	sub	r2, fp, #276
	sub	r3, fp, #236
	str	r3, [sp, #16]
	sub	r3, fp, #240
	str	r3, [sp, #12]
	sub	r3, fp, #244
	str	r3, [sp, #8]
	sub	r3, fp, #248
	str	r3, [sp, #4]
	sub	r3, fp, #252
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-188]
	bl	XGetGeometry
	ldr	r3, [fp, #-132]
	and	r3, r3, #17
	cmp	r3, #17
	bne	.L149
	ldr	r2, [fp, #-248]
	ldr	r3, [fp, #-264]
	sub	r3, r2, r3
	ldr	r2, [fp, #-272]
	add	r3, r3, r2
	str	r3, [fp, #-272]
.L149:
	ldr	r3, [fp, #-132]
	and	r3, r3, #34
	cmp	r3, #34
	bne	.L148
	ldr	r2, [fp, #-244]
	ldr	r3, [fp, #-260]
	sub	r3, r2, r3
	ldr	r2, [fp, #-268]
	add	r3, r3, r2
	str	r3, [fp, #-268]
.L148:
	ldr	ip, [fp, #-272]
	ldr	lr, [fp, #-268]
	ldr	r3, [fp, #-264]
	ldr	r2, [fp, #-260]
	ldr	r1, [fp, #-176]
	ldr	r0, [fp, #-172]
	str	r0, [sp, #16]
	str	r1, [sp, #12]
	mov	r1, #0
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-188]
	bl	XCreateSimpleWindow
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-232]
.L137:
	ldr	r2, [fp, #-272]
	ldr	r3, [fp, #-144]
	str	r2, [r3, #4]
	ldr	r2, [fp, #-268]
	ldr	r3, [fp, #-144]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-264]
	mov	r2, r3
	ldr	r3, [fp, #-144]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-260]
	mov	r2, r3
	ldr	r3, [fp, #-144]
	str	r2, [r3, #64]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-212]
	str	r2, [r3, #68]
	ldr	r3, [fp, #-144]
	mov	r2, #772
	str	r2, [r3]
	ldr	r2, [fp, #-144]
	ldr	r1, [fp, #-232]
	ldr	r0, [fp, #-188]
	bl	XSetWMNormalHints
	ldr	r3, .L190+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L150
	ldr	r3, .L190+36
	ldr	r3, [r3]
	str	r3, [fp, #-204]
	b	.L151
.L150:
	ldr	r3, .L190+40
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r4, r0
	ldr	r3, .L190+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	add	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-204]
	ldr	r3, .L190+40
	ldr	r2, [r3]
	ldr	r3, .L190+16
	ldr	r3, [r3]
	ldr	r1, .L190+44
	ldr	r0, [fp, #-204]
	bl	sprintf
.L151:
	ldr	r2, [fp, #-204]
	ldr	r1, [fp, #-232]
	ldr	r0, [fp, #-188]
	bl	XStoreName
	ldr	r2, [fp, #-204]
	ldr	r1, [fp, #-232]
	ldr	r0, [fp, #-188]
	bl	XSetIconName
	mov	r2, #1
	ldr	r1, .L190+48
	ldr	r0, [fp, #-188]
	bl	XInternAtom
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #32]
	mov	r2, #1
	ldr	r1, .L190+52
	ldr	r0, [fp, #-188]
	bl	XInternAtom
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-280]
	add	r2, r3, #36
	mov	r3, #1
	ldr	r1, [fp, #-232]
	ldr	r0, [fp, #-188]
	bl	XSetWMProtocols
	ldr	r3, .L190+56
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L152
	ldr	r3, [fp, #-164]
	ldr	r2, [fp, #-168]
	sub	r1, fp, #76
	str	r1, [sp, #28]
	mov	r1, #512
	str	r1, [sp, #24]
	mov	r1, #0
	str	r1, [sp, #20]
	mov	r1, #2
	str	r1, [sp, #16]
	mov	r1, #0
	str	r1, [sp, #12]
	mov	r1, #0
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-156]
	ldr	r0, [fp, #-188]
	bl	XCreateWindow
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-280]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-144]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-144]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-164]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-168]
	str	r2, [r3, #64]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-164]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-144]
	ldr	r2, [fp, #-168]
	str	r2, [r3, #24]
	ldr	r3, [fp, #-144]
	mov	r2, #276
	str	r2, [r3]
	ldr	r2, [fp, #-144]
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-188]
	bl	XSetWMNormalHints
	ldr	r2, [fp, #-204]
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-188]
	bl	XStoreName
	ldr	r2, [fp, #-204]
	ldr	r1, [fp, #-120]
	ldr	r0, [fp, #-188]
	bl	XSetIconName
	b	.L153
.L152:
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #16]
.L153:
	ldr	r0, [fp, #-144]
	bl	XFree
	ldr	r3, .L190+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L154
	ldr	r0, [fp, #-204]
	bl	free
.L154:
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L155
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L156
.L155:
	ldr	r3, [fp, #-152]
	sub	r3, r3, #1
	b	.L157
.L156:
	mov	r3, #0
.L157:
	ldr	r2, [fp, #-280]
	str	r3, [r2, #196]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #204]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #208]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-152]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-112]
	mov	r3, #0
	str	r3, [fp, #-224]
	b	.L158
.L183:
	ldr	r1, [fp, #-224]
	ldr	r0, [fp, #-184]
	bl	XScreenOfDisplay
	mov	r3, r0
	mov	r0, r3
	bl	XWidthOfScreen
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-224]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-112]
	add	r3, r2, r3
	ldr	r2, [fp, #-104]
	str	r2, [r3]
	ldr	r1, [fp, #-224]
	ldr	r0, [fp, #-184]
	bl	XScreenOfDisplay
	mov	r3, r0
	mov	r0, r3
	bl	XHeightOfScreen
	str	r0, [fp, #-100]
	ldr	r3, [fp, #-224]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r2, [fp, #-100]
	str	r2, [r3]
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-280]
	ldr	r2, [r3, #204]
	ldr	r3, [fp, #-224]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-96]
	str	r2, [r3]
	ldr	r3, [fp, #-168]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	xmalloc
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-280]
	ldr	r2, [r3, #208]
	ldr	r3, [fp, #-224]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-92]
	str	r2, [r3]
	ldr	r3, [fp, #-100]
	str	r3, [sp]
	ldr	r3, [fp, #-104]
	ldr	r2, [fp, #-168]
	ldr	r1, [fp, #-164]
	ldr	r0, .L190+60
	bl	debug_cmpreg
	ldr	r3, .L190+64
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L159
	ldr	r2, .L190+64
	ldr	r3, [fp, #-164]
	str	r3, [r2]
.L159:
	ldr	r3, .L190+68
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L160
	ldr	r2, .L190+68
	ldr	r3, [fp, #-168]
	str	r3, [r2]
.L160:
	ldr	r3, .L190+72
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L161
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L162
.L163:
	ldr	r3, [fp, #-100]
	sub	r2, r3, #1
	ldr	r3, [fp, #-228]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r3, [fp, #-228]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	lsl	r2, r1, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L162:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-168]
	cmp	r2, r3
	blt	.L163
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L164
.L165:
	ldr	r3, [fp, #-104]
	sub	r2, r3, #1
	ldr	r3, [fp, #-228]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	mov	r1, r3
	ldr	r3, [fp, #-228]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	lsl	r2, r1, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L164:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	blt	.L165
	b	.L166
.L161:
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L167
.L170:
	ldr	r3, .L190+76
	ldr	r3, [r3]
	ldr	r2, [fp, #-228]
	cmp	r2, r3
	blt	.L168
	ldr	r3, .L190+68
	ldr	r3, [r3]
	ldr	r2, [fp, #-228]
	cmp	r2, r3
	bgt	.L168
	ldr	r3, .L190+76
	ldr	r3, [r3]
	ldr	r2, [fp, #-228]
	sub	r3, r2, r3
	ldr	r2, [fp, #-100]
	mul	r0, r2, r3
	ldr	r3, .L190+68
	ldr	r2, [r3]
	ldr	r3, .L190+76
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	b	.L169
.L168:
	mov	r3, #100
.L169:
	ldr	r2, [fp, #-228]
	lsl	r2, r2, #1
	ldr	r1, [fp, #-92]
	add	r2, r1, r2
	strh	r3, [r2]	@ movhi
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L167:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-168]
	cmp	r2, r3
	blt	.L170
	mov	r3, #0
	str	r3, [fp, #-228]
	b	.L171
.L174:
	ldr	r3, .L190+80
	ldr	r3, [r3]
	ldr	r2, [fp, #-228]
	cmp	r2, r3
	blt	.L172
	ldr	r3, .L190+64
	ldr	r3, [r3]
	ldr	r2, [fp, #-228]
	cmp	r2, r3
	bgt	.L172
	ldr	r3, .L190+80
	ldr	r3, [r3]
	ldr	r2, [fp, #-228]
	sub	r3, r2, r3
	ldr	r2, [fp, #-104]
	mul	r0, r2, r3
	ldr	r3, .L190+64
	ldr	r2, [r3]
	ldr	r3, .L190+80
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	lsl	r3, r3, #16
	asr	r3, r3, #16
	b	.L173
.L172:
	mov	r3, #100
.L173:
	ldr	r2, [fp, #-228]
	lsl	r2, r2, #1
	ldr	r1, [fp, #-96]
	add	r2, r1, r2
	strh	r3, [r2]	@ movhi
	ldr	r3, [fp, #-228]
	add	r3, r3, #1
	str	r3, [fp, #-228]
.L171:
	ldr	r2, [fp, #-228]
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	blt	.L174
.L166:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L175
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	bne	.L176
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L177
.L176:
	ldr	r3, [fp, #-92]
	mvn	r2, #1
	strh	r2, [r3]	@ movhi
.L177:
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bgt	.L178
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L179
.L178:
	ldr	r3, [fp, #-168]
	sub	r3, r3, #-2147483647
	lsl	r3, r3, #1
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-168]
	sub	r3, r3, #-2147483646
	lsl	r3, r3, #1
	ldr	r2, [fp, #-92]
	add	r3, r2, r3
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
	b	.L179
.L191:
	.align	2
.L190:
	.word	.LC97
	.word	triggerw
	.word	doMouse
	.word	label
	.word	toDpyName
	.word	fontName
	.word	defaultFN
	.word	.LC98
	.word	geomStr
	.word	title
	.word	programStr
	.word	.LC99
	.word	.LC100
	.word	.LC101
	.word	doBig
	.word	.LC102
	.word	compRegRight
	.word	compRegLow
	.word	noScale
	.word	compRegUp
	.word	compRegLeft
	.word	doEdge
	.word	.LC103
	.word	pingStr
	.word	doResurface
	.word	doSel
	.word	shadows
	.word	.LC104
.L175:
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	bne	.L180
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L181
.L180:
	ldr	r3, [fp, #-96]
	mvn	r2, #1
	strh	r2, [r3]	@ movhi
.L181:
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	ldr	r2, [fp, #-152]
	cmp	r2, r3
	bgt	.L182
	ldr	r3, .L190+84
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L179
.L182:
	ldr	r3, [fp, #-164]
	sub	r3, r3, #-2147483647
	lsl	r3, r3, #1
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-164]
	sub	r3, r3, #-2147483646
	lsl	r3, r3, #1
	ldr	r2, [fp, #-96]
	add	r3, r2, r3
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
.L179:
	ldr	r3, [fp, #-224]
	add	r3, r3, #1
	str	r3, [fp, #-224]
.L158:
	ldr	r2, [fp, #-224]
	ldr	r3, [fp, #-152]
	cmp	r2, r3
	blt	.L183
	ldr	r0, [fp, #-116]
	bl	free
	ldr	r0, [fp, #-112]
	bl	free
	mov	r3, #0
	str	r3, [sp, #28]
	mov	r3, #0
	str	r3, [sp, #24]
	mov	r3, #0
	str	r3, [sp, #20]
	mov	r3, #1
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-160]
	ldr	r0, [fp, #-184]
	bl	XCreateWindow
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-108]
	str	r2, [r3, #264]
	ldr	r1, [fp, #-108]
	ldr	r0, .L190+88
	bl	printf
	ldr	r1, [fp, #-280]
	ldr	r0, [fp, #-184]
	bl	RefreshPointerMapping
	ldr	r3, .L190+100
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L184
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #268]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #312]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-184]
	str	r2, [r3, #228]
	ldr	r3, [fp, #-280]
	mov	r2, #1
	str	r2, [r3, #232]
	ldr	r3, .L190+92
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-188]
	bl	XInternAtom
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #236]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #240]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-232]
	str	r2, [r3, #244]
	ldr	r3, [fp, #-208]
	orr	r3, r3, #4194304
	str	r3, [fp, #-208]
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-188]
	str	r2, [r3, #248]
	ldr	r3, [fp, #-280]
	mov	r2, #1
	str	r2, [r3, #252]
	ldr	r3, .L190+92
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-184]
	bl	XInternAtom
	mov	r2, r0
	ldr	r3, [fp, #-280]
	str	r2, [r3, #256]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #260]
	mov	r2, #4194304
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-184]
	bl	XSelectInput
	mov	r3, #0
	ldr	r2, [fp, #-108]
	mov	r1, #1
	ldr	r0, [fp, #-184]
	bl	XSetSelectionOwner
.L184:
	ldr	r3, .L190+96
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L185
	ldr	r3, [fp, #-208]
	orr	r3, r3, #65536
	str	r3, [fp, #-208]
.L185:
	ldr	r2, [fp, #-208]
	ldr	r1, [fp, #-232]
	ldr	r0, [fp, #-188]
	bl	XSelectInput
	ldr	r3, [fp, #-280]
	ldr	r2, [fp, #-208]
	str	r2, [r3, #192]
	ldr	r3, .L190+100
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L186
	mov	r3, #0
	ldr	r2, [fp, #-232]
	mov	r1, #1
	ldr	r0, [fp, #-188]
	bl	XSetSelectionOwner
.L186:
	ldr	r1, [fp, #-232]
	ldr	r0, [fp, #-188]
	bl	XMapRaised
	ldr	r0, [fp, #-280]
	bl	DrawWindowText
	ldr	r3, .L190+104
	ldr	r3, [r3]
	str	r3, [fp, #-196]
	b	.L187
.L188:
	ldr	r3, [fp, #-196]
	ldr	r3, [r3, #8]
	mov	r1, #1
	mov	r0, r3
	bl	XTestGrabControl
	ldr	r3, [fp, #-196]
	ldr	r3, [r3]
	str	r3, [fp, #-196]
.L187:
	ldr	r3, [fp, #-196]
	cmp	r3, #0
	bne	.L188
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #92]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #96]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-280]
	mov	r2, #0
	str	r2, [r3, #184]
	nop
	ldr	r3, .L190+108
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L189
	bl	__stack_chk_fail
.L189:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	InitDpyInfo, .-InitDpyInfo
	.section	.rodata
	.align	2
.LC105:
	.ascii	"DMPS Wakup\000"
	.align	2
.LC106:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoWakeUp, %function
DoWakeUp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L205
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r2, fp, #12
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	DPMSQueryExtension
	mov	r3, r0
	cmp	r3, #0
	beq	.L201
	sub	r2, fp, #15
	sub	r3, fp, #14
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	DPMSInfo
	mov	r3, r0
	cmp	r3, #0
	beq	.L202
	ldrb	r3, [fp, #-15]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L203
	ldrh	r3, [fp, #-14]
	cmp	r3, #0
	beq	.L204
	nop
	ldr	r0, .L205+4
	bl	puts
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	DPMSForceLevel
	b	.L192
.L201:
	nop
	b	.L192
.L202:
	nop
	b	.L192
.L203:
	nop
	b	.L192
.L204:
	nop
.L192:
	ldr	r3, .L205
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L199
	bl	__stack_chk_fail
.L199:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L206:
	.align	2
.L205:
	.word	.LC106
	.word	.LC105
	.size	DoWakeUp, .-DoWakeUp
	.section	.rodata
	.align	2
.LC107:
	.ascii	"  LED mask = %lx\012\000"
	.align	2
.LC108:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	KeyboardState, %function
KeyboardState:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	ldr	r3, .L217
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #120
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	XGetKeyboardControl
	ldr	r3, [fp, #-104]
	mov	r1, r3
	ldr	r0, .L217+4
	bl	printf
	ldr	r3, .L217+8
	ldr	r3, [r3]
	str	r3, [fp, #-124]
	b	.L208
.L214:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #8]
	sub	r2, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	XGetKeyboardControl
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L216
	ldr	r3, [fp, #-48]
	mov	r2, r3
	ldr	r3, [fp, #-124]
	str	r2, [r3, #12]
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-48]
	eor	r3, r3, r2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L211
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #8]
	ldr	r1, .L217+12
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-125]
	ldrb	r3, [fp, #-125]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L211
	ldr	r3, [fp, #-124]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-125]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-124]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-125]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-124]
	mov	r2, #1
	str	r2, [r3, #16]
.L211:
	ldr	r2, [fp, #-104]
	ldr	r3, [fp, #-48]
	eor	r3, r3, r2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L212
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #8]
	ldr	r1, .L217+16
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-125]
	ldrb	r3, [fp, #-125]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L212
	ldr	r3, [fp, #-124]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-125]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-124]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-125]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-124]
	mov	r2, #1
	str	r2, [r3, #16]
.L212:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L210
	ldr	r3, [fp, #-124]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-124]
	mov	r2, #0
	str	r2, [r3, #16]
	b	.L210
.L216:
	nop
.L210:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	str	r3, [fp, #-124]
.L208:
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bne	.L214
	nop
	ldr	r3, .L217
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L215
	bl	__stack_chk_fail
.L215:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L218:
	.align	2
.L217:
	.word	.LC108
	.word	.LC107
	.word	shadows
	.word	65509
	.word	65407
	.size	KeyboardState, .-KeyboardState
	.section	.rodata
	.align	2
.LC109:
	.ascii	"  LED mask = %lx(%lx)\012\000"
	.align	2
.LC110:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RestoreKeyboardState, %function
RestoreKeyboardState:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L229
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L229+4
	ldr	r3, [r3]
	str	r3, [fp, #-68]
	b	.L220
.L226:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	sub	r2, fp, #64
	mov	r1, r2
	mov	r0, r3
	bl	XGetKeyboardControl
	ldr	r1, [fp, #-48]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	mov	r2, r3
	ldr	r0, .L229+8
	bl	printf
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	beq	.L228
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	eor	r3, r3, r2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L223
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	ldr	r1, .L229+12
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-69]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L223
	ldr	r3, [fp, #-68]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-69]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-68]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-69]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-68]
	mov	r2, #1
	str	r2, [r3, #16]
.L223:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #12]
	mov	r2, r3
	ldr	r3, [fp, #-48]
	eor	r3, r3, r2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L224
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	ldr	r1, .L229+16
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-69]
	ldrb	r3, [fp, #-69]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L224
	ldr	r3, [fp, #-68]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-69]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-68]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-69]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-68]
	mov	r2, #1
	str	r2, [r3, #16]
.L224:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L222
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-68]
	mov	r2, #0
	str	r2, [r3, #16]
	b	.L222
.L228:
	nop
.L222:
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	str	r3, [fp, #-68]
.L220:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L226
	nop
	ldr	r3, .L229
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L227
	bl	__stack_chk_fail
.L227:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L230:
	.align	2
.L229:
	.word	.LC110
	.word	shadows
	.word	.LC109
	.word	65509
	.word	65407
	.size	RestoreKeyboardState, .-RestoreKeyboardState
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bad_window_handler, %function
bad_window_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	bad_window_handler, .-bad_window_handler
	.section	.rodata
	.align	2
.LC111:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoDPMSForceLevel, %function
DoDPMSForceLevel:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	mov	r3, r1
	strh	r3, [fp, #-28]	@ movhi
	ldr	r3, .L240
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	cmn	r3, #1
	bne	.L234
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	sub	r2, fp, #12
	sub	r1, fp, #16
	mov	r0, r3
	bl	DPMSQueryExtension
	mov	r3, r0
	cmp	r3, #0
	beq	.L235
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3, #20]
	b	.L234
.L235:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #20]
.L234:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L239
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldrh	r2, [fp, #-28]
	mov	r1, r2
	mov	r0, r3
	bl	DPMSForceLevel
.L239:
	nop
	ldr	r3, .L240
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L238
	bl	__stack_chk_fail
.L238:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L241:
	.align	2
.L240:
	.word	.LC111
	.size	DoDPMSForceLevel, .-DoDPMSForceLevel
	.section	.rodata
	.align	2
.LC112:
	.ascii	"connecting\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoConnect, %function
DoConnect:
	@ 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]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #184]
	cmp	r3, #0
	bne	.L252
	ldr	r3, .L253
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L245
.L246:
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	DoDPMSForceLevel
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
.L245:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L246
	ldr	r0, .L253+4
	bl	puts
	ldr	r3, [fp, #-40]
	mov	r2, #2
	str	r2, [r3, #188]
	ldr	r3, [fp, #-40]
	add	r1, r3, #20
	ldr	r3, [fp, #-40]
	add	r3, r3, #24
	mov	r2, r3
	ldr	r0, [fp, #-28]
	bl	XGetInputFocus
	mov	r3, #0
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	XSetInputFocus
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	XSync
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #80]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #92]
	cmp	r3, #0
	beq	.L247
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #80]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #92]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #96]
	str	r3, [fp, #-12]
	ldr	r0, .L253+8
	bl	XSetErrorHandler
	str	r0, [fp, #-8]
	mov	r3, #0
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSetInputFocus
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	XSync
	ldr	r0, [fp, #-8]
	bl	XSetErrorHandler
.L247:
	ldr	r3, .L253
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L248
.L249:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	DoWakeUp
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
.L248:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L249
	ldr	r3, .L253+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L250
	ldr	r0, [fp, #-28]
	bl	KeyboardState
.L250:
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	XSync
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L251
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	XMapRaised
.L251:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #40]
	mov	r2, #0
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #76
	mov	r2, #1
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	XGrabPointer
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #1
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	XGrabKeyboard
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #192]
	orr	r3, r3, #64
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	XSelectInput
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	XSync
	b	.L242
.L252:
	nop
.L242:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L254:
	.align	2
.L253:
	.word	shadows
	.word	.LC112
	.word	bad_window_handler
	.word	doAutoUp
	.size	DoConnect, .-DoConnect
	.section	.rodata
	.align	2
.LC113:
	.ascii	"disconnecting\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DoDisconnect, %function
DoDisconnect:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #80]
	str	r3, [fp, #-28]
	ldr	r0, .L263
	bl	puts
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3, #188]
	ldr	r3, [fp, #-40]
	add	r1, r3, #92
	ldr	r3, [fp, #-40]
	add	r3, r3, #96
	mov	r2, r3
	ldr	r0, [fp, #-28]
	bl	XGetInputFocus
	mov	r3, #0
	mov	r2, #0
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	XSetInputFocus
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	XSync
	ldr	r0, [fp, #-32]
	bl	XFlush
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L256
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-16]
	ldr	r0, .L263+4
	bl	XSetErrorHandler
	str	r0, [fp, #-12]
	mov	r3, #0
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	XSetInputFocus
	mov	r1, #0
	ldr	r0, [fp, #-24]
	bl	XSync
	ldr	r0, [fp, #-12]
	bl	XSetErrorHandler
.L256:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L257
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	XUnmapWindow
.L257:
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	XUngrabKeyboard
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	XUngrabPointer
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #192]
	mov	r2, r3
	ldr	r0, [fp, #-32]
	bl	XSelectInput
	ldr	r3, .L263+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L258
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bne	.L259
	ldr	r3, [fp, #-40]
	add	r3, r3, #228
	b	.L260
.L259:
	ldr	r3, [fp, #-40]
	add	r3, r3, #248
.L260:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L258
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	mov	r3, #0
	mov	r1, #1
	ldr	r0, [fp, #-32]
	bl	XSetSelectionOwner
.L258:
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	XSync
	ldr	r3, .L263+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L262
	ldr	r0, [fp, #-40]
	bl	FakeThingsUp
	bl	RestoreKeyboardState
.L262:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L264:
	.align	2
.L263:
	.word	.LC113
	.word	bad_window_handler
	.word	doSel
	.word	doAutoUp
	.size	DoDisconnect, .-DoDisconnect
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RegisterEventHandlers, %function
RegisterEventHandlers:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	ldr	r3, .L269
	mov	r2, #6
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+4
	mov	r2, #12
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+8
	mov	r2, #7
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+12
	mov	r2, #4
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+16
	mov	r2, #5
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+20
	mov	r2, #2
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+20
	mov	r2, #3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+24
	mov	r2, #22
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+28
	mov	r2, #33
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+32
	mov	r2, #34
	mov	r1, #0
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L266
	ldr	r3, .L269+40
	mov	r2, #15
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
.L266:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #80]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #264]
	str	r3, [fp, #-8]
	ldr	r3, .L269+32
	mov	r2, #34
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	XSaveContext
	ldr	r3, .L269+44
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L268
	ldr	r3, .L269+48
	mov	r2, #30
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+52
	mov	r2, #28
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+56
	mov	r2, #31
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+60
	mov	r2, #29
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-20]
	bl	XSaveContext
	ldr	r3, .L269+48
	mov	r2, #30
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	XSaveContext
	ldr	r3, .L269+52
	mov	r2, #28
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	XSaveContext
	ldr	r3, .L269+56
	mov	r2, #31
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	XSaveContext
	ldr	r3, .L269+60
	mov	r2, #29
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	XSaveContext
.L268:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L270:
	.align	2
.L269:
	.word	ProcessMotionNotify
	.word	ProcessExpose
	.word	ProcessEnterNotify
	.word	ProcessButtonPress
	.word	ProcessButtonRelease
	.word	ProcessKeyEvent
	.word	ProcessConfigureNotify
	.word	ProcessClientMessage
	.word	ProcessMapping
	.word	doResurface
	.word	ProcessVisibility
	.word	doSel
	.word	ProcessSelectionRequest
	.word	ProcessPropertyNotify
	.word	ProcessSelectionNotify
	.word	ProcessSelectionClear
	.size	RegisterEventHandlers, .-RegisterEventHandlers
	.section	.rodata
	.align	2
.LC114:
	.ascii	"no handler for window 0x%x, event type %d\012\000"
	.align	2
.LC115:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessEvent, %function
ProcessEvent:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L277
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #104
	str	r3, [fp, #-108]
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	XNextEvent
	mov	r3, #0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-108]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-108]
	ldr	r2, [r3]
	sub	r3, fp, #112
	ldr	r0, [fp, #-120]
	bl	XFindContext
	mov	r3, r0
	cmp	r3, #0
	beq	.L272
	ldr	r3, [fp, #-108]
	ldr	r2, [r3]
	sub	r3, fp, #112
	mov	r1, #0
	ldr	r0, [fp, #-120]
	bl	XFindContext
	mov	r3, r0
	cmp	r3, #0
	bne	.L273
.L272:
	ldr	r3, [fp, #-112]
	sub	r2, fp, #104
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	blx	r3
	mov	r3, r0
	b	.L275
.L273:
	ldr	r3, [fp, #-108]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-108]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L277+4
	bl	printf
	mov	r3, #0
.L275:
	ldr	r2, .L277
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L276
	bl	__stack_chk_fail
.L276:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L278:
	.align	2
.L277:
	.word	.LC115
	.word	.LC114
	.size	ProcessEvent, .-ProcessEvent
	.section	.rodata
	.align	2
.LC116:
	.ascii	"sj: Call XTestFakeMotionEvent %d/%d to %d/%d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessMotionNotify, %function
ProcessMotionNotify:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #68]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #196]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L280
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	b	.L281
.L280:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #40]
.L281:
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	bne	.L282
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #72]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L283
	mvn	r3, #1
	b	.L284
.L283:
	mvn	r3, #0
.L284:
	str	r3, [fp, #-28]
	b	.L285
.L282:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L286
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #208]
	b	.L287
.L286:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #204]
.L287:
	ldr	r2, [fp, #-36]
	lsl	r2, r2, #2
	add	r3, r3, r2
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #72]
	ldr	r3, [fp, #-24]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L288
	ldr	r3, [fp, #-20]
	rsb	r3, r3, #0
	str	r3, [fp, #-20]
.L288:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #76]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L285
	mov	r3, #0
	b	.L289
.L285:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L290
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	cmn	r3, #1
	bne	.L291
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #200]
	sub	r3, r3, #1
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	beq	.L292
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #196]
	add	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3, #196]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #196]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #220]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L293
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #208]
	b	.L294
.L293:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #204]
.L294:
	ldr	r2, [fp, #-36]
	lsl	r2, r2, #2
	add	r3, r3, r2
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [fp, #-28]
	b	.L295
.L292:
	ldr	r3, .L319
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L296
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	and	r3, r3, #7936
	cmp	r3, #0
	beq	.L296
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L297
.L296:
	ldr	r0, [fp, #-44]
	bl	DoDisconnect
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #216]
	str	r3, [fp, #-24]
.L297:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L298
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #208]
	b	.L299
.L298:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #204]
.L299:
	ldr	r2, [fp, #-36]
	lsl	r2, r2, #2
	add	r3, r3, r2
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #212]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [fp, #-28]
	b	.L295
.L291:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L300
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #196]
	sub	r2, r3, #1
	ldr	r3, [fp, #-44]
	str	r2, [r3, #196]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #196]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #224]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L301
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #208]
	b	.L302
.L301:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #204]
.L302:
	ldr	r2, [fp, #-36]
	lsl	r2, r2, #2
	add	r3, r3, r2
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [fp, #-28]
	b	.L295
.L300:
	ldr	r3, .L319
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L303
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	and	r3, r3, #7936
	cmp	r3, #0
	beq	.L303
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L304
.L303:
	ldr	r0, [fp, #-44]
	bl	DoDisconnect
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #216]
	str	r3, [fp, #-24]
.L304:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L305
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #208]
	b	.L306
.L305:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #204]
.L306:
	ldr	r2, [fp, #-36]
	lsl	r2, r2, #2
	add	r3, r3, r2
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #212]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [fp, #-28]
.L295:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L290
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-44]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L307
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #40]
	b	.L308
.L307:
	ldr	r3, [fp, #-24]
.L308:
	ldr	r2, [fp, #-12]
	cmp	r2, #0
	bne	.L309
	ldr	r2, [fp, #-48]
	ldr	r2, [r2, #44]
	b	.L310
.L309:
	ldr	r2, [fp, #-24]
.L310:
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r1
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	XWarpPointer
	ldr	r0, [fp, #-8]
	bl	XFlush
.L290:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #72]
	ldr	r3, .L319+4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	b	.L311
.L318:
	ldr	r3, .L319+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L312
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	DoDPMSForceLevel
.L312:
	ldr	r3, .L319+12
	ldr	r1, [r3]
	add	r3, r1, #1
	ldr	r2, .L319+12
	str	r3, [r2]
	ldr	r3, .L319+16
	umull	r2, r3, r1, r3
	lsr	r2, r3, #3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L313
	ldr	r3, [fp, #-48]
	ldr	r1, [r3, #40]
	ldr	r3, [fp, #-48]
	ldr	r0, [r3, #44]
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #204]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #40]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	ip, r3
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #208]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r0
	ldr	r0, .L319+20
	bl	debug_cmpreg
.L313:
	ldr	r3, [fp, #-32]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L314
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #204]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #40]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	mov	r1, r3
	b	.L315
.L314:
	ldr	r1, [fp, #-28]
.L315:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L316
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #208]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #44]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrsh	r3, [r3]
	b	.L317
.L316:
	ldr	r3, [fp, #-28]
.L317:
	mov	r2, #0
	str	r2, [sp]
	mov	r2, r1
	ldr	r1, [fp, #-36]
	bl	XTestFakeMotionEvent
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-32]
.L311:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L318
	mov	r3, #0
.L289:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L320:
	.align	2
.L319:
	.word	doBtnBlock
	.word	shadows
	.word	doDpmsMouse
	.word	lc.12209
	.word	-858993459
	.word	.LC116
	.size	ProcessMotionNotify, .-ProcessMotionNotify
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessExpose, %function
ProcessExpose:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	mov	r1, r3
	mov	r0, r2
	bl	XClearWindow
	ldr	r0, [fp, #-12]
	bl	DrawWindowText
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ProcessExpose, .-ProcessExpose
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	DrawWindowText, %function
DrawWindowText:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	beq	.L330
	ldr	r3, [fp, #-32]
	ldr	r6, [r3]
	ldr	r3, [fp, #-32]
	ldr	r7, [r3, #12]
	ldr	r3, [fp, #-32]
	ldr	r8, [r3, #28]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #56]
	sub	r3, r2, r3
	cmn	r3, #1
	blt	.L326
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #56]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r9, r3
	b	.L327
.L326:
	mov	r9, #0
.L327:
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #60]
	sub	r3, r2, r3
	cmn	r3, #1
	blt	.L328
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #60]
	sub	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	b	.L329
.L328:
	mov	r2, #0
.L329:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #64]
	add	r4, r2, r3
	ldr	r3, .L331
	ldr	r5, [r3]
	ldr	r3, .L331
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [sp, #8]
	str	r5, [sp, #4]
	str	r4, [sp]
	mov	r3, r9
	mov	r2, r8
	mov	r1, r7
	mov	r0, r6
	bl	XDrawImageString
	b	.L323
.L330:
	nop
.L323:
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L332:
	.align	2
.L331:
	.word	label
	.size	DrawWindowText, .-DrawWindowText
	.section	.rodata
	.align	2
.LC117:
	.ascii	"ProcessEnterNotify call ProcessMotionNotify with %d"
	.ascii	" %d\012\000"
	.align	2
.LC118:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessEnterNotify, %function
ProcessEnterNotify:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	str	r2, [fp, #-88]
	ldr	r3, .L343
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-88]
	ldr	r2, [r3, #40]
	ldr	r3, .L343+4
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L334
	ldr	r3, .L343+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	str	r2, [r3, #40]
.L334:
	ldr	r3, [fp, #-88]
	ldr	r2, [r3, #40]
	ldr	r3, .L343+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L335
	ldr	r3, .L343+8
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	str	r2, [r3, #40]
.L335:
	ldr	r3, [fp, #-88]
	ldr	r2, [r3, #44]
	ldr	r3, .L343+12
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L336
	ldr	r3, .L343+12
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	str	r2, [r3, #44]
.L336:
	ldr	r3, [fp, #-88]
	ldr	r2, [r3, #44]
	ldr	r3, .L343+16
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L337
	ldr	r3, .L343+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-88]
	str	r2, [r3, #44]
.L337:
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L338
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #188]
	cmp	r3, #0
	bne	.L338
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	cmp	r2, r3
	bne	.L338
	ldr	r0, [fp, #-84]
	bl	DoConnect
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	beq	.L339
	ldr	r3, [fp, #-84]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #40]
	ldr	r2, [fp, #-84]
	ldr	r2, [r2, #212]
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r1
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	XWarpPointer
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-84]
	ldr	r2, [r3, #212]
	ldr	r3, [fp, #-84]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #72]
	str	r3, [fp, #-24]
	b	.L340
.L339:
	ldr	r3, [fp, #-84]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #212]
	ldr	r2, [fp, #-88]
	ldr	r2, [r2, #44]
	str	r2, [sp, #16]
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, r1
	mov	r1, #0
	ldr	r0, [fp, #-72]
	bl	XWarpPointer
	ldr	r3, [fp, #-84]
	ldr	r2, [r3, #212]
	ldr	r3, [fp, #-84]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-84]
	ldr	r3, [r3, #72]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-88]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-24]
.L340:
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L343+20
	bl	debug_cmpreg
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, [fp, #-84]
	mov	r0, #0
	bl	ProcessMotionNotify
.L338:
	mov	r3, #0
	ldr	r2, .L343
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L342
	bl	__stack_chk_fail
.L342:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L344:
	.align	2
.L343:
	.word	.LC118
	.word	compRegLeft
	.word	compRegRight
	.word	compRegUp
	.word	compRegLow
	.word	.LC117
	.size	ProcessEnterNotify, .-ProcessEnterNotify
	.section	.rodata
	.align	2
.LC119:
	.ascii	"awaiting button release before connecting\000"
	.align	2
.LC120:
	.ascii	"Got button %d, max is %d (%d)\012\000"
	.align	2
.LC121:
	.ascii	"Mapped!\000"
	.align	2
.LC122:
	.ascii	"Button %d is mapped, sending keys: \000"
	.align	2
.LC123:
	.ascii	" (0x%04X)\000"
	.align	2
.LC124:
	.ascii	" (no code)\000"
	.align	2
.LC125:
	.ascii	"from button %d down, to button %d down\012\000"
	.align	2
.LC126:
	.ascii	"unknown button %d\012\000"
	.align	2
.LC127:
	.ascii	"awaiting button release before disconnecting\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessButtonPress, %function
ProcessButtonPress:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #188]
	cmp	r3, #0
	beq	.L346
	cmp	r3, #2
	beq	.L347
	b	.L349
.L346:
	ldr	r3, [fp, #-36]
	mov	r2, #1
	str	r2, [r3, #188]
	ldr	r0, .L373
	bl	puts
	b	.L349
.L347:
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #52]
	ldr	r3, .L373+4
	ldr	r3, [r3]
	mov	r2, #20
	ldr	r0, .L373+8
	bl	printf
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	cmp	r3, #20
	bhi	.L350
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #52]
	ldr	r1, .L373+12
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L350
	ldr	r0, .L373+16
	bl	puts
	ldr	r3, .L373+20
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L351
.L356:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	mov	r1, r3
	ldr	r0, .L373+24
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L352
.L355:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-25]
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L353
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-25]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-25]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldrb	r3, [fp, #-25]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L373+28
	bl	printf
	b	.L354
.L353:
	ldr	r0, .L373+32
	bl	printf
.L354:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L352:
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #52]
	ldr	r1, .L373+12
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r1, r3, lsl #2]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L355
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L351:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L356
	b	.L357
.L350:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	ldr	r2, .L373+4
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L357
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	ldr	r2, [fp, #-36]
	add	r3, r3, #24
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, .L373+20
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L358
.L359:
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #8]
	mov	r3, #0
	mov	r2, #1
	ldr	r1, [fp, #-8]
	bl	XTestFakeButtonEvent
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L373+36
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L358:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L359
	ldr	r3, .L373+40
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L357
	mov	r3, #1
	ldr	r2, [fp, #-8]
	mov	r1, #1
	ldr	r0, [fp, #-36]
	bl	FakeAction
.L357:
	ldr	r3, .L373+44
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L371
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #48]
	and	r3, r3, #7936
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L361
.L363:
	.word	.L367
	.word	.L366
	.word	.L365
	.word	.L364
	.word	.L362
.L367:
	ldr	r3, [fp, #-24]
	bic	r3, r3, #256
	str	r3, [fp, #-24]
	b	.L368
.L366:
	ldr	r3, [fp, #-24]
	bic	r3, r3, #512
	str	r3, [fp, #-24]
	b	.L368
.L365:
	ldr	r3, [fp, #-24]
	bic	r3, r3, #1024
	str	r3, [fp, #-24]
	b	.L368
.L364:
	ldr	r3, [fp, #-24]
	bic	r3, r3, #2048
	str	r3, [fp, #-24]
	b	.L368
.L362:
	ldr	r3, [fp, #-24]
	bic	r3, r3, #4096
	str	r3, [fp, #-24]
	b	.L368
.L361:
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #52]
	mov	r1, r3
	ldr	r0, .L373+48
	bl	printf
	nop
.L368:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L372
	ldr	r0, .L373+52
	bl	puts
	ldr	r3, [fp, #-36]
	mov	r2, #3
	str	r2, [r3, #188]
	b	.L372
.L371:
	nop
	b	.L349
.L372:
	nop
.L349:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L374:
	.align	2
.L373:
	.word	.LC119
	.word	nButtons
	.word	.LC120
	.word	buttonmap
	.word	.LC121
	.word	shadows
	.word	.LC122
	.word	.LC123
	.word	.LC124
	.word	.LC125
	.word	doAutoUp
	.word	doEdge
	.word	.LC126
	.word	.LC127
	.size	ProcessButtonPress, .-ProcessButtonPress
	.section	.rodata
	.align	2
.LC128:
	.ascii	"from button %d up, to button %d up\012\000"
	.align	2
.LC129:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessButtonRelease, %function
ProcessButtonRelease:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	str	r2, [fp, #-96]
	ldr	r3, .L397
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #188]
	cmp	r3, #2
	beq	.L376
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #188]
	cmp	r3, #3
	bne	.L377
.L376:
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #52]
	ldr	r2, .L397+4
	ldr	r2, [r2]
	cmp	r3, r2
	bhi	.L377
	ldr	r3, [fp, #-96]
	ldr	r2, [r3, #52]
	ldr	r1, .L397+8
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #2
	mov	r2, r3
	add	r3, r1, r2
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L377
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #52]
	ldr	r2, [fp, #-92]
	add	r3, r3, #24
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-72]
	ldr	r3, .L397+12
	ldr	r3, [r3]
	str	r3, [fp, #-76]
	b	.L378
.L379:
	ldr	r3, [fp, #-76]
	ldr	r0, [r3, #8]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-72]
	bl	XTestFakeButtonEvent
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #52]
	ldr	r2, [fp, #-72]
	mov	r1, r3
	ldr	r0, .L397+16
	bl	printf
	ldr	r3, [fp, #-76]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-76]
	ldr	r3, [r3]
	str	r3, [fp, #-76]
.L378:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bne	.L379
	ldr	r3, .L397+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L377
	mov	r3, #0
	ldr	r2, [fp, #-72]
	mov	r1, #1
	ldr	r0, [fp, #-92]
	bl	FakeAction
.L377:
	ldr	r3, .L397+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L380
	mov	r3, #0
	b	.L395
.L380:
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #188]
	cmp	r3, #1
	beq	.L382
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #188]
	cmp	r3, #3
	bne	.L383
.L382:
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #48]
	and	r3, r3, #7936
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #52]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L384
.L386:
	.word	.L390
	.word	.L389
	.word	.L388
	.word	.L387
	.word	.L385
.L390:
	ldr	r3, [fp, #-80]
	bic	r3, r3, #256
	str	r3, [fp, #-80]
	b	.L391
.L389:
	ldr	r3, [fp, #-80]
	bic	r3, r3, #512
	str	r3, [fp, #-80]
	b	.L391
.L388:
	ldr	r3, [fp, #-80]
	bic	r3, r3, #1024
	str	r3, [fp, #-80]
	b	.L391
.L387:
	ldr	r3, [fp, #-80]
	bic	r3, r3, #2048
	str	r3, [fp, #-80]
	b	.L391
.L385:
	ldr	r3, [fp, #-80]
	bic	r3, r3, #4096
	str	r3, [fp, #-80]
	b	.L391
.L384:
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #52]
	mov	r1, r3
	ldr	r0, .L397+28
	bl	printf
	nop
.L391:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L383
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #188]
	cmp	r3, #1
	bne	.L392
	ldr	r0, [fp, #-92]
	bl	DoConnect
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #68]
	cmp	r3, #0
	beq	.L393
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #40]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-96]
	ldr	r2, [r3, #44]
	ldr	r3, [fp, #-92]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #72]
	str	r3, [fp, #-24]
	b	.L394
.L393:
	ldr	r3, [fp, #-96]
	ldr	r2, [r3, #40]
	ldr	r3, [fp, #-92]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-92]
	ldr	r3, [r3, #72]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-96]
	ldr	r3, [r3, #44]
	str	r3, [fp, #-24]
.L394:
	mov	r3, #1
	str	r3, [fp, #-12]
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, [fp, #-92]
	mov	r0, #0
	bl	ProcessMotionNotify
	b	.L383
.L392:
	ldr	r0, [fp, #-92]
	bl	DoDisconnect
.L383:
	mov	r3, #0
.L395:
	ldr	r2, .L397
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L396
	bl	__stack_chk_fail
.L396:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L398:
	.align	2
.L397:
	.word	.LC129
	.word	nButtons
	.word	buttonmap
	.word	shadows
	.word	.LC128
	.word	doAutoUp
	.word	doEdge
	.word	.LC126
	.size	ProcessButtonRelease, .-ProcessButtonRelease
	.section	.rodata
	.align	2
.LC130:
	.ascii	"pressed\000"
	.align	2
.LC131:
	.ascii	"released\000"
	.align	2
.LC132:
	.ascii	"key '%s' %s (state=0x%x)\012\000"
	.align	2
.LC133:
	.ascii	"DoFakeShift %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessKeyEvent, %function
ProcessKeyEvent:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-44]
	ldr	r0, [r3]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #52]
	and	r1, r3, #255
	mov	r3, #0
	mov	r2, #0
	bl	XkbKeycodeToKeysym
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	cmp	r3, #2
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	XKeysymToString
	mov	r1, r0
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L400
	ldr	r2, .L428
	b	.L401
.L400:
	ldr	r2, .L428+4
.L401:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	ldr	r0, .L428+8
	bl	printf
	ldr	r3, .L428+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L402
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L402
	ldr	r3, [fp, #-16]
	ldr	r2, .L428+16
	cmp	r3, r2
	beq	.L403
	ldr	r3, [fp, #-16]
	ldr	r2, .L428+20
	cmp	r3, r2
	bne	.L404
.L403:
	mov	r3, #0
	b	.L405
.L404:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	and	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #64
	bls	.L406
	ldr	r3, [fp, #-16]
	cmp	r3, #90
	bls	.L407
.L406:
	ldr	r3, [fp, #-16]
	cmp	r3, #96
	bls	.L408
	ldr	r3, [fp, #-16]
	cmp	r3, #122
	bhi	.L408
.L407:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-20]
.L408:
	ldr	r1, [fp, #-20]
	ldr	r0, .L428+24
	bl	printf
.L402:
	ldr	r3, .L428+28
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L409
.L412:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L427
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L409:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L412
	b	.L411
.L427:
	nop
.L411:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L413
	ldr	r3, .L428+32
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	b	.L414
.L418:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	ldr	r1, .L428+16
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L415
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L416
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-30]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
.L416:
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-29]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-29]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L417
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-30]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
.L417:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3, #16]
.L415:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
.L414:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L418
	b	.L419
.L413:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L420
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L420
	mov	r3, #1
	b	.L421
.L420:
	mov	r3, #0
.L421:
	str	r3, [fp, #-8]
	ldr	r3, .L428+32
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	b	.L422
.L426:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	ldr	r1, .L428+16
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-30]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-29]
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L423
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L424
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L424
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-30]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	bl	XTestFakeKeyEvent
.L424:
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-29]	@ zero_extendqisi2
	mov	r3, #0
	ldr	r2, [fp, #-12]
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L425
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L425
	ldr	r3, [fp, #-28]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-30]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
.L425:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3, #16]
.L423:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
.L422:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L426
	ldr	r3, .L428+36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L419
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	FakeAction
.L419:
	mov	r3, #0
.L405:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L429:
	.align	2
.L428:
	.word	.LC130
	.word	.LC131
	.word	.LC132
	.word	doCapsLkHack
	.word	65505
	.word	65506
	.word	.LC133
	.word	stickies
	.word	shadows
	.word	doAutoUp
	.size	ProcessKeyEvent, .-ProcessKeyEvent
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessConfigureNotify, %function
ProcessConfigureNotify:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #44]
	cmp	r3, #0
	beq	.L431
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #32]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #48]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #36]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #52]
.L431:
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ProcessConfigureNotify, .-ProcessConfigureNotify
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessClientMessage, %function
ProcessClientMessage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #32]
	cmp	r2, r3
	bne	.L434
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #28]
	ldr	r2, [fp, #-12]
	ldr	r2, [r2, #36]
	cmp	r3, r2
	bne	.L434
	mov	r3, #1
	b	.L436
.L434:
	mov	r3, #0
.L436:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ProcessClientMessage, .-ProcessClientMessage
	.section	.rodata
	.align	2
.LC134:
	.ascii	"selection request\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessSelectionRequest, %function
ProcessSelectionRequest:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L438
	ldr	r3, [fp, #-28]
	add	r3, r3, #228
	b	.L439
.L438:
	ldr	r3, [fp, #-28]
	add	r3, r3, #248
.L439:
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L440
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-16]
	b	.L441
.L440:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #84]
	str	r3, [fp, #-16]
.L441:
	ldr	r0, .L449
	bl	puts
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L442
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #24]
	cmp	r3, #1
	bne	.L442
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	cmp	r3, #68
	bls	.L443
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #28]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L443
.L442:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r0, [fp, #-32]
	bl	SendSelectionNotify
	b	.L444
.L443:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L445
	ldr	r3, [fp, #-28]
	add	r3, r3, #228
	b	.L446
.L445:
	ldr	r3, [fp, #-28]
	add	r3, r3, #248
.L446:
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	SendPing
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #268]
	cmp	r3, #0
	beq	.L447
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3, #304]
	ldr	r3, [fp, #-28]
	add	r3, r3, #272
	mov	r0, r3
	bl	SendSelectionNotify
.L447:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #268]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-32]
	add	ip, r3, #272
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
.L444:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L450:
	.align	2
.L449:
	.word	.LC134
	.size	ProcessSelectionRequest, .-ProcessSelectionRequest
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendPing, %function
SendPing:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L453
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #8]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #2
	str	r3, [sp, #4]
	mov	r3, #8
	str	r3, [sp]
	mov	r3, #1
	ldr	r0, [fp, #-8]
	bl	XChangeProperty
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3, #12]
.L453:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	SendPing, .-SendPing
	.section	.rodata
	.align	2
.LC135:
	.ascii	"property notify\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessPropertyNotify, %function
ProcessPropertyNotify:
	@ args = 0, 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]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L455
	ldr	r3, [fp, #-20]
	add	r3, r3, #228
	b	.L456
.L455:
	ldr	r3, [fp, #-20]
	add	r3, r3, #248
.L456:
	str	r3, [fp, #-8]
	ldr	r0, .L463
	bl	puts
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bne	.L457
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #2
	bne	.L458
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	XSetSelectionOwner
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	XSync
	b	.L457
.L458:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #268]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L457
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #312]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #24]
	cmp	r2, r3
	bne	.L459
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	SendPing
	b	.L457
.L459:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #300]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L460
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #84]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L460
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	b	.L461
.L460:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #80]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L461
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L461
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #84]
	str	r3, [fp, #-12]
.L461:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #312]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #296]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #24]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #1
	ldr	r2, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	XConvertSelection
.L457:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L464:
	.align	2
.L463:
	.word	.LC135
	.size	ProcessPropertyNotify, .-ProcessPropertyNotify
	.section	.rodata
	.align	2
.LC136:
	.ascii	"selection notify\000"
	.align	2
.LC137:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessSelectionNotify, %function
ProcessSelectionNotify:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #92
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L480
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L480+4
	bl	puts
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L466
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-24]
	b	.L467
.L466:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #84]
	str	r3, [fp, #-24]
.L467:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #268]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L468
	ldr	r3, [fp, #-60]
	ldr	r2, [r3, #312]
	ldr	r3, [fp, #-64]
	ldr	r3, [r3, #32]
	cmp	r2, r3
	bne	.L468
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #16]
	sub	r3, fp, #32
	str	r3, [sp, #28]
	sub	r3, fp, #36
	str	r3, [sp, #24]
	sub	r3, fp, #40
	str	r3, [sp, #20]
	sub	r3, fp, #44
	str	r3, [sp, #16]
	sub	r3, fp, #48
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #1024
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-56]
	bl	XGetWindowProperty
	mov	r3, r0
	cmp	r3, #0
	bne	.L469
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L469
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L469
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L469
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L469
	ldr	r3, [fp, #-48]
	cmp	r3, #68
	bls	.L470
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L469
.L470:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L471
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L469
.L471:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	XFree
	ldr	r3, [fp, #-64]
	ldr	r1, [r3, #16]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1024
	add	r3, r3, #1
	mov	r2, r3
	sub	r3, fp, #32
	str	r3, [sp, #28]
	sub	r3, fp, #36
	str	r3, [sp, #24]
	sub	r3, fp, #40
	str	r3, [sp, #20]
	sub	r3, fp, #44
	str	r3, [sp, #16]
	sub	r3, fp, #48
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-56]
	bl	XGetWindowProperty
	mov	r3, r0
	cmp	r3, #0
	bne	.L472
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	beq	.L472
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L472
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L472
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L472
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L472
	mov	r3, #1
	b	.L473
.L472:
	mov	r3, #0
.L473:
	str	r3, [fp, #-28]
.L469:
	ldr	r3, [fp, #-60]
	add	r3, r3, #272
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L474
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L475
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	bne	.L476
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #84]
	str	r3, [fp, #-48]
	b	.L475
.L476:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-48]
.L475:
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-20]
	ldr	ip, [r3, #32]
	ldr	lr, [fp, #-48]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-32]
	ldr	r4, [fp, #-40]
	str	r4, [sp, #12]
	str	r2, [sp, #8]
	mov	r2, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	bl	XChangeProperty
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	XFree
	ldr	r0, [fp, #-20]
	bl	SendSelectionNotify
	b	.L477
.L474:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3, #32]
	ldr	r0, [fp, #-20]
	bl	SendSelectionNotify
.L477:
	ldr	r3, [fp, #-60]
	mov	r2, #0
	str	r2, [r3, #268]
.L468:
	mov	r3, #0
	ldr	r2, .L480
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L479
	bl	__stack_chk_fail
.L479:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L481:
	.align	2
.L480:
	.word	.LC137
	.word	.LC136
	.size	ProcessSelectionNotify, .-ProcessSelectionNotify
	.section	.rodata
	.align	2
.LC138:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	SendSelectionNotify, %function
SendSelectionNotify:
	@ 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, .L484
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #31
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #36]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-48]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-48]
	ldr	r1, [r3, #20]
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	XSendEvent
	nop
	ldr	r3, .L484
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L483
	bl	__stack_chk_fail
.L483:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L485:
	.align	2
.L484:
	.word	.LC138
	.size	SendSelectionNotify, .-SendSelectionNotify
	.section	.rodata
	.align	2
.LC139:
	.ascii	"selection clear\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessSelectionClear, %function
ProcessSelectionClear:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, .L493
	bl	puts
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #20]
	cmp	r3, #1
	bne	.L487
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L488
	ldr	r3, [fp, #-28]
	add	r3, r3, #228
	b	.L489
.L488:
	ldr	r3, [fp, #-28]
	add	r3, r3, #248
.L489:
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L490
	ldr	r3, [fp, #-28]
	add	r3, r3, #228
	b	.L491
.L490:
	ldr	r3, [fp, #-28]
	add	r3, r3, #248
.L491:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #2
	str	r2, [r3, #4]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	SendPing
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #268]
	cmp	r3, #0
	beq	.L487
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3, #304]
	ldr	r3, [fp, #-28]
	add	r3, r3, #272
	mov	r0, r3
	bl	SendSelectionNotify
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3, #268]
.L487:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L494:
	.align	2
.L493:
	.word	.LC139
	.size	ProcessSelectionClear, .-ProcessSelectionClear
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessVisibility, %function
ProcessVisibility:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L496
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	XRaiseWindow
.L496:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ProcessVisibility, .-ProcessVisibility
	.section	.rodata
	.align	2
.LC140:
	.ascii	"mapping\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ProcessMapping, %function
ProcessMapping:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, .L504
	bl	puts
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #1
	bgt	.L499
	cmp	r3, #0
	bge	.L500
	b	.L501
.L499:
	cmp	r3, #2
	beq	.L502
	b	.L501
.L500:
	ldr	r0, [fp, #-16]
	bl	XRefreshKeyboardMapping
	b	.L501
.L502:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	RefreshPointerMapping
	nop
.L501:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L505:
	.align	2
.L504:
	.word	.LC140
	.size	ProcessMapping, .-ProcessMapping
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	FakeAction, %function
FakeAction:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L507
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-17]
	b	.L508
.L507:
	ldr	r3, [fp, #-32]
	strb	r3, [fp, #-17]
.L508:
	ldr	r3, [fp, #-24]
	add	r3, r3, #316
	str	r3, [fp, #-16]
	b	.L509
.L511:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L509:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L510
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L511
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L511
.L510:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L512
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L514
	mov	r0, #16
	bl	xmalloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-17]
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L514
.L512:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L514
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	free
.L514:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	FakeAction, .-FakeAction
	.section	.rodata
	.align	2
.LC141:
	.ascii	"key 0x%x up\012\000"
	.align	2
.LC142:
	.ascii	"button %d up\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	FakeThingsUp, %function
FakeThingsUp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #316]
	cmp	r3, #0
	beq	.L516
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #316]
	str	r3, [fp, #-20]
	b	.L517
.L522:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, .L526
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L518
.L521:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L519
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-21]
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L520
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #8]
	ldrb	r1, [fp, #-21]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeKeyEvent
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L526+4
	bl	printf
	b	.L520
.L519:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r1, [r3, #8]
	mov	r3, #0
	mov	r2, #0
	bl	XTestFakeButtonEvent
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, .L526+8
	bl	printf
.L520:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L518:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L521
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-20]
.L517:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L522
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3, #316]
.L516:
	ldr	r3, .L526
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L523
.L525:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L524
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	XFlush
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #16]
.L524:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L523:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L525
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L527:
	.align	2
.L526:
	.word	shadows
	.word	.LC141
	.word	.LC142
	.size	FakeThingsUp, .-FakeThingsUp
	.section	.rodata
	.align	2
.LC143:
	.ascii	"got button mapping: %d items\012\000"
	.align	2
.LC144:
	.ascii	"button %d -> %d\012\000"
	.align	2
.LC145:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	RefreshPointerMapping, %function
RefreshPointerMapping:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L539
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #80]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	bne	.L538
	mov	r3, #1
	str	r3, [fp, #-32]
	b	.L530
.L531:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-32]
	add	r3, r3, #24
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L530:
	ldr	r3, [fp, #-32]
	cmp	r3, #20
	bls	.L531
	sub	r3, fp, #28
	mov	r2, #20
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	XGetPointerMapping
	mov	r3, r0
	cmp	r3, #20
	bgt	.L532
	sub	r3, fp, #28
	mov	r2, #20
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	XGetPointerMapping
	mov	r3, r0
	b	.L533
.L532:
	mov	r3, #20
.L533:
	ldr	r2, .L539+4
	str	r3, [r2]
	ldr	r3, .L539+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L539+8
	bl	printf
	ldr	r3, .L539+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L538
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L534
.L536:
	ldr	r3, [fp, #-32]
	add	r1, r3, #1
	sub	r2, fp, #28
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r0, .L539+16
	bl	printf
	sub	r2, fp, #28
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #20
	bhi	.L535
	sub	r2, fp, #28
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	ldr	r1, [fp, #-44]
	add	r3, r0, #24
	lsl	r3, r3, #2
	add	r3, r1, r3
	str	r2, [r3, #4]
.L535:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L534:
	ldr	r3, .L539+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	cmp	r3, r2
	bcc	.L536
.L538:
	nop
	ldr	r3, .L539
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L537
	bl	__stack_chk_fail
.L537:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L540:
	.align	2
.L539:
	.word	.LC145
	.word	nButtons
	.word	.LC143
	.word	doPointerMap
	.word	.LC144
	.size	RefreshPointerMapping, .-RefreshPointerMapping
	.section	.rodata
	.align	2
.LC146:
	.ascii	"%s - error: %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xmalloc, %function
xmalloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L542
	ldr	r3, .L544
	ldr	r4, [r3]
	ldr	r3, .L544+4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L544+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L542:
	ldr	r2, [fp, #-24]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	memset
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L545:
	.align	2
.L544:
	.word	stderr
	.word	programStr
	.word	.LC146
	.size	xmalloc, .-xmalloc
	.local	lc.12209
	.comm	lc.12209,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
