	.file	"103265155.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Pointer coordinates: %d, %d\n"
	.text
	.globl	do_stuff
	.type	do_stuff, @function
do_stuff:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -216[rbp], 0
	jmp	.L2
.L3:
	lea	rax, -208[rbp]
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -216[rbp], 1
.L2:
	cmp	QWORD PTR -216[rbp], 191
	jbe	.L3
	jmp	.L4
.L6:
	mov	ecx, DWORD PTR -132[rbp]
	mov	edx, DWORD PTR -136[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 3
	jne	.L4
	mov	eax, DWORD PTR -124[rbp]
	cmp	eax, 24
	je	.L8
.L4:
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	cmp	eax, 3
	jne	.L6
	jmp	.L5
.L8:
	nop
.L5:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	do_stuff, .-do_stuff
	.section	.rodata
.LC1:
	.string	"XOpenDisplay() failed"
.LC2:
	.string	"%s\n"
.LC3:
	.string	"XMapWindow() failed"
.LC4:
	.string	"XSelectInput() failed"
	.text
	.globl	x11_demo
	.type	x11_demo, @function
x11_demo:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jne	.L10
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC1[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L9
.L10:
	mov	QWORD PTR -152[rbp], 0
	jmp	.L12
.L13:
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -152[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	add	QWORD PTR -152[rbp], 1
.L12:
	cmp	QWORD PTR -152[rbp], 111
	jbe	.L13
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR -144[rbp]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -144[rbp]
	push	0
	push	0
	push	0
	push	1
	push	0
	push	0
	mov	r9d, 500
	mov	r8d, 500
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateWindow@PLT
	add	rsp, 48
	mov	QWORD PTR -136[rbp], rax
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XMapWindow@PLT
	cmp	eax, 3
	jne	.L14
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC3[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L14:
	mov	rcx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	edx, 79
	mov	rsi, rcx
	mov	rdi, rax
	call	XSelectInput@PLT
	cmp	eax, 3
	jne	.L15
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC4[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L15:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	do_stuff
	mov	rdx, QWORD PTR -136[rbp]
	mov	rax, QWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XDestroyWindow@PLT
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	DWORD PTR -156[rbp], eax
	add	DWORD PTR -156[rbp], 1
.L9:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	x11_demo, .-x11_demo
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	call	x11_demo
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"103265155.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Pointer coordinates: %d, %d\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_stuff
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_stuff, %function
do_stuff:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-108]
	b	.L2
.L3:
	sub	r3, fp, #104
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-108]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L2:
	ldr	r3, [fp, #-108]
	cmp	r3, #95
	bls	.L3
	b	.L4
.L6:
	ldr	r3, .L9+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-60]
	ldr	r1, .L9+8
	bl	fprintf
	ldr	r3, [fp, #-104]
	cmp	r3, #3
	bne	.L4
	ldr	r3, [fp, #-52]
	cmp	r3, #24
	beq	.L8
.L4:
	sub	r3, fp, #104
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	XNextEvent
	mov	r3, r0
	cmp	r3, #3
	bne	.L6
	b	.L5
.L8:
	nop
.L5:
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	stderr
	.word	.LC0
	.size	do_stuff, .-do_stuff
	.section	.rodata
	.align	2
.LC2:
	.ascii	"XOpenDisplay() failed\000"
	.align	2
.LC3:
	.ascii	"%s\012\000"
	.align	2
.LC4:
	.ascii	"XMapWindow() failed\000"
	.align	2
.LC5:
	.ascii	"XSelectInput() failed\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	x11_demo
	.syntax unified
	.arm
	.fpu softvfp
	.type	x11_demo, %function
x11_demo:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bne	.L12
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, .L19+8
	ldr	r1, .L19+12
	mov	r0, r3
	bl	fprintf
	b	.L11
.L12:
	mov	r3, #0
	str	r3, [fp, #-84]
	b	.L14
.L15:
	sub	r2, fp, #68
	ldr	r3, [fp, #-84]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L14:
	ldr	r3, [fp, #-84]
	cmp	r3, #59
	bls	.L15
	ldr	r3, [fp, #-80]
	ldr	r2, [r3, #140]
	ldr	r3, [fp, #-80]
	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]
	mov	r3, #0
	str	r3, [sp, #28]
	mov	r3, #0
	str	r3, [sp, #24]
	mov	r3, #0
	str	r3, [sp, #20]
	mov	r3, #1
	str	r3, [sp, #16]
	mov	r3, #0
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #500
	str	r3, [sp, #4]
	mov	r3, #500
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-80]
	bl	XCreateWindow
	str	r0, [fp, #-76]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-80]
	bl	XMapWindow
	mov	r3, r0
	cmp	r3, #3
	bne	.L16
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, .L19+16
	ldr	r1, .L19+12
	mov	r0, r3
	bl	fprintf
.L16:
	mov	r2, #79
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-80]
	bl	XSelectInput
	mov	r3, r0
	cmp	r3, #3
	bne	.L17
	ldr	r3, .L19+4
	ldr	r3, [r3]
	ldr	r2, .L19+20
	ldr	r1, .L19+12
	mov	r0, r3
	bl	fprintf
.L17:
	ldr	r0, [fp, #-80]
	bl	do_stuff
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-80]
	bl	XDestroyWindow
	ldr	r0, [fp, #-80]
	bl	XCloseDisplay
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L11:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC6
	.word	stderr
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	x11_demo, .-x11_demo
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	bl	x11_demo
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
