	.file	"932631.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Hello, World!"
.LC1:
	.string	"Cannot open display\n"
.LC2:
	.string	"WM_DELETE_WINDOW"
	.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
	lea	rax, .LC0[rip]
	mov	QWORD PTR -232[rbp], rax
	mov	BYTE PTR -245[rbp], 0
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -224[rbp], rax
	cmp	QWORD PTR -224[rbp], 0
	jne	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -244[rbp], eax
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rcx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR -224[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -244[rbp]
	cdqe
	sal	rax, 7
	add	rax, rsi
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -224[rbp]
	sub	rsp, 8
	push	rcx
	push	rdx
	push	0
	mov	r9d, 480
	mov	r8d, 640
	mov	ecx, 10
	mov	edx, 10
	mov	rdi, rax
	call	XCreateSimpleWindow@PLT
	add	rsp, 32
	mov	QWORD PTR -216[rbp], rax
	mov	rax, QWORD PTR -224[rbp]
	mov	edx, 0
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR -240[rbp], rax
	lea	rdx, -240[rbp]
	mov	rsi, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	ecx, 1
	mov	rdi, rax
	call	XSetWMProtocols@PLT
	mov	rcx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	edx, 163841
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	mov	rdx, QWORD PTR -216[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapWindow@PLT
	jmp	.L3
.L4:
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
.L3:
	movzx	eax, BYTE PTR -245[rbp]
	xor	eax, 1
	test	al, al
	jne	.L4
	mov	rax, QWORD PTR -224[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	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	"932631.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello, World!\000"
	.align	2
.LC1:
	.ascii	"Cannot open display\012\000"
	.align	2
.LC2:
	.ascii	"WM_DELETE_WINDOW\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 = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L7+4
	str	r3, [fp, #-120]
	mov	r3, #0
	strb	r3, [fp, #-125]
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L7+8
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L7+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-116]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-116]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	ip, [r3, #8]
	ldr	r3, [fp, #-116]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r1, [r3, #56]
	ldr	r3, [fp, #-116]
	ldr	r0, [r3, #140]
	ldr	r2, [fp, #-112]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r0, r3
	ldr	r3, [r3, #52]
	str	r3, [sp, #16]
	str	r1, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #480
	str	r3, [sp, #4]
	mov	r3, #640
	str	r3, [sp]
	mov	r3, #10
	mov	r2, #10
	mov	r1, ip
	ldr	r0, [fp, #-116]
	bl	XCreateSimpleWindow
	str	r0, [fp, #-108]
	mov	r2, #0
	ldr	r1, .L7+16
	ldr	r0, [fp, #-116]
	bl	XInternAtom
	mov	r3, r0
	str	r3, [fp, #-124]
	sub	r2, fp, #124
	mov	r3, #1
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-116]
	bl	XSetWMProtocols
	ldr	r2, .L7+20
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-116]
	bl	XSelectInput
	ldr	r1, [fp, #-108]
	ldr	r0, [fp, #-116]
	bl	XMapWindow
	b	.L3
.L4:
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	XNextEvent
.L3:
	ldrb	r3, [fp, #-125]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L4
	ldr	r0, [fp, #-116]
	bl	XCloseDisplay
	mov	r3, #0
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	163841
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
