	.file	"969059.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Unknown key"
	.text
	.type	_xkey, @function
_xkey:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	XStringToKeysym@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 1
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	_error
	neg	eax
	jmp	.L3
.L2:
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	mov	eax, -1
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	mov	BYTE PTR -17[rbp], al
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	XTestGrabControl@PLT
	movzx	esi, BYTE PTR -17[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	movzx	esi, BYTE PTR -17[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XTestFakeKeyEvent@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XTestGrabControl@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_xkey, .-_xkey
	.section	.rodata
.LC1:
	.string	": "
.LC2:
	.string	""
.LC3:
	.string	"xkey"
.LC4:
	.string	"%s: %s%s%s\n"
	.text
	.type	_error, @function
_error:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	cmp	QWORD PTR -8[rbp], 0
	je	.L6
	lea	rdx, .LC1[rip]
	jmp	.L7
.L6:
	lea	rdx, .LC2[rip]
.L7:
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L9
.L8:
	lea	rax, .LC2[rip]
.L9:
	mov	rdi, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC3[rip]
	lea	rsi, .LC4[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_error, .-_error
	.section	.rodata
	.align 8
.LC5:
	.string	"Usage: xkey [-d display] name\n"
	.text
	.type	_usage, @function
_usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_usage, .-_usage
	.section	.rodata
.LC6:
	.string	"d:"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
	jmp	.L14
.L17:
	cmp	DWORD PTR -12[rbp], 100
	jne	.L15
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L14
.L15:
	call	_usage
	jmp	.L16
.L14:
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC6[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L17
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	je	.L18
	call	_usage
	jmp	.L16
.L18:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	_xkey
	test	eax, eax
	jne	.L19
	mov	eax, 0
	jmp	.L16
.L19:
	mov	eax, 2
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"969059.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Unknown key\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_xkey, %function
_xkey:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-28]
	bl	XStringToKeysym
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L2
	mov	r2, #1
	ldr	r1, .L5
	ldr	r0, [fp, #-28]
	bl	_error
	mov	r3, r0
	rsb	r3, r3, #0
	b	.L3
.L2:
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L4
	mvn	r3, #0
	b	.L3
.L4:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	XKeysymToKeycode
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	XTestGrabControl
	ldrb	r1, [fp, #-13]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-8]
	bl	XTestFakeKeyEvent
	ldrb	r1, [fp, #-13]	@ zero_extendqisi2
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-8]
	bl	XTestFakeKeyEvent
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	XTestGrabControl
	ldr	r0, [fp, #-8]
	bl	XCloseDisplay
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.size	_xkey, .-_xkey
	.section	.rodata
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	": \000"
	.align	2
.LC3:
	.ascii	"xkey\000"
	.align	2
.LC4:
	.ascii	"%s: %s%s%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_error, %function
_error:
	@ args = 0, pretend = 0, frame = 16
	@ 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]
	str	r2, [fp, #-16]
	ldr	r3, .L13
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	b	.L9
.L8:
	ldr	r3, .L13+4
.L9:
	ldr	r2, [fp, #-8]
	cmp	r2, #0
	beq	.L10
	ldr	r2, .L13+8
	b	.L11
.L10:
	ldr	r2, .L13+4
.L11:
	ldr	r1, [fp, #-12]
	str	r1, [sp, #4]
	str	r2, [sp]
	ldr	r2, .L13+12
	ldr	r1, .L13+16
	bl	fprintf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	_error, .-_error
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Usage: xkey [-d display] name\012\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	r3, .L17
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L17+4
	bl	fwrite
	mov	r3, #1
	mov	r0, r3
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	stderr
	.word	.LC5
	.size	_usage, .-_usage
	.section	.rodata
	.align	2
.LC6:
	.ascii	"d:\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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L20
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #100
	bne	.L21
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L20
.L21:
	bl	_usage
	mov	r3, r0
	b	.L22
.L20:
	ldr	r2, .L27+4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L23
	ldr	r3, .L27+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	beq	.L24
	bl	_usage
	mov	r3, r0
	b	.L22
.L24:
	ldr	r3, .L27+8
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	_xkey
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	mov	r3, #0
	b	.L22
.L25:
	mov	r3, #2
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	optarg
	.word	.LC6
	.word	optind
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
