	.file	"85945.c"
	.intel_syntax noprefix
	.text
	.local	mainDisplay
	.comm	mainDisplay,8,8
	.local	registered
	.comm	registered,4,4
	.section	.rodata
.LC0:
	.string	":0.0"
	.section	.data.rel.local,"aw"
	.align 8
	.type	displayName, @object
	.size	displayName, 8
displayName:
	.quad	.LC0
	.local	hasDisplayNameChanged
	.comm	hasDisplayNameChanged,4,4
	.text
	.globl	XCloseMainDisplay
	.type	XCloseMainDisplay, @function
XCloseMainDisplay:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR mainDisplay[rip]
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR mainDisplay[rip]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	QWORD PTR mainDisplay[rip], 0
.L3:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	XCloseMainDisplay, .-XCloseMainDisplay
	.globl	getXDisplay
	.type	getXDisplay, @function
getXDisplay:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR displayName[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getXDisplay, .-getXDisplay
	.globl	setXDisplay
	.type	setXDisplay, @function
setXDisplay:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR displayName[rip], rax
	mov	DWORD PTR hasDisplayNameChanged[rip], 1
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setXDisplay, .-setXDisplay
	.section	.rodata
.LC1:
	.string	"Could not open main display\n"
	.text
	.globl	XGetMainDisplay
	.type	XGetMainDisplay, @function
XGetMainDisplay:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR hasDisplayNameChanged[rip]
	test	eax, eax
	je	.L8
	call	XCloseMainDisplay
	mov	DWORD PTR hasDisplayNameChanged[rip], 0
.L8:
	mov	rax, QWORD PTR mainDisplay[rip]
	test	rax, rax
	jne	.L9
	mov	rax, QWORD PTR displayName[rip]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR mainDisplay[rip], rax
	mov	rax, QWORD PTR mainDisplay[rip]
	test	rax, rax
	jne	.L10
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR mainDisplay[rip], rax
.L10:
	mov	rax, QWORD PTR mainDisplay[rip]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	jmp	.L9
.L11:
	mov	eax, DWORD PTR registered[rip]
	test	eax, eax
	jne	.L9
	lea	rdi, XCloseMainDisplay[rip]
	call	atexit@PLT
	mov	DWORD PTR registered[rip], 1
.L9:
	mov	rax, QWORD PTR mainDisplay[rip]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	XGetMainDisplay, .-XGetMainDisplay
	.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	"85945.c"
	.text
	.local	mainDisplay
	.comm	mainDisplay,4,4
	.local	registered
	.comm	registered,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	":0.0\000"
	.data
	.align	2
	.type	displayName, %object
	.size	displayName, 4
displayName:
	.word	.LC0
	.local	hasDisplayNameChanged
	.comm	hasDisplayNameChanged,4,4
	.text
	.align	2
	.global	XCloseMainDisplay
	.syntax unified
	.arm
	.fpu softvfp
	.type	XCloseMainDisplay, %function
XCloseMainDisplay:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r0, r3
	bl	XCloseDisplay
	ldr	r3, .L4
	mov	r2, #0
	str	r2, [r3]
.L3:
	nop
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	mainDisplay
	.size	XCloseMainDisplay, .-XCloseMainDisplay
	.align	2
	.global	getXDisplay
	.syntax unified
	.arm
	.fpu softvfp
	.type	getXDisplay, %function
getXDisplay:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	displayName
	.size	getXDisplay, .-getXDisplay
	.align	2
	.global	setXDisplay
	.syntax unified
	.arm
	.fpu softvfp
	.type	setXDisplay, %function
setXDisplay:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	strdup
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L11
	str	r2, [r3]
	ldr	r3, .L11+4
	mov	r2, #1
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	displayName
	.word	hasDisplayNameChanged
	.size	setXDisplay, .-setXDisplay
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Could not open main display\012\000"
	.text
	.align	2
	.global	XGetMainDisplay
	.syntax unified
	.arm
	.fpu softvfp
	.type	XGetMainDisplay, %function
XGetMainDisplay:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	bl	XCloseMainDisplay
	ldr	r3, .L19
	mov	r2, #0
	str	r2, [r3]
.L14:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L19+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L19+4
	str	r3, [r2]
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	mov	r0, #0
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L19+4
	str	r3, [r2]
.L16:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L19+12
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L19+16
	bl	fwrite
	b	.L15
.L17:
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L19+24
	bl	atexit
	ldr	r3, .L19+20
	mov	r2, #1
	str	r2, [r3]
.L15:
	ldr	r3, .L19+4
	ldr	r3, [r3]
	mov	r0, r3
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	hasDisplayNameChanged
	.word	mainDisplay
	.word	displayName
	.word	stderr
	.word	.LC1
	.word	registered
	.word	XCloseMainDisplay
	.size	XGetMainDisplay, .-XGetMainDisplay
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
