	.file	"40763471.c"
	.intel_syntax noprefix
	.text
	.local	conn
	.comm	conn,8,8
	.local	screen
	.comm	screen,8,8
	.section	.rodata
	.align 8
.LC0:
	.string	"Cannot open display, xcb connection has error!\n"
.LC1:
	.string	"loop"
.LC2:
	.string	"EXPOSE"
.LC3:
	.string	"KEY PRESS"
	.align 8
.LC4:
	.string	"Button press = %d, Modifier = %d\n"
.LC5:
	.string	"BUTTON PRESS"
.LC6:
	.string	"Default"
	.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	xcb_connect@PLT
	mov	QWORD PTR conn[rip], rax
	mov	rax, QWORD PTR conn[rip]
	mov	rdi, rax
	call	xcb_connection_has_error@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 47
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR conn[rip]
	mov	rdi, rax
	call	xcb_get_setup@PLT
	mov	rdi, rax
	call	xcb_setup_roots_iterator@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	DWORD PTR -60[rbp], 0
	jmp	.L3
.L4:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	xcb_screen_next@PLT
	add	DWORD PTR -60[rbp], 1
.L3:
	mov	eax, DWORD PTR -64[rbp]
	cmp	DWORD PTR -60[rbp], eax
	jl	.L4
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR screen[rip], rax
	mov	DWORD PTR -12[rbp], 8028221
	mov	rax, QWORD PTR screen[rip]
	mov	esi, DWORD PTR [rax]
	mov	rax, QWORD PTR conn[rip]
	lea	rdx, -12[rbp]
	mov	rcx, rdx
	mov	edx, 2048
	mov	rdi, rax
	call	xcb_change_window_attributes@PLT
	mov	rax, QWORD PTR screen[rip]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR screen[rip]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR conn[rip]
	push	8
	push	1
	push	0
	push	rcx
	mov	r9d, 1
	mov	r8d, 1
	mov	ecx, 12
	mov	esi, 0
	mov	rdi, rax
	call	xcb_grab_button@PLT
	add	rsp, 32
	mov	rax, QWORD PTR screen[rip]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR screen[rip]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR conn[rip]
	push	8
	push	3
	push	0
	push	rcx
	mov	r9d, 1
	mov	r8d, 1
	mov	ecx, 12
	mov	esi, 0
	mov	rdi, rax
	call	xcb_grab_button@PLT
	add	rsp, 32
	mov	rax, QWORD PTR screen[rip]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR screen[rip]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR conn[rip]
	push	0
	push	1
	push	0
	push	rcx
	mov	r9d, 1
	mov	r8d, 1
	mov	ecx, 12
	mov	esi, 0
	mov	rdi, rax
	call	xcb_grab_button@PLT
	add	rsp, 32
	mov	rax, QWORD PTR conn[rip]
	mov	rdi, rax
	call	xcb_flush@PLT
	jmp	.L5
.L11:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	and	al, 127
	cmp	eax, 12
	je	.L6
	cmp	eax, 12
	jg	.L7
	cmp	eax, 2
	je	.L8
	cmp	eax, 4
	je	.L9
	jmp	.L7
.L6:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L10
.L8:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 28[rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR 28[rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR 1[rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L7:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L10:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
.L5:
	mov	rax, QWORD PTR conn[rip]
	mov	rdi, rax
	call	xcb_wait_for_event@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jne	.L11
	mov	rax, QWORD PTR conn[rip]
	mov	rdi, rax
	call	xcb_disconnect@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	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	"40763471.c"
	.text
	.local	conn
	.comm	conn,4,4
	.local	screen
	.comm	screen,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Cannot open display, xcb connection has error!\012\000"
	.align	2
.LC1:
	.ascii	"loop\000"
	.align	2
.LC2:
	.ascii	"EXPOSE\000"
	.align	2
.LC3:
	.ascii	"KEY PRESS\000"
	.align	2
.LC4:
	.ascii	"Button press = %d, Modifier = %d\012\000"
	.align	2
.LC5:
	.ascii	"BUTTON PRESS\000"
	.align	2
.LC6:
	.ascii	"Default\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #44
	mov	r1, r3
	mov	r0, #0
	bl	xcb_connect
	mov	r3, r0
	ldr	r2, .L14+4
	str	r3, [r2]
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	xcb_connection_has_error
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r2, #47
	mov	r1, #1
	ldr	r0, .L14+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	xcb_get_setup
	mov	r2, r0
	sub	r3, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	xcb_setup_roots_iterator
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L3
.L4:
	sub	r3, fp, #24
	mov	r0, r3
	bl	xcb_screen_next
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L3:
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-24]
	ldr	r2, .L14+16
	str	r3, [r2]
	ldr	r3, .L14+20
	str	r3, [fp, #-12]
	ldr	r3, .L14+4
	ldr	r0, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r1, [r3]
	sub	r3, fp, #12
	mov	r2, #2048
	bl	xcb_change_window_attributes
	ldr	r3, .L14+4
	ldr	r0, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, #8
	str	r1, [sp, #20]
	mov	r1, #1
	str	r1, [sp, #16]
	mov	r1, #0
	str	r1, [sp, #12]
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #12
	mov	r1, #0
	bl	xcb_grab_button
	ldr	r3, .L14+4
	ldr	r0, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, #8
	str	r1, [sp, #20]
	mov	r1, #3
	str	r1, [sp, #16]
	mov	r1, #0
	str	r1, [sp, #12]
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #12
	mov	r1, #0
	bl	xcb_grab_button
	ldr	r3, .L14+4
	ldr	r0, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, .L14+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, #0
	str	r1, [sp, #20]
	mov	r1, #1
	str	r1, [sp, #16]
	mov	r1, #0
	str	r1, [sp, #12]
	str	r3, [sp, #8]
	mov	r3, #1
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #12
	mov	r1, #0
	bl	xcb_grab_button
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	xcb_flush
	b	.L5
.L11:
	ldr	r0, .L14+24
	bl	puts
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	bic	r3, r3, #128
	cmp	r3, #12
	beq	.L6
	cmp	r3, #12
	bgt	.L7
	cmp	r3, #2
	beq	.L8
	cmp	r3, #4
	beq	.L9
	b	.L7
.L6:
	ldr	r0, .L14+28
	bl	puts
	b	.L10
.L8:
	ldr	r0, .L14+32
	bl	puts
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	ldrh	r3, [r3, #28]
	mov	r2, r3
	ldr	r0, .L14+36
	bl	printf
	b	.L10
.L9:
	ldr	r0, .L14+40
	bl	puts
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-32]
	ldrh	r3, [r3, #28]
	mov	r2, r3
	ldr	r0, .L14+36
	bl	printf
	b	.L10
.L7:
	ldr	r0, .L14+44
	bl	puts
.L10:
	ldr	r0, [fp, #-36]
	bl	free
.L5:
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	xcb_wait_for_event
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L14+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	xcb_disconnect
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC7
	.word	conn
	.word	stderr
	.word	.LC0
	.word	screen
	.word	8028221
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
