	.file	"385582.c"
	.intel_syntax noprefix
	.text
	.globl	g_display
	.bss
	.align 8
	.type	g_display, @object
	.size	g_display, 8
g_display:
	.zero	8
	.globl	g_x_socket
	.align 4
	.type	g_x_socket, @object
	.size	g_x_socket, 4
g_x_socket:
	.zero	4
	.section	.rodata
.LC0:
	.string	"XOpenDisplay 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, 368
	mov	DWORD PTR -356[rbp], edi
	mov	QWORD PTR -368[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 g_display[rip], rax
	mov	rax, QWORD PTR g_display[rip]
	test	rax, rax
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L7
.L2:
	mov	rax, QWORD PTR g_display[rip]
	mov	rdi, rax
	call	XConnectionNumber@PLT
	mov	DWORD PTR g_x_socket[rip], eax
.L6:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -336[rbp]
	mov	rdi, rdx
#APP
# 45 "the_stack_data/385582.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -348[rbp], edx
	mov	DWORD PTR -344[rbp], eax
	mov	eax, DWORD PTR g_x_socket[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -336[rbp+rax*8]
	mov	eax, DWORD PTR g_x_socket[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -336[rbp+rax*8], rdx
	mov	eax, DWORD PTR g_x_socket[rip]
	lea	edi, 1[rax]
	lea	rax, -336[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -340[rbp], eax
	cmp	DWORD PTR -340[rbp], 0
	js	.L10
	mov	rax, QWORD PTR g_display[rip]
	lea	rdx, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	jmp	.L6
.L10:
	nop
	mov	eax, 0
.L7:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	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	"385582.c"
	.text
	.global	g_display
	.bss
	.align	2
	.type	g_display, %object
	.size	g_display, 4
g_display:
	.space	4
	.global	g_x_socket
	.align	2
	.type	g_x_socket, %object
	.size	g_x_socket, 4
g_x_socket:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"XOpenDisplay failed\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 = 248
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #256
	str	r0, [fp, #-248]
	str	r1, [fp, #-252]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L13+4
	str	r3, [r2]
	ldr	r3, .L13+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L13+8
	bl	puts
	mov	r3, #0
	b	.L9
.L2:
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	XConnectionNumber
	mov	r3, r0
	ldr	r2, .L13+12
	str	r3, [r2]
.L8:
	sub	r3, fp, #136
	str	r3, [fp, #-240]
	mov	r3, #0
	str	r3, [fp, #-244]
	b	.L4
.L5:
	ldr	r3, [fp, #-240]
	ldr	r2, [fp, #-244]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-244]
	add	r3, r3, #1
	str	r3, [fp, #-244]
.L4:
	ldr	r3, [fp, #-244]
	cmp	r3, #31
	bls	.L5
	ldr	r3, .L13+12
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, .L13+12
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, .L13+12
	ldr	r3, [r3]
	add	r0, r3, #1
	sub	r1, fp, #136
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-236]
	ldr	r3, [fp, #-236]
	cmp	r3, #0
	blt	.L12
	ldr	r3, .L13+4
	ldr	r3, [r3]
	sub	r2, fp, #232
	mov	r1, r2
	mov	r0, r3
	bl	XNextEvent
	b	.L8
.L12:
	nop
	mov	r3, #0
.L9:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC1
	.word	g_display
	.word	.LC0
	.word	g_x_socket
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
