	.file	"272073.c"
	.intel_syntax noprefix
	.text
	.globl	XA_STRING
	.data
	.align 4
	.type	XA_STRING, @object
	.size	XA_STRING, 4
XA_STRING:
	.long	31
	.local	display
	.comm	display,8,8
	.local	window
	.comm	window,8,8
	.local	UTF8
	.comm	UTF8,8,8
	.section	.rodata
.LC0:
	.string	"CLIPBOARD"
.LC1:
	.string	"XSEL_DATA"
	.text
	.globl	XPasteType
	.type	XPasteType, @function
XPasteType:
.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, 288
	mov	QWORD PTR -280[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -232[rbp], 0
	mov	rax, QWORD PTR display[rip]
	mov	edx, 0
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR -224[rbp], rax
	mov	rax, QWORD PTR display[rip]
	mov	edx, 0
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	rdi, QWORD PTR window[rip]
	mov	rax, QWORD PTR display[rip]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rdx, QWORD PTR -280[rbp]
	mov	rsi, QWORD PTR -224[rbp]
	mov	r9d, 0
	mov	r8, rdi
	mov	rdi, rax
	call	XConvertSelection@PLT
	mov	rax, QWORD PTR display[rip]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	rax, QWORD PTR display[rip]
	lea	rdx, -208[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	XNextEvent@PLT
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 31
	jne	.L2
	mov	rax, QWORD PTR -168[rbp]
	cmp	QWORD PTR -224[rbp], rax
	jne	.L8
	mov	rax, QWORD PTR -152[rbp]
	test	rax, rax
	je	.L2
	mov	rdx, QWORD PTR -152[rbp]
	mov	rsi, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -184[rbp]
	lea	rcx, -248[rbp]
	push	rcx
	lea	rcx, -264[rbp]
	push	rcx
	lea	rcx, -256[rbp]
	push	rcx
	lea	rcx, -268[rbp]
	push	rcx
	lea	rcx, -240[rbp]
	push	rcx
	push	0
	mov	r9d, 0
	mov	r8, -1
	mov	ecx, 0
	mov	rdi, rax
	call	XGetWindowProperty@PLT
	add	rsp, 48
	mov	rdx, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR UTF8[rip]
	cmp	rdx, rax
	je	.L4
	mov	eax, DWORD PTR XA_STRING[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -240[rbp]
	cmp	rdx, rax
	jne	.L5
.L4:
	mov	rdx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -248[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -248[rbp]
	mov	rdi, rax
	call	XFree@PLT
.L5:
	mov	rdx, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XDeleteProperty@PLT
	jmp	.L2
.L8:
	nop
.L2:
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	XPasteType, .-XPasteType
	.section	.rodata
.LC2:
	.string	"UTF8_STRING"
	.text
	.globl	XPaste
	.type	XPaste, @function
XPaste:
.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, 16
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR display[rip]
	mov	edx, 1
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR UTF8[rip], rax
	mov	rax, QWORD PTR UTF8[rip]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR UTF8[rip]
	mov	rdi, rax
	call	XPasteType
	mov	QWORD PTR -8[rbp], rax
.L10:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	mov	eax, DWORD PTR XA_STRING[rip]
	cdqe
	mov	rdi, rax
	call	XPasteType
	mov	QWORD PTR -8[rbp], rax
.L11:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	XPaste, .-XPaste
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR display[rip], rax
	mov	rax, QWORD PTR display[rip]
	mov	eax, DWORD PTR 224[rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rcx, QWORD PTR 88[rax]
	mov	rax, QWORD PTR display[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rdx, QWORD PTR 96[rax]
	mov	rax, QWORD PTR display[rip]
	mov	rsi, QWORD PTR 232[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 7
	add	rax, rsi
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR display[rip]
	sub	rsp, 8
	push	rcx
	push	rdx
	push	0
	mov	r9d, 1
	mov	r8d, 1
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XCreateSimpleWindow@PLT
	add	rsp, 32
	mov	QWORD PTR window[rip], rax
	mov	eax, 0
	call	XPaste
	mov	rdi, rax
	call	puts@PLT
	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	"272073.c"
	.text
	.global	XA_STRING
	.data
	.align	2
	.type	XA_STRING, %object
	.size	XA_STRING, 4
XA_STRING:
	.word	31
	.local	display
	.comm	display,4,4
	.local	window
	.comm	window,4,4
	.local	UTF8
	.comm	UTF8,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"CLIPBOARD\000"
	.align	2
.LC1:
	.ascii	"XSEL_DATA\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	XPasteType
	.syntax unified
	.arm
	.fpu softvfp
	.type	XPasteType, %function
XPasteType:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #176
	str	r0, [fp, #-144]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-116]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L9+8
	mov	r0, r3
	bl	XInternAtom
	str	r0, [fp, #-112]
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L9+12
	mov	r0, r3
	bl	XInternAtom
	str	r0, [fp, #-108]
	ldr	r3, .L9+4
	ldr	r0, [r3]
	ldr	r3, .L9+16
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [fp, #-108]
	ldr	r2, [fp, #-144]
	ldr	r1, [fp, #-112]
	bl	XConvertSelection
	ldr	r3, .L9+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	XSync
	ldr	r3, .L9+4
	ldr	r3, [r3]
	sub	r2, fp, #104
	mov	r1, r2
	mov	r0, r3
	bl	XNextEvent
	ldr	r3, [fp, #-104]
	cmp	r3, #31
	bne	.L2
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-76]
	sub	r3, fp, #124
	str	r3, [sp, #28]
	sub	r3, fp, #132
	str	r3, [sp, #24]
	sub	r3, fp, #128
	str	r3, [sp, #20]
	sub	r3, fp, #136
	str	r3, [sp, #16]
	sub	r3, fp, #120
	str	r3, [sp, #12]
	mov	r3, #0
	str	r3, [sp, #8]
	mov	r3, #0
	str	r3, [sp, #4]
	mvn	r3, #0
	str	r3, [sp]
	mov	r3, #0
	bl	XGetWindowProperty
	ldr	r2, [fp, #-120]
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	ldr	r3, [fp, #-120]
	ldr	r2, .L9+24
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L5
.L4:
	ldr	r3, [fp, #-124]
	ldr	r2, [fp, #-128]
	mov	r1, r2
	mov	r0, r3
	bl	strndup
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-124]
	mov	r0, r3
	bl	XFree
.L5:
	ldr	r3, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r2, [fp, #-76]
	mov	r0, r3
	bl	XDeleteProperty
	b	.L2
.L8:
	nop
.L2:
	ldr	r3, [fp, #-116]
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC2
	.word	display
	.word	.LC0
	.word	.LC1
	.word	window
	.word	UTF8
	.word	XA_STRING
	.size	XPasteType, .-XPasteType
	.section	.rodata
	.align	2
.LC3:
	.ascii	"UTF8_STRING\000"
	.text
	.align	2
	.global	XPaste
	.syntax unified
	.arm
	.fpu softvfp
	.type	XPaste, %function
XPaste:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L15
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L15+4
	mov	r0, r3
	bl	XInternAtom
	mov	r3, r0
	ldr	r2, .L15+8
	str	r3, [r2]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L15+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	XPasteType
	str	r0, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	XPasteType
	str	r0, [fp, #-8]
.L13:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	display
	.word	.LC3
	.word	UTF8
	.word	XA_STRING
	.size	XPaste, .-XPaste
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #0
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L19
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r3, [r3, #132]
	str	r3, [fp, #-8]
	ldr	r3, .L19
	ldr	ip, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	lr, [r3, #8]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r1, [r3, #140]
	ldr	r2, [fp, #-8]
	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, .L19
	ldr	r3, [r3]
	ldr	r0, [r3, #140]
	ldr	r2, [fp, #-8]
	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, #1
	str	r3, [sp, #4]
	mov	r3, #1
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	mov	r1, lr
	mov	r0, ip
	bl	XCreateSimpleWindow
	mov	r3, r0
	ldr	r2, .L19+4
	str	r3, [r2]
	bl	XPaste
	mov	r3, r0
	mov	r0, r3
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	display
	.word	window
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
