	.file	"807696.c"
	.intel_syntax noprefix
	.text
	.globl	modkey_names
	.section	.rodata
.LC0:
	.string	"Shift"
.LC1:
	.string	""
.LC2:
	.string	"Control"
.LC3:
	.string	"Mod1"
.LC4:
	.string	"Mod2"
.LC5:
	.string	"Mod3"
.LC6:
	.string	"Mod4"
.LC7:
	.string	"Mod5"
	.section	.data.rel.local,"aw"
	.align 32
	.type	modkey_names, @object
	.size	modkey_names, 72
modkey_names:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.quad	.LC4
	.quad	.LC5
	.quad	.LC6
	.quad	.LC7
	.quad	0
	.section	.rodata
.LC8:
	.string	"XGrabKeyboard returns %d\n"
.LC9:
	.string	"the_stack_data/807696.c"
	.align 8
.LC10:
	.string	"!XWindowEvent(d, DefaultRootWindow(d), KeyPressMask, &ev)"
.LC11:
	.string	"C-"
.LC12:
	.string	"M-"
.LC13:
	.string	"S-"
.LC14:
	.string	"%s\n"
.LC15:
	.string	"C-C"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 288
	mov	DWORD PTR -276[rbp], edi
	mov	QWORD PTR -288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -240[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -240[rbp]
	mov	r9d, 0
	mov	r8d, 1
	mov	ecx, 1
	mov	edx, 0
	mov	rdi, rax
	call	XGrabKeyboard@PLT
	mov	DWORD PTR -260[rbp], eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -260[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L9:
	mov	rax, QWORD PTR -240[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -240[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	lea	rdx, -224[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	XWindowEvent@PLT
	test	eax, eax
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 42
	lea	rsi, .LC9[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L2:
	mov	edx, DWORD PTR -144[rbp]
	mov	esi, DWORD PTR -140[rbp]
	lea	rdi, -256[rbp]
	lea	rcx, -264[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	r8, rdi
	mov	rdi, rax
	mov	eax, 0
	call	XkbLookupKeySym@PLT
	mov	rax, QWORD PTR -256[rbp]
	sub	rax, 65505
	cmp	rax, 13
	jbe	.L13
	mov	rax, QWORD PTR -256[rbp]
	mov	rdi, rax
	call	XKeysymToString@PLT
	mov	QWORD PTR -232[rbp], rax
	lea	rax, -32[rbp]
	mov	QWORD PTR -248[rbp], rax
	mov	eax, DWORD PTR -144[rbp]
	and	eax, 4
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cdqe
	add	QWORD PTR -248[rbp], rax
.L5:
	mov	eax, DWORD PTR -144[rbp]
	and	eax, 8
	test	eax, eax
	je	.L6
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cdqe
	add	QWORD PTR -248[rbp], rax
.L6:
	mov	eax, DWORD PTR -144[rbp]
	and	eax, 64
	test	eax, eax
	je	.L7
	mov	rax, QWORD PTR -248[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cdqe
	add	QWORD PTR -248[rbp], rax
.L7:
	mov	rdx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	cdqe
	add	QWORD PTR -248[rbp], rax
	mov	rax, QWORD PTR stdout[rip]
	lea	rdx, -32[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -32[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L14
	jmp	.L9
.L13:
	nop
	jmp	.L9
.L14:
	nop
	mov	rax, QWORD PTR -240[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"807696.c"
	.text
	.global	modkey_names
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Shift\000"
	.align	2
.LC1:
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"Control\000"
	.align	2
.LC3:
	.ascii	"Mod1\000"
	.align	2
.LC4:
	.ascii	"Mod2\000"
	.align	2
.LC5:
	.ascii	"Mod3\000"
	.align	2
.LC6:
	.ascii	"Mod4\000"
	.align	2
.LC7:
	.ascii	"Mod5\000"
	.data
	.align	2
	.type	modkey_names, %object
	.size	modkey_names, 36
modkey_names:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	0
	.section	.rodata
	.align	2
.LC8:
	.ascii	"XGrabKeyboard returns %d\012\000"
	.align	2
.LC9:
	.ascii	"the_stack_data/807696.c\000"
	.align	2
.LC10:
	.ascii	"!XWindowEvent(d, DefaultRootWindow(d), KeyPressMask"
	.ascii	", &ev)\000"
	.align	2
.LC11:
	.ascii	"C-\000"
	.align	2
.LC12:
	.ascii	"M-\000"
	.align	2
.LC13:
	.ascii	"S-\000"
	.align	2
.LC14:
	.ascii	"%s\012\000"
	.align	2
.LC15:
	.ascii	"C-C\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #160
	str	r0, [fp, #-152]
	str	r1, [fp, #-156]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #132]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #0
	ldr	r0, [fp, #-136]
	bl	XGrabKeyboard
	str	r0, [fp, #-132]
	ldr	r3, .L15+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-132]
	ldr	r1, .L15+8
	mov	r0, r3
	bl	fprintf
.L9:
	ldr	r3, [fp, #-136]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-136]
	ldr	r3, [r3, #132]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, [r3, #8]
	sub	r3, fp, #124
	mov	r2, #1
	ldr	r0, [fp, #-136]
	bl	XWindowEvent
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L15+12
	mov	r2, #42
	ldr	r1, .L15+16
	ldr	r0, .L15+20
	bl	__assert_fail
.L2:
	ldr	r1, [fp, #-72]
	ldr	r2, [fp, #-76]
	sub	r0, fp, #148
	sub	r3, fp, #144
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-136]
	bl	XkbLookupKeySym
	ldr	r3, [fp, #-144]
	sub	r3, r3, #65280
	sub	r3, r3, #225
	cmp	r3, #13
	bls	.L13
	ldr	r3, [fp, #-144]
	mov	r0, r3
	bl	XKeysymToString
	str	r0, [fp, #-128]
	sub	r3, fp, #28
	str	r3, [fp, #-140]
	ldr	r3, [fp, #-76]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L5
	ldr	r1, .L15+24
	ldr	r0, [fp, #-140]
	bl	sprintf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	str	r3, [fp, #-140]
.L5:
	ldr	r3, [fp, #-76]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L6
	ldr	r1, .L15+28
	ldr	r0, [fp, #-140]
	bl	sprintf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	str	r3, [fp, #-140]
.L6:
	ldr	r3, [fp, #-76]
	and	r3, r3, #64
	cmp	r3, #0
	beq	.L7
	ldr	r1, .L15+32
	ldr	r0, [fp, #-140]
	bl	sprintf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	str	r3, [fp, #-140]
.L7:
	ldr	r1, [fp, #-128]
	ldr	r0, [fp, #-140]
	bl	sprintf
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	add	r3, r3, r2
	str	r3, [fp, #-140]
	ldr	r3, .L15+36
	ldr	r3, [r3]
	sub	r2, fp, #28
	ldr	r1, .L15+40
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L15+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #28
	ldr	r1, .L15+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	b	.L9
.L13:
	nop
	b	.L9
.L14:
	nop
	ldr	r0, [fp, #-136]
	bl	XCloseDisplay
	mov	r3, #0
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC16
	.word	stderr
	.word	.LC8
	.word	__PRETTY_FUNCTION__.8711
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	stdout
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.8711, %object
	.size	__PRETTY_FUNCTION__.8711, 5
__PRETTY_FUNCTION__.8711:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
