	.file	"491170.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"F7"
.LC1:
	.string	"F6"
.LC2:
	.string	"something's happened"
	.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
	push	rbx
	sub	rsp, 232
	.cfi_offset 3, -24
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -240[rbp], rax
	cmp	QWORD PTR -240[rbp], 0
	je	.L2
	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	rbx, QWORD PTR 16[rax]
	lea	rdi, .LC0[rip]
	call	XStringToKeysym@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	movzx	esi, al
	mov	rax, QWORD PTR -240[rbp]
	sub	rsp, 8
	push	1
	mov	r9d, 1
	mov	r8d, 1
	mov	rcx, rbx
	mov	edx, 8
	mov	rdi, rax
	call	XGrabKey@PLT
	add	rsp, 16
	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	rbx, QWORD PTR 16[rax]
	lea	rdi, .LC1[rip]
	call	XStringToKeysym@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	movzx	esi, al
	mov	rax, QWORD PTR -240[rbp]
	sub	rsp, 8
	push	1
	mov	r9d, 1
	mov	r8d, 1
	mov	rcx, rbx
	mov	edx, 8
	mov	rdi, rax
	call	XGrabKey@PLT
	add	rsp, 16
.L6:
	lea	rdx, -224[rbp]
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, 2
	jne	.L6
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	XLookupKeysym@PLT
	mov	QWORD PTR -232[rbp], rax
	cmp	QWORD PTR -232[rbp], 65476
	jne	.L4
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L6
.L4:
	cmp	QWORD PTR -232[rbp], 65475
	je	.L10
	jmp	.L6
.L10:
	nop
	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	rbx, QWORD PTR 16[rax]
	lea	rdi, .LC0[rip]
	call	XStringToKeysym@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	movzx	esi, al
	mov	rax, QWORD PTR -240[rbp]
	mov	rcx, rbx
	mov	edx, 8
	mov	rdi, rax
	call	XUngrabKey@PLT
	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	rbx, QWORD PTR 16[rax]
	lea	rdi, .LC1[rip]
	call	XStringToKeysym@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -240[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	movzx	esi, al
	mov	rax, QWORD PTR -240[rbp]
	mov	rcx, rbx
	mov	edx, 8
	mov	rdi, rax
	call	XUngrabKey@PLT
.L2:
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"491170.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"F7\000"
	.align	2
.LC1:
	.ascii	"F6\000"
	.align	2
.LC2:
	.ascii	"something's happened\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L11+4
	bl	XStringToKeysym
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	XKeysymToKeycode
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-112]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-112]
	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	r3, [r3, #8]
	mov	r2, #1
	str	r2, [sp, #8]
	mov	r2, #1
	str	r2, [sp, #4]
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #8
	mov	r1, r0
	ldr	r0, [fp, #-112]
	bl	XGrabKey
	ldr	r0, .L11+8
	bl	XStringToKeysym
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	XKeysymToKeycode
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-112]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-112]
	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	r3, [r3, #8]
	mov	r2, #1
	str	r2, [sp, #8]
	mov	r2, #1
	str	r2, [sp, #4]
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #8
	mov	r1, r0
	ldr	r0, [fp, #-112]
	bl	XGrabKey
.L6:
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	XNextEvent
	ldr	r3, [fp, #-104]
	cmp	r3, #2
	bne	.L6
	sub	r3, fp, #104
	mov	r1, #0
	mov	r0, r3
	bl	XLookupKeysym
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	ldr	r2, .L11+12
	cmp	r3, r2
	bne	.L4
	ldr	r0, .L11+16
	bl	puts
	b	.L6
.L4:
	ldr	r3, [fp, #-108]
	ldr	r2, .L11+20
	cmp	r3, r2
	beq	.L10
	b	.L6
.L10:
	nop
	ldr	r0, .L11+4
	bl	XStringToKeysym
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	XKeysymToKeycode
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-112]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-112]
	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	r3, [r3, #8]
	mov	r2, #8
	mov	r1, r0
	ldr	r0, [fp, #-112]
	bl	XUngrabKey
	ldr	r0, .L11+8
	bl	XStringToKeysym
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	XKeysymToKeycode
	mov	r3, r0
	mov	r0, r3
	ldr	r3, [fp, #-112]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-112]
	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	r3, [r3, #8]
	mov	r2, #8
	mov	r1, r0
	ldr	r0, [fp, #-112]
	bl	XUngrabKey
.L2:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	65476
	.word	.LC2
	.word	65475
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
