	.file	"552670.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"DISPLAY"
.LC1:
	.string	"XSendEvent Failed"
	.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, 224
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	call	getenv@PLT
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR -216[rbp], rax
	lea	rax, -208[rbp]
	mov	rsi, rax
	mov	eax, 0
	mov	edx, 24
	mov	rdi, rsi
	mov	rcx, rdx
	rep stosq
	mov	DWORD PTR -208[rbp], 4
	mov	DWORD PTR -124[rbp], 1
	mov	DWORD PTR -120[rbp], 1
	mov	rax, QWORD PTR -216[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -216[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	lea	rax, -208[rbp]
	lea	r9, 76[rax]
	lea	rax, -208[rbp]
	lea	r8, 72[rax]
	lea	rax, -208[rbp]
	lea	rcx, 32[rax]
	lea	rax, -208[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -216[rbp]
	sub	rsp, 8
	lea	rdi, -208[rbp]
	add	rdi, 80
	push	rdi
	lea	rdi, -208[rbp]
	add	rdi, 68
	push	rdi
	lea	rdi, -208[rbp]
	add	rdi, 64
	push	rdi
	mov	rdi, rax
	call	XQueryPointer@PLT
	add	rsp, 32
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -160[rbp], rax
	jmp	.L2
.L3:
	mov	rax, QWORD PTR -160[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	rsi, QWORD PTR -176[rbp]
	lea	rax, -208[rbp]
	lea	r9, 76[rax]
	lea	rax, -208[rbp]
	lea	r8, 72[rax]
	lea	rax, -208[rbp]
	lea	rcx, 48[rax]
	lea	rax, -208[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -216[rbp]
	sub	rsp, 8
	lea	rdi, -208[rbp]
	add	rdi, 80
	push	rdi
	lea	rdi, -208[rbp]
	add	rdi, 68
	push	rdi
	lea	rdi, -208[rbp]
	add	rdi, 64
	push	rdi
	mov	rdi, rax
	call	XQueryPointer@PLT
	add	rsp, 32
.L2:
	mov	rax, QWORD PTR -160[rbp]
	test	rax, rax
	jne	.L3
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	r8, rdx
	mov	ecx, 4095
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	XSendEvent@PLT
	test	eax, eax
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L4:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	XFlush@PLT
	mov	edi, 100000
	mov	eax, 0
	call	usleep@PLT
	mov	DWORD PTR -208[rbp], 5
	mov	DWORD PTR -128[rbp], 256
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	r8, rdx
	mov	ecx, 4095
	mov	edx, 1
	mov	esi, 0
	mov	rdi, rax
	call	XSendEvent@PLT
	test	eax, eax
	jne	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L5:
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	XFlush@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	"552670.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"DISPLAY\000"
	.align	2
.LC1:
	.ascii	"XSendEvent Failed\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L8+4
	bl	getenv
	mov	r3, r0
	mov	r0, r3
	bl	XOpenDisplay
	str	r0, [fp, #-108]
	sub	r3, fp, #104
	mov	r0, r3
	mov	r3, #96
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #4
	str	r3, [fp, #-104]
	mov	r3, #1
	str	r3, [fp, #-52]
	mov	r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-108]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-108]
	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, #104
	add	r0, r3, #16
	sub	r3, fp, #104
	add	r2, r3, #20
	sub	r3, fp, #104
	add	r3, r3, #48
	str	r3, [sp, #16]
	sub	r3, fp, #104
	add	r3, r3, #36
	str	r3, [sp, #12]
	sub	r3, fp, #104
	add	r3, r3, #32
	str	r3, [sp, #8]
	sub	r3, fp, #104
	add	r3, r3, #44
	str	r3, [sp, #4]
	sub	r3, fp, #104
	add	r3, r3, #40
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-108]
	bl	XQueryPointer
	ldr	r3, [fp, #-88]
	str	r3, [fp, #-80]
	b	.L2
.L3:
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-88]
	ldr	r1, [fp, #-88]
	sub	r3, fp, #104
	add	r0, r3, #24
	sub	r3, fp, #104
	add	r2, r3, #20
	sub	r3, fp, #104
	add	r3, r3, #48
	str	r3, [sp, #16]
	sub	r3, fp, #104
	add	r3, r3, #36
	str	r3, [sp, #12]
	sub	r3, fp, #104
	add	r3, r3, #32
	str	r3, [sp, #8]
	sub	r3, fp, #104
	add	r3, r3, #44
	str	r3, [sp, #4]
	sub	r3, fp, #104
	add	r3, r3, #40
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, [fp, #-108]
	bl	XQueryPointer
.L2:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L3
	sub	r3, fp, #104
	str	r3, [sp]
	ldr	r3, .L8+8
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-108]
	bl	XSendEvent
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r0, .L8+12
	bl	puts
.L4:
	ldr	r0, [fp, #-108]
	bl	XFlush
	ldr	r0, .L8+16
	bl	usleep
	mov	r3, #5
	str	r3, [fp, #-104]
	mov	r3, #256
	str	r3, [fp, #-56]
	sub	r3, fp, #104
	str	r3, [sp]
	ldr	r3, .L8+8
	mov	r2, #1
	mov	r1, #0
	ldr	r0, [fp, #-108]
	bl	XSendEvent
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L8+12
	bl	puts
.L5:
	ldr	r0, [fp, #-108]
	bl	XFlush
	mov	r3, #0
	ldr	r2, .L8
	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}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	.LC0
	.word	4095
	.word	.LC1
	.word	100000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
