	.file	"96836.c"
	.intel_syntax noprefix
	.text
	.globl	isDvorak
	.bss
	.align 4
	.type	isDvorak, @object
	.size	isDvorak, 4
isDvorak:
	.zero	4
	.globl	start
	.align 8
	.type	start, @object
	.size	start, 8
start:
	.zero	8
	.section	.rodata
.LC0:
	.string	"RELEASED"
.LC1:
	.string	"PRESSED"
.LC2:
	.string	"REPEATED"
	.section	.data.rel.ro.local,"aw"
	.align 16
	.type	evval, @object
	.size	evval, 24
evval:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.text
	.type	emit, @function
emit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	DWORD PTR -44[rbp], edx
	mov	DWORD PTR -48[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -40[rbp]
	mov	WORD PTR -16[rbp], ax
	mov	eax, DWORD PTR -44[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	emit, .-emit
	.type	modifier_bit, @function
modifier_bit:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 125
	je	.L5
	cmp	DWORD PTR -4[rbp], 125
	jg	.L6
	cmp	DWORD PTR -4[rbp], 97
	je	.L7
	cmp	DWORD PTR -4[rbp], 97
	jg	.L6
	cmp	DWORD PTR -4[rbp], 29
	je	.L8
	cmp	DWORD PTR -4[rbp], 56
	je	.L9
	jmp	.L6
.L8:
	mov	eax, 1
	jmp	.L10
.L7:
	mov	eax, 2
	jmp	.L10
.L9:
	mov	eax, 4
	jmp	.L10
.L5:
	mov	eax, 8
	jmp	.L10
.L6:
	mov	eax, 0
.L10:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	modifier_bit, .-modifier_bit
	.type	qwerty2dvorak, @function
qwerty2dvorak:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 12
	cmp	eax, 41
	ja	.L12
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L14[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L14[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L48-.L14
	.long	.L47-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L46-.L14
	.long	.L45-.L14
	.long	.L44-.L14
	.long	.L43-.L14
	.long	.L42-.L14
	.long	.L41-.L14
	.long	.L40-.L14
	.long	.L39-.L14
	.long	.L38-.L14
	.long	.L37-.L14
	.long	.L36-.L14
	.long	.L35-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L34-.L14
	.long	.L33-.L14
	.long	.L32-.L14
	.long	.L31-.L14
	.long	.L30-.L14
	.long	.L29-.L14
	.long	.L28-.L14
	.long	.L27-.L14
	.long	.L26-.L14
	.long	.L25-.L14
	.long	.L24-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L12-.L14
	.long	.L23-.L14
	.long	.L22-.L14
	.long	.L21-.L14
	.long	.L20-.L14
	.long	.L19-.L14
	.long	.L18-.L14
	.long	.L17-.L14
	.long	.L16-.L14
	.long	.L15-.L14
	.long	.L13-.L14
	.text
.L48:
	mov	eax, 40
	jmp	.L49
.L47:
	mov	eax, 27
	jmp	.L49
.L46:
	mov	eax, 45
	jmp	.L49
.L45:
	mov	eax, 51
	jmp	.L49
.L44:
	mov	eax, 32
	jmp	.L49
.L43:
	mov	eax, 24
	jmp	.L49
.L42:
	mov	eax, 37
	jmp	.L49
.L41:
	mov	eax, 20
	jmp	.L49
.L40:
	mov	eax, 33
	jmp	.L49
.L39:
	mov	eax, 34
	jmp	.L49
.L38:
	mov	eax, 31
	jmp	.L49
.L37:
	mov	eax, 19
	jmp	.L49
.L36:
	mov	eax, 12
	jmp	.L49
.L35:
	mov	eax, 13
	jmp	.L49
.L34:
	mov	eax, 30
	jmp	.L49
.L33:
	mov	eax, 39
	jmp	.L49
.L32:
	mov	eax, 35
	jmp	.L49
.L31:
	mov	eax, 21
	jmp	.L49
.L30:
	mov	eax, 22
	jmp	.L49
.L29:
	mov	eax, 36
	jmp	.L49
.L28:
	mov	eax, 46
	jmp	.L49
.L27:
	mov	eax, 47
	jmp	.L49
.L26:
	mov	eax, 25
	jmp	.L49
.L25:
	mov	eax, 44
	jmp	.L49
.L24:
	mov	eax, 16
	jmp	.L49
.L23:
	mov	eax, 53
	jmp	.L49
.L22:
	mov	eax, 48
	jmp	.L49
.L21:
	mov	eax, 23
	jmp	.L49
.L20:
	mov	eax, 52
	jmp	.L49
.L19:
	mov	eax, 49
	jmp	.L49
.L18:
	mov	eax, 38
	jmp	.L49
.L17:
	mov	eax, 50
	jmp	.L49
.L16:
	mov	eax, 17
	jmp	.L49
.L15:
	mov	eax, 18
	jmp	.L49
.L13:
	mov	eax, 26
	jmp	.L49
.L12:
	mov	eax, DWORD PTR -4[rbp]
.L49:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	qwerty2dvorak, .-qwerty2dvorak
	.section	.rodata
.LC3:
	.string	"SUDO_USER"
	.align 8
.LC4:
	.string	"/usr/bin/su %s -c '/usr/bin/gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval  \"imports.ui.status.keyboard.getInputSourceManager().currentSource.id\"'"
.LC5:
	.string	"r"
.LC6:
	.string	"dvorak"
	.text
	.type	isDvorakLayout, @function
isDvorakLayout:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR start[rip]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -300[rbp], eax
	cmp	DWORD PTR -300[rbp], 2
	jg	.L51
	mov	eax, DWORD PTR isDvorak[rip]
	jmp	.L55
.L51:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR start[rip], rax
	lea	rdi, .LC3[rip]
	call	getenv@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rdx, QWORD PTR -288[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	lea	rdx, .LC4[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -280[rbp], rax
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	pclose@PLT
	lea	rax, -272[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	strcasestr@PLT
	test	rax, rax
	je	.L53
	mov	DWORD PTR isDvorak[rip], 1
	jmp	.L54
.L53:
	mov	DWORD PTR isDvorak[rip], 0
.L54:
	mov	eax, DWORD PTR isDvorak[rip]
.L55:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	isDvorakLayout, .-isDvorakLayout
	.section	.rodata
	.align 8
.LC7:
	.string	"error: specify input device, e.g., found in /dev/input/by-id/.\n"
	.align 8
.LC8:
	.string	"Cannot open any of the devices: %s.\n"
.LC9:
	.string	"Cannot get device name: %s.\n"
	.align 8
.LC10:
	.string	"Cannot get map the virtual device: %s.\n"
.LC11:
	.string	"found input: [%s]\n"
.LC12:
	.string	"Not a matching device: [%s]\n"
.LC13:
	.string	"/dev/uinput"
.LC14:
	.string	"Cannot open /dev/uinput: %s.\n"
.LC15:
	.string	"Cannot grab key: %s.\n"
	.align 8
.LC16:
	.string	"Cannot set ev key bits, key: %s.\n"
	.align 8
.LC17:
	.string	"Cannot set ev syn bits, syn: %s.\n"
.LC18:
	.string	"Cannot set ev bits: %s.\n"
.LC19:
	.string	"Cannot setup device: %s.\n"
.LC20:
	.string	"Cannot create device: %s.\n"
	.align 8
.LC21:
	.string	"warning, too many keys pressed: %d. %s 0x%04x (%d), arr:%d\n"
.LC22:
	.string	"Cannot write to device: %s.\n"
.LC23:
	.string	"%s.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r12
	push	rbx
	sub	rsp, 320
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	r12, rax
	mov	edi, 0
	call	setuid@PLT
	cmp	DWORD PTR -324[rbp], 1
	jg	.L58
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 63
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L59
.L58:
	mov	BYTE PTR -313[rbp], 32
	movsx	rax, BYTE PTR -313[rbp]
	sub	rax, 1
	mov	QWORD PTR -280[rbp], rax
	movsx	rax, BYTE PTR -313[rbp]
	mov	QWORD PTR -352[rbp], rax
	mov	QWORD PTR -344[rbp], 0
	movsx	rax, BYTE PTR -313[rbp]
	mov	r14, rax
	mov	r15d, 0
	movsx	rax, BYTE PTR -313[rbp]
	lea	rdx, 0[0+rax*4]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	ebx, 16
	mov	edx, 0
	div	rbx
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L60:
	cmp	rsp, rdx
	je	.L61
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L60
.L61:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L62
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L62:
	mov	rax, rsp
	add	rax, 3
	shr	rax, 2
	sal	rax, 2
	mov	QWORD PTR -272[rbp], rax
	movabs	rax, 31093567915781717
	mov	edx, 0
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -120[rbp], rdx
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	lea	rax, -224[rbp]
	mov	edx, 92
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -224[rbp], 6
	mov	WORD PTR -222[rbp], 1
	mov	WORD PTR -220[rbp], 1
	lea	rax, -224[rbp]
	add	rax, 8
	movabs	rbx, 2336349463791167830
	movabs	rsi, 5413444818375243332
	mov	QWORD PTR [rax], rbx
	mov	QWORD PTR 8[rax], rsi
	movabs	rbx, 28273260477184357
	mov	QWORD PTR 16[rax], rbx
	mov	DWORD PTR -308[rbp], 0
	mov	DWORD PTR -304[rbp], 0
	mov	DWORD PTR -312[rbp], 0
	jmp	.L63
.L64:
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -312[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	add	DWORD PTR -312[rbp], 1
.L63:
	movsx	eax, BYTE PTR -313[rbp]
	cmp	DWORD PTR -312[rbp], eax
	jl	.L64
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 0
	jns	.L65
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L65:
	lea	rdx, -128[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	esi, 2152678662
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	mov	DWORD PTR -296[rbp], eax
	cmp	DWORD PTR -296[rbp], 0
	jns	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L66:
	lea	rax, -224[rbp]
	lea	rdx, 8[rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasestr@PLT
	test	rax, rax
	je	.L67
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -128[rbp]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L67:
	mov	DWORD PTR -296[rbp], -1
	mov	DWORD PTR -312[rbp], 2
	jmp	.L68
.L71:
	mov	eax, DWORD PTR -312[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -336[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcasestr@PLT
	test	rax, rax
	je	.L69
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -296[rbp], 0
	jmp	.L70
.L69:
	add	DWORD PTR -312[rbp], 1
.L68:
	mov	eax, DWORD PTR -312[rbp]
	cmp	eax, DWORD PTR -324[rbp]
	jl	.L71
.L70:
	cmp	DWORD PTR -296[rbp], 0
	jns	.L72
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -128[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L72:
	mov	esi, 2049
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -288[rbp], eax
	cmp	DWORD PTR -288[rbp], 0
	jns	.L73
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L73:
	mov	edi, 200000
	call	usleep@PLT
	mov	eax, DWORD PTR -292[rbp]
	mov	edx, 1
	mov	esi, 1074021776
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L74
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L74:
	mov	eax, DWORD PTR -288[rbp]
	mov	edx, 1
	mov	esi, 1074025828
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L75
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L75:
	mov	eax, DWORD PTR -288[rbp]
	mov	edx, 0
	mov	esi, 1074025828
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L76
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L76:
	mov	DWORD PTR -312[rbp], 0
	jmp	.L77
.L79:
	mov	edx, DWORD PTR -312[rbp]
	mov	eax, DWORD PTR -288[rbp]
	mov	esi, 1074025829
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L78
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L78:
	add	DWORD PTR -312[rbp], 1
.L77:
	cmp	DWORD PTR -312[rbp], 573
	jle	.L79
	lea	rdx, -224[rbp]
	mov	eax, DWORD PTR -288[rbp]
	mov	esi, 1079792899
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L80
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L80:
	mov	eax, DWORD PTR -288[rbp]
	mov	esi, 21761
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L81
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L59
.L81:
	lea	rcx, -256[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -264[rbp], rax
	cmp	QWORD PTR -264[rbp], -1
	jne	.L82
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L107
	jmp	.L84
.L82:
	cmp	QWORD PTR -264[rbp], 24
	je	.L86
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 5
	jmp	.L85
.L86:
	mov	eax, 0
	call	isDvorakLayout
	test	eax, eax
	jne	.L87
	mov	ecx, DWORD PTR -236[rbp]
	movzx	eax, WORD PTR -238[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -240[rbp]
	movzx	esi, ax
	mov	eax, DWORD PTR -288[rbp]
	mov	edi, eax
	call	emit
	jmp	.L81
.L87:
	movzx	eax, WORD PTR -240[rbp]
	cmp	ax, 1
	jne	.L88
	mov	eax, DWORD PTR -236[rbp]
	test	eax, eax
	js	.L88
	mov	eax, DWORD PTR -236[rbp]
	cmp	eax, 2
	jg	.L88
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	modifier_bit
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	jle	.L89
	mov	eax, DWORD PTR -236[rbp]
	cmp	eax, 1
	jne	.L90
	mov	eax, DWORD PTR -284[rbp]
	or	DWORD PTR -308[rbp], eax
	jmp	.L89
.L90:
	mov	eax, DWORD PTR -236[rbp]
	test	eax, eax
	jne	.L89
	mov	eax, DWORD PTR -284[rbp]
	not	eax
	and	DWORD PTR -308[rbp], eax
.L89:
	movzx	eax, WORD PTR -238[rbp]
	movzx	ebx, ax
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	qwerty2dvorak
	cmp	ebx, eax
	je	.L91
	cmp	DWORD PTR -308[rbp], 0
	jg	.L92
	cmp	DWORD PTR -304[rbp], 0
	jle	.L91
.L92:
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, ax
	mov	DWORD PTR -300[rbp], eax
	mov	eax, DWORD PTR -236[rbp]
	cmp	eax, 1
	jne	.L93
	movsx	eax, BYTE PTR -313[rbp]
	cmp	DWORD PTR -304[rbp], eax
	jne	.L94
	movzx	eax, WORD PTR -238[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -238[rbp]
	movzx	ecx, ax
	mov	eax, DWORD PTR -236[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, evval[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	movsx	eax, BYTE PTR -313[rbp]
	mov	edi, DWORD PTR -304[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L95
.L94:
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, ax
	lea	ecx, 1[rax]
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -304[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], ecx
	add	DWORD PTR -304[rbp], 1
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	qwerty2dvorak
	mov	DWORD PTR -300[rbp], eax
	jmp	.L95
.L93:
	mov	eax, DWORD PTR -236[rbp]
	test	eax, eax
	jne	.L95
	mov	DWORD PTR -312[rbp], 0
	jmp	.L96
.L98:
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -312[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	movzx	edx, WORD PTR -238[rbp]
	movzx	edx, dx
	add	edx, 1
	cmp	eax, edx
	jne	.L97
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -312[rbp]
	movsx	rdx, edx
	mov	DWORD PTR [rax+rdx*4], 0
	movzx	eax, WORD PTR -238[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	qwerty2dvorak
	mov	DWORD PTR -300[rbp], eax
.L97:
	add	DWORD PTR -312[rbp], 1
.L96:
	mov	eax, DWORD PTR -312[rbp]
	cmp	eax, DWORD PTR -304[rbp]
	jl	.L98
	mov	eax, DWORD PTR -304[rbp]
	sub	eax, 1
	mov	DWORD PTR -312[rbp], eax
	jmp	.L99
.L102:
	mov	rax, QWORD PTR -272[rbp]
	mov	edx, DWORD PTR -312[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	test	eax, eax
	jne	.L108
	sub	DWORD PTR -304[rbp], 1
	sub	DWORD PTR -312[rbp], 1
.L99:
	cmp	DWORD PTR -312[rbp], 0
	jns	.L102
	jmp	.L95
.L108:
	nop
.L95:
	mov	ecx, DWORD PTR -236[rbp]
	movzx	eax, WORD PTR -240[rbp]
	movzx	esi, ax
	mov	edx, DWORD PTR -300[rbp]
	mov	eax, DWORD PTR -288[rbp]
	mov	edi, eax
	call	emit
	test	eax, eax
	jns	.L104
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L104
.L91:
	mov	ecx, DWORD PTR -236[rbp]
	movzx	eax, WORD PTR -238[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -240[rbp]
	movzx	esi, ax
	mov	eax, DWORD PTR -288[rbp]
	mov	edi, eax
	call	emit
	test	eax, eax
	jns	.L109
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L109
.L104:
	jmp	.L109
.L88:
	mov	ecx, DWORD PTR -236[rbp]
	movzx	eax, WORD PTR -238[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -240[rbp]
	movzx	esi, ax
	mov	eax, DWORD PTR -288[rbp]
	mov	edi, eax
	call	emit
	test	eax, eax
	jns	.L81
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L81
.L109:
	nop
.L84:
	jmp	.L81
.L107:
	nop
.L85:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
.L59:
	mov	rsp, r12
	mov	rbx, QWORD PTR -40[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L106
	call	__stack_chk_fail@PLT
.L106:
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"96836.c"
	.text
	.global	isDvorak
	.bss
	.align	2
	.type	isDvorak, %object
	.size	isDvorak, 4
isDvorak:
	.space	4
	.global	start
	.align	2
	.type	start, %object
	.size	start, 4
start:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"RELEASED\000"
	.align	2
.LC1:
	.ascii	"PRESSED\000"
	.align	2
.LC2:
	.ascii	"REPEATED\000"
	.align	2
	.type	evval, %object
	.size	evval, 12
evval:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	emit, %function
emit:
	@ 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]
	str	r3, [fp, #-44]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write
	mov	r3, r0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC3
	.size	emit, .-emit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	modifier_bit, %function
modifier_bit:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #125
	beq	.L7
	ldr	r3, [fp, #-8]
	cmp	r3, #125
	bgt	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #97
	beq	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #97
	bgt	.L8
	ldr	r3, [fp, #-8]
	cmp	r3, #29
	beq	.L10
	ldr	r3, [fp, #-8]
	cmp	r3, #56
	beq	.L11
	b	.L8
.L10:
	mov	r3, #1
	b	.L12
.L9:
	mov	r3, #2
	b	.L12
.L11:
	mov	r3, #4
	b	.L12
.L7:
	mov	r3, #8
	b	.L12
.L8:
	mov	r3, #0
.L12:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	modifier_bit, .-modifier_bit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qwerty2dvorak, %function
qwerty2dvorak:
	@ 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]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #12
	cmp	r3, #41
	ldrls	pc, [pc, r3, asl #2]
	b	.L14
.L16:
	.word	.L50
	.word	.L49
	.word	.L14
	.word	.L14
	.word	.L48
	.word	.L47
	.word	.L46
	.word	.L45
	.word	.L44
	.word	.L43
	.word	.L42
	.word	.L41
	.word	.L40
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L14
	.word	.L14
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L14
	.word	.L14
	.word	.L14
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L15
.L50:
	mov	r3, #40
	b	.L51
.L49:
	mov	r3, #27
	b	.L51
.L48:
	mov	r3, #45
	b	.L51
.L47:
	mov	r3, #51
	b	.L51
.L46:
	mov	r3, #32
	b	.L51
.L45:
	mov	r3, #24
	b	.L51
.L44:
	mov	r3, #37
	b	.L51
.L43:
	mov	r3, #20
	b	.L51
.L42:
	mov	r3, #33
	b	.L51
.L41:
	mov	r3, #34
	b	.L51
.L40:
	mov	r3, #31
	b	.L51
.L39:
	mov	r3, #19
	b	.L51
.L38:
	mov	r3, #12
	b	.L51
.L37:
	mov	r3, #13
	b	.L51
.L36:
	mov	r3, #30
	b	.L51
.L35:
	mov	r3, #39
	b	.L51
.L34:
	mov	r3, #35
	b	.L51
.L33:
	mov	r3, #21
	b	.L51
.L32:
	mov	r3, #22
	b	.L51
.L31:
	mov	r3, #36
	b	.L51
.L30:
	mov	r3, #46
	b	.L51
.L29:
	mov	r3, #47
	b	.L51
.L28:
	mov	r3, #25
	b	.L51
.L27:
	mov	r3, #44
	b	.L51
.L26:
	mov	r3, #16
	b	.L51
.L25:
	mov	r3, #53
	b	.L51
.L24:
	mov	r3, #48
	b	.L51
.L23:
	mov	r3, #23
	b	.L51
.L22:
	mov	r3, #52
	b	.L51
.L21:
	mov	r3, #49
	b	.L51
.L20:
	mov	r3, #38
	b	.L51
.L19:
	mov	r3, #50
	b	.L51
.L18:
	mov	r3, #17
	b	.L51
.L17:
	mov	r3, #18
	b	.L51
.L15:
	mov	r3, #26
	b	.L51
.L14:
	ldr	r3, [fp, #-8]
.L51:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	qwerty2dvorak, .-qwerty2dvorak
	.section	.rodata
	.align	2
.LC4:
	.ascii	"SUDO_USER\000"
	.align	2
.LC5:
	.ascii	"/usr/bin/su %s -c '/usr/bin/gdbus call --session --"
	.ascii	"dest org.gnome.Shell --object-path /org/gnome/Shell"
	.ascii	" --method org.gnome.Shell.Eval  \"imports.ui.status"
	.ascii	".keyboard.getInputSourceManager().currentSource.id\""
	.ascii	"'\000"
	.align	2
.LC6:
	.ascii	"r\000"
	.align	2
.LC7:
	.ascii	"dvorak\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	isDvorakLayout, %function
isDvorakLayout:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	str	r0, [fp, #-280]
	ldr	r3, .L59+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-280]
	sub	r3, r2, r3
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #2
	bgt	.L53
	ldr	r3, .L59+8
	ldr	r3, [r3]
	b	.L57
.L53:
	mov	r0, #0
	bl	time
	mov	r3, r0
	ldr	r2, .L59+4
	str	r3, [r2]
	ldr	r0, .L59+12
	bl	getenv
	str	r0, [fp, #-272]
	sub	r0, fp, #264
	ldr	r3, [fp, #-272]
	ldr	r2, .L59+16
	mov	r1, #256
	bl	snprintf
	sub	r3, fp, #264
	ldr	r1, .L59+20
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	ldr	r2, [fp, #-268]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-268]
	bl	pclose
	sub	r3, fp, #264
	ldr	r1, .L59+24
	mov	r0, r3
	bl	strcasestr
	mov	r3, r0
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L59+8
	mov	r2, #1
	str	r2, [r3]
	b	.L56
.L55:
	ldr	r3, .L59+8
	mov	r2, #0
	str	r2, [r3]
.L56:
	ldr	r3, .L59+8
	ldr	r3, [r3]
.L57:
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC8
	.word	start
	.word	isDvorak
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	isDvorakLayout, .-isDvorakLayout
	.section	.rodata
	.align	2
.LC9:
	.ascii	"error: specify input device, e.g., found in /dev/in"
	.ascii	"put/by-id/.\012\000"
	.align	2
.LC11:
	.ascii	"Virtual Dvorak Keyboard\000"
	.align	2
.LC12:
	.ascii	"Cannot open any of the devices: %s.\012\000"
	.align	2
.LC13:
	.ascii	"Cannot get device name: %s.\012\000"
	.align	2
.LC14:
	.ascii	"Cannot get map the virtual device: %s.\012\000"
	.align	2
.LC15:
	.ascii	"found input: [%s]\012\000"
	.align	2
.LC16:
	.ascii	"Not a matching device: [%s]\012\000"
	.align	2
.LC17:
	.ascii	"/dev/uinput\000"
	.align	2
.LC18:
	.ascii	"Cannot open /dev/uinput: %s.\012\000"
	.align	2
.LC19:
	.ascii	"Cannot grab key: %s.\012\000"
	.align	2
.LC20:
	.ascii	"Cannot set ev key bits, key: %s.\012\000"
	.align	2
.LC21:
	.ascii	"Cannot set ev syn bits, syn: %s.\012\000"
	.align	2
.LC22:
	.ascii	"Cannot set ev bits: %s.\012\000"
	.align	2
.LC23:
	.ascii	"Cannot setup device: %s.\012\000"
	.align	2
.LC24:
	.ascii	"Cannot create device: %s.\012\000"
	.align	2
.LC25:
	.ascii	"warning, too many keys pressed: %d. %s 0x%04x (%d),"
	.ascii	" arr:%d\012\000"
	.align	2
.LC26:
	.ascii	"Cannot write to device: %s.\012\000"
	.align	2
.LC27:
	.ascii	"%s.\012\000"
	.align	2
.LC10:
	.ascii	"Unknown\000"
	.space	72
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #256
	str	r0, [fp, #-256]
	str	r1, [fp, #-260]
	ldr	r3, .L111
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	mov	r0, #0
	bl	setuid
	ldr	r3, [fp, #-256]
	cmp	r3, #1
	bgt	.L62
	ldr	r3, .L111+4
	ldr	r3, [r3]
	mov	r2, #63
	mov	r1, #1
	ldr	r0, .L111+8
	bl	fwrite
	mov	r3, #1
	b	.L63
.L62:
	mov	r3, #32
	strb	r3, [fp, #-249]
	ldrb	r3, [fp, #-249]	@ zero_extendqisi2
	sub	r3, r3, #1
	str	r3, [fp, #-228]
	ldrb	r0, [fp, #-249]	@ zero_extendqisi2
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldrb	r0, [fp, #-249]	@ zero_extendqisi2
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldrb	r3, [fp, #-249]	@ zero_extendqisi2
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-224]
	ldr	r2, .L111+12
	sub	r3, fp, #96
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	sub	r3, fp, #88
	mov	r2, #72
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #188
	mov	r2, #92
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #6
	strh	r3, [fp, #-188]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-186]	@ movhi
	mov	r3, #1
	strh	r3, [fp, #-184]	@ movhi
	sub	r3, fp, #188
	add	r3, r3, #8
	ldr	r2, .L111+16
	mov	ip, r3
	mov	lr, r2
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	mov	r3, #0
	str	r3, [fp, #-244]
	mov	r3, #0
	str	r3, [fp, #-240]
	mov	r3, #0
	str	r3, [fp, #-248]
	b	.L64
.L65:
	ldr	r3, [fp, #-224]
	ldr	r2, [fp, #-248]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L64:
	ldrb	r3, [fp, #-249]	@ zero_extendqisi2
	ldr	r2, [fp, #-248]
	cmp	r2, r3
	blt	.L65
	ldr	r3, [fp, #-260]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-220]
	ldr	r3, [fp, #-220]
	cmp	r3, #0
	bge	.L66
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+20
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L66:
	sub	r3, fp, #96
	mov	r2, r3
	ldr	r1, .L111+24
	ldr	r0, [fp, #-220]
	bl	ioctl
	str	r0, [fp, #-232]
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bge	.L67
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L67:
	sub	r3, fp, #188
	add	r2, r3, #8
	sub	r3, fp, #96
	mov	r1, r2
	mov	r0, r3
	bl	strcasestr
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r3, .L111+4
	ldr	r3, [r3]
	sub	r2, fp, #96
	ldr	r1, .L111+32
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L63
.L68:
	mvn	r3, #0
	str	r3, [fp, #-232]
	mov	r3, #2
	str	r3, [fp, #-248]
	b	.L69
.L72:
	ldr	r3, [fp, #-248]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-260]
	add	r3, r2, r3
	ldr	r2, [r3]
	sub	r3, fp, #96
	mov	r1, r2
	mov	r0, r3
	bl	strcasestr
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	sub	r3, fp, #96
	mov	r1, r3
	ldr	r0, .L111+36
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L71
.L70:
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L69:
	ldr	r2, [fp, #-248]
	ldr	r3, [fp, #-256]
	cmp	r2, r3
	blt	.L72
.L71:
	ldr	r3, [fp, #-232]
	cmp	r3, #0
	bge	.L73
	ldr	r3, .L111+4
	ldr	r3, [r3]
	sub	r2, fp, #96
	ldr	r1, .L111+40
	mov	r0, r3
	bl	fprintf
	mov	r3, #1
	b	.L63
.L73:
	ldr	r1, .L111+44
	ldr	r0, .L111+48
	bl	open
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bge	.L74
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+52
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L74:
	ldr	r0, .L111+56
	bl	usleep
	mov	r2, #1
	ldr	r1, .L111+60
	ldr	r0, [fp, #-220]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L75
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+64
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L75:
	mov	r2, #1
	ldr	r1, .L111+68
	ldr	r0, [fp, #-216]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L76
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+72
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L76:
	mov	r2, #0
	ldr	r1, .L111+68
	ldr	r0, [fp, #-216]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L77
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+76
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L77:
	mov	r3, #0
	str	r3, [fp, #-248]
	b	.L78
.L80:
	ldr	r2, [fp, #-248]
	ldr	r1, .L111+80
	ldr	r0, [fp, #-216]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L79
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+84
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L79:
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L78:
	ldr	r3, [fp, #-248]
	ldr	r2, .L111+88
	cmp	r3, r2
	ble	.L80
	sub	r3, fp, #188
	mov	r2, r3
	ldr	r1, .L111+92
	ldr	r0, [fp, #-216]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L81
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+96
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L81:
	ldr	r1, .L111+100
	ldr	r0, [fp, #-216]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L82
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+104
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L63
.L82:
	sub	r3, fp, #204
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-220]
	bl	read
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmn	r3, #1
	bne	.L83
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L108
	b	.L85
.L83:
	ldr	r3, [fp, #-212]
	cmp	r3, #16
	beq	.L87
	bl	__errno_location
	mov	r3, r0
	mov	r2, #5
	str	r2, [r3]
	b	.L86
.L87:
	bl	isDvorakLayout
	mov	r3, r0
	cmp	r3, #0
	bne	.L88
	ldrh	r3, [fp, #-196]
	mov	r1, r3
	ldrh	r3, [fp, #-194]
	mov	r2, r3
	ldr	r3, [fp, #-192]
	ldr	r0, [fp, #-216]
	bl	emit
	b	.L82
.L88:
	ldrh	r3, [fp, #-196]
	cmp	r3, #1
	bne	.L89
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	blt	.L89
	ldr	r3, [fp, #-192]
	cmp	r3, #2
	bgt	.L89
	ldrh	r3, [fp, #-194]
	mov	r0, r3
	bl	modifier_bit
	str	r0, [fp, #-208]
	ldr	r3, [fp, #-208]
	cmp	r3, #0
	ble	.L90
	ldr	r3, [fp, #-192]
	cmp	r3, #1
	bne	.L91
	ldr	r2, [fp, #-244]
	ldr	r3, [fp, #-208]
	orr	r3, r2, r3
	str	r3, [fp, #-244]
	b	.L90
.L91:
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L90
	ldr	r3, [fp, #-208]
	mvn	r3, r3
	ldr	r2, [fp, #-244]
	and	r3, r3, r2
	str	r3, [fp, #-244]
.L90:
	ldrh	r3, [fp, #-194]
	mov	r4, r3
	ldrh	r3, [fp, #-194]
	mov	r0, r3
	bl	qwerty2dvorak
	mov	r3, r0
	cmp	r4, r3
	beq	.L92
	ldr	r3, [fp, #-244]
	cmp	r3, #0
	bgt	.L93
	ldr	r3, [fp, #-240]
	cmp	r3, #0
	ble	.L92
.L93:
	ldrh	r3, [fp, #-194]
	str	r3, [fp, #-236]
	ldr	r3, [fp, #-192]
	cmp	r3, #1
	bne	.L94
	ldrb	r3, [fp, #-249]	@ zero_extendqisi2
	ldr	r2, [fp, #-240]
	cmp	r2, r3
	bne	.L95
	ldrb	r1, [fp, #-249]	@ zero_extendqisi2
	ldr	r3, [fp, #-192]
	ldr	r2, .L111+108
	ldr	r2, [r2, r3, lsl #2]
	ldrh	r3, [fp, #-194]
	mov	ip, r3
	ldrh	r3, [fp, #-194]
	mov	r0, r3
	ldr	r3, [fp, #-240]
	str	r3, [sp, #4]
	str	r0, [sp]
	mov	r3, ip
	ldr	r0, .L111+112
	bl	printf
	b	.L96
.L95:
	ldrh	r3, [fp, #-194]
	add	r1, r3, #1
	ldr	r3, [fp, #-224]
	ldr	r2, [fp, #-240]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
	ldrh	r3, [fp, #-194]
	mov	r0, r3
	bl	qwerty2dvorak
	str	r0, [fp, #-236]
	b	.L96
.L94:
	ldr	r3, [fp, #-192]
	cmp	r3, #0
	bne	.L96
	mov	r3, #0
	str	r3, [fp, #-248]
	b	.L97
.L99:
	ldr	r3, [fp, #-224]
	ldr	r2, [fp, #-248]
	ldr	r2, [r3, r2, lsl #2]
	ldrh	r3, [fp, #-194]
	add	r3, r3, #1
	cmp	r2, r3
	bne	.L98
	ldr	r3, [fp, #-224]
	ldr	r2, [fp, #-248]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldrh	r3, [fp, #-194]
	mov	r0, r3
	bl	qwerty2dvorak
	str	r0, [fp, #-236]
.L98:
	ldr	r3, [fp, #-248]
	add	r3, r3, #1
	str	r3, [fp, #-248]
.L97:
	ldr	r2, [fp, #-248]
	ldr	r3, [fp, #-240]
	cmp	r2, r3
	blt	.L99
	ldr	r3, [fp, #-240]
	sub	r3, r3, #1
	str	r3, [fp, #-248]
	b	.L100
.L103:
	ldr	r3, [fp, #-224]
	ldr	r2, [fp, #-248]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r3, #0
	bne	.L109
	ldr	r3, [fp, #-240]
	sub	r3, r3, #1
	str	r3, [fp, #-240]
	ldr	r3, [fp, #-248]
	sub	r3, r3, #1
	str	r3, [fp, #-248]
.L100:
	ldr	r3, [fp, #-248]
	cmp	r3, #0
	bge	.L103
	b	.L96
.L109:
	nop
.L96:
	ldrh	r3, [fp, #-196]
	mov	r1, r3
	ldr	r3, [fp, #-192]
	ldr	r2, [fp, #-236]
	ldr	r0, [fp, #-216]
	bl	emit
	mov	r3, r0
	cmp	r3, #0
	bge	.L105
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+116
	mov	r0, r4
	bl	fprintf
	b	.L105
.L92:
	ldrh	r3, [fp, #-196]
	mov	r1, r3
	ldrh	r3, [fp, #-194]
	mov	r2, r3
	ldr	r3, [fp, #-192]
	ldr	r0, [fp, #-216]
	bl	emit
	mov	r3, r0
	cmp	r3, #0
	bge	.L110
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+116
	mov	r0, r4
	bl	fprintf
	b	.L110
.L105:
	b	.L110
.L89:
	ldrh	r3, [fp, #-196]
	mov	r1, r3
	ldrh	r3, [fp, #-194]
	mov	r2, r3
	ldr	r3, [fp, #-192]
	ldr	r0, [fp, #-216]
	bl	emit
	mov	r3, r0
	cmp	r3, #0
	bge	.L82
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+116
	mov	r0, r4
	bl	fprintf
	b	.L82
.L110:
	nop
.L85:
	b	.L82
.L108:
	nop
.L86:
	ldr	r3, .L111+120
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L111+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L111+124
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
.L63:
	mov	sp, r5
	ldr	r2, .L111
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L107
	bl	__stack_chk_fail
.L107:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L112:
	.align	2
.L111:
	.word	.LC28
	.word	stderr
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	-2142288634
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	2049
	.word	.LC17
	.word	.LC18
	.word	200000
	.word	1074021776
	.word	.LC19
	.word	1074025828
	.word	.LC20
	.word	.LC21
	.word	1074025829
	.word	.LC22
	.word	573
	.word	1079792899
	.word	.LC23
	.word	21761
	.word	.LC24
	.word	evval
	.word	.LC25
	.word	.LC26
	.word	stdout
	.word	.LC27
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
