	.file	"48573937.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Hot key pressed!"
	.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, 256
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -224[rbp], rax
	mov	DWORD PTR -252[rbp], 5
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, 89
	mov	rdi, rax
	call	XKeysymToKeycode@PLT
	movzx	eax, al
	mov	DWORD PTR -248[rbp], eax
	mov	rax, QWORD PTR -224[rbp]
	mov	QWORD PTR -216[rbp], rax
	mov	DWORD PTR -244[rbp], 0
	mov	DWORD PTR -240[rbp], 1
	mov	DWORD PTR -236[rbp], 1
	mov	r9d, DWORD PTR -240[rbp]
	mov	r8d, DWORD PTR -244[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	edx, DWORD PTR -252[rbp]
	mov	esi, DWORD PTR -248[rbp]
	mov	rax, QWORD PTR -232[rbp]
	sub	rsp, 8
	mov	edi, DWORD PTR -236[rbp]
	push	rdi
	mov	rdi, rax
	call	XGrabKey@PLT
	add	rsp, 16
	mov	rcx, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, 1
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
.L5:
	mov	DWORD PTR -256[rbp], 0
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 2
	jne	.L10
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR -216[rbp]
	mov	edx, DWORD PTR -252[rbp]
	mov	esi, DWORD PTR -248[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	XUngrabKey@PLT
	mov	DWORD PTR -256[rbp], 1
.L10:
	nop
	cmp	DWORD PTR -256[rbp], 0
	jne	.L11
	jmp	.L5
.L11:
	nop
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"48573937.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hot key pressed!\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L12
	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	r3, [r3, #8]
	str	r3, [fp, #-132]
	mov	r3, #5
	str	r3, [fp, #-128]
	mov	r1, #89
	ldr	r0, [fp, #-136]
	bl	XKeysymToKeycode
	mov	r3, r0
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-132]
	str	r3, [fp, #-120]
	mov	r3, #0
	str	r3, [fp, #-116]
	mov	r3, #1
	str	r3, [fp, #-112]
	mov	r3, #1
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-108]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-112]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-116]
	str	r3, [sp]
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-136]
	bl	XGrabKey
	mov	r2, #1
	ldr	r1, [fp, #-132]
	ldr	r0, [fp, #-136]
	bl	XSelectInput
.L5:
	mov	r3, #0
	str	r3, [fp, #-140]
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, [fp, #-136]
	bl	XNextEvent
	ldr	r3, [fp, #-104]
	cmp	r3, #2
	bne	.L10
	ldr	r0, .L12+4
	bl	printf
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-128]
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-136]
	bl	XUngrabKey
	mov	r3, #1
	str	r3, [fp, #-140]
.L10:
	nop
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	bne	.L11
	b	.L5
.L11:
	nop
	ldr	r0, [fp, #-136]
	bl	XCloseDisplay
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
