	.file	"102294.c"
	.intel_syntax noprefix
	.text
	.globl	dpy
	.bss
	.align 8
	.type	dpy, @object
	.size	dpy, 8
dpy:
	.zero	8
	.globl	exit_larswm
	.align 8
	.type	exit_larswm, @object
	.size	exit_larswm, 8
exit_larswm:
	.zero	8
	.globl	restart_larswm
	.align 8
	.type	restart_larswm, @object
	.size	restart_larswm, 8
restart_larswm:
	.zero	8
	.globl	bartext_larswm
	.align 8
	.type	bartext_larswm, @object
	.size	bartext_larswm, 8
bartext_larswm:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"usage: larsremote [-display display] <message text | exit | restart>\n"
	.text
	.globl	usage
	.type	usage, @function
usage:
.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 stderr[rip]
	mov	rcx, rax
	mov	edx, 69
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.globl	sendcmessage
	.type	sendcmessage, @function
sendcmessage:
.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, 256
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[rbp], rsi
	mov	QWORD PTR -248[rbp], rdx
	mov	DWORD PTR -252[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -208[rbp]
	mov	edx, 192
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -208[rbp], 33
	mov	rax, QWORD PTR -232[rbp]
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -240[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -160[rbp], 32
	mov	rax, QWORD PTR -248[rbp]
	mov	QWORD PTR -152[rbp], rax
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	cmp	DWORD PTR -252[rbp], 0
	je	.L3
	mov	QWORD PTR -216[rbp], 1048576
.L3:
	mov	rax, QWORD PTR dpy[rip]
	lea	rcx, -208[rbp]
	mov	rdx, QWORD PTR -216[rbp]
	mov	rsi, QWORD PTR -232[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 0
	mov	rdi, rax
	call	XSendEvent@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sendcmessage, .-sendcmessage
	.section	.rodata
.LC1:
	.string	""
.LC2:
	.string	"-display"
.LC3:
	.string	"exit"
.LC4:
	.string	"restart"
.LC5:
	.string	"message"
.LC6:
	.string	"XOpenDisplay"
.LC7:
	.string	"LARSWM_EXIT"
.LC8:
	.string	"LARSWM_RESTART"
.LC9:
	.string	"LARSWM_BARTEXT"
	.text
	.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -56[rbp], rax
	mov	DWORD PTR -68[rbp], 0
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	DWORD PTR -80[rbp], 1
	jmp	.L6
.L12:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -80[rbp]
	add	eax, 1
	cmp	DWORD PTR -84[rbp], eax
	jle	.L7
	add	DWORD PTR -80[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -56[rbp], rax
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	add	DWORD PTR -76[rbp], 1
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L10
	add	DWORD PTR -72[rbp], 1
	jmp	.L8
.L10:
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L11
	add	DWORD PTR -80[rbp], 1
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -96[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
	add	DWORD PTR -68[rbp], 1
	jmp	.L8
.L11:
	call	usage
.L8:
	add	DWORD PTR -80[rbp], 1
.L6:
	mov	eax, DWORD PTR -80[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jl	.L12
	mov	edx, DWORD PTR -76[rbp]
	mov	eax, DWORD PTR -72[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	add	eax, edx
	cmp	eax, 1
	je	.L13
	call	usage
.L13:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	XOpenDisplay@PLT
	mov	QWORD PTR dpy[rip], rax
	mov	rax, QWORD PTR dpy[rip]
	test	rax, rax
	jne	.L14
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR dpy[rip]
	mov	edx, 0
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR exit_larswm[rip], rax
	mov	rax, QWORD PTR dpy[rip]
	mov	edx, 0
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR restart_larswm[rip], rax
	mov	rax, QWORD PTR dpy[rip]
	mov	edx, 0
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR bartext_larswm[rip], rax
	cmp	DWORD PTR -76[rbp], 0
	je	.L15
	mov	rsi, QWORD PTR exit_larswm[rip]
	mov	rax, QWORD PTR dpy[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR dpy[rip]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 1
	mov	edx, 0
	mov	rdi, rax
	call	sendcmessage
	jmp	.L16
.L15:
	cmp	DWORD PTR -72[rbp], 0
	je	.L17
	mov	rsi, QWORD PTR restart_larswm[rip]
	mov	rax, QWORD PTR dpy[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR dpy[rip]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rax, QWORD PTR 16[rax]
	mov	ecx, 1
	mov	edx, 0
	mov	rdi, rax
	call	sendcmessage
	jmp	.L16
.L17:
	cmp	DWORD PTR -68[rbp], 0
	je	.L16
	lea	rdx, -48[rbp]
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	XStringListToTextProperty@PLT
	mov	rcx, QWORD PTR bartext_larswm[rip]
	mov	rax, QWORD PTR dpy[rip]
	mov	rdx, QWORD PTR 232[rax]
	mov	rax, QWORD PTR dpy[rip]
	mov	eax, DWORD PTR 224[rax]
	cdqe
	sal	rax, 7
	add	rax, rdx
	mov	rsi, QWORD PTR 16[rax]
	mov	rax, QWORD PTR dpy[rip]
	lea	rdx, -48[rbp]
	mov	rdi, rax
	call	XSetTextProperty@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	XFree@PLT
.L16:
	mov	rax, QWORD PTR dpy[rip]
	mov	esi, 0
	mov	rdi, rax
	call	XSync@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"102294.c"
	.text
	.comm	dpy,4,4
	.comm	exit_larswm,4,4
	.comm	restart_larswm,4,4
	.comm	bartext_larswm,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: larsremote [-display display] <message text "
	.ascii	"| exit | restart>\012\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r2, #69
	mov	r1, #1
	ldr	r0, .L2+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendcmessage
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendcmessage, %function
sendcmessage:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	str	r2, [fp, #-120]
	str	r3, [fp, #-124]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #104
	mov	r2, #96
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #33
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-112]
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-84]
	mov	r3, #32
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-76]
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	beq	.L5
	mov	r3, #1048576
	str	r3, [fp, #-108]
.L5:
	ldr	r3, .L7+4
	ldr	r0, [r3]
	sub	r3, fp, #104
	str	r3, [sp]
	ldr	r3, [fp, #-108]
	mov	r2, #0
	ldr	r1, [fp, #-112]
	bl	XSendEvent
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.word	dpy
	.size	sendcmessage, .-sendcmessage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\000"
	.align	2
.LC3:
	.ascii	"-display\000"
	.align	2
.LC4:
	.ascii	"exit\000"
	.align	2
.LC5:
	.ascii	"restart\000"
	.align	2
.LC6:
	.ascii	"message\000"
	.align	2
.LC7:
	.ascii	"XOpenDisplay\000"
	.align	2
.LC8:
	.ascii	"LARSWM_EXIT\000"
	.align	2
.LC9:
	.ascii	"LARSWM_RESTART\000"
	.align	2
.LC10:
	.ascii	"LARSWM_BARTEXT\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L23+4
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L10
.L16:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L23+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	ble	.L11
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	b	.L12
.L11:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L23+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	b	.L12
.L13:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L23+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
	b	.L12
.L14:
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L23+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-60]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	b	.L12
.L15:
	bl	usage
.L12:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L10:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	blt	.L16
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r2, r3
	cmp	r3, #1
	beq	.L17
	bl	usage
.L17:
	ldr	r0, [fp, #-28]
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L23+24
	str	r3, [r2]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L23+28
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L23+32
	mov	r0, r3
	bl	XInternAtom
	mov	r3, r0
	ldr	r2, .L23+36
	str	r3, [r2]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L23+40
	mov	r0, r3
	bl	XInternAtom
	mov	r3, r0
	ldr	r2, .L23+44
	str	r3, [r2]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L23+48
	mov	r0, r3
	bl	XInternAtom
	mov	r3, r0
	ldr	r2, .L23+52
	str	r3, [r2]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L23+24
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	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	r0, [r3, #8]
	ldr	r3, .L23+36
	ldr	r1, [r3]
	mov	r3, #1
	mov	r2, #0
	bl	sendcmessage
	b	.L20
.L19:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L23+24
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	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	r0, [r3, #8]
	ldr	r3, .L23+44
	ldr	r1, [r3]
	mov	r3, #1
	mov	r2, #0
	bl	sendcmessage
	b	.L20
.L21:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L20
	sub	r2, fp, #24
	sub	r3, fp, #48
	mov	r1, #1
	mov	r0, r3
	bl	XStringListToTextProperty
	ldr	r3, .L23+24
	ldr	r0, [r3]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L23+24
	ldr	r3, [r3]
	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]
	ldr	r3, .L23+52
	ldr	r3, [r3]
	sub	r2, fp, #24
	bl	XSetTextProperty
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	XFree
.L20:
	ldr	r3, .L23+24
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	XSync
	mov	r0, #0
	bl	exit
.L24:
	.align	2
.L23:
	.word	.LC11
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	dpy
	.word	.LC7
	.word	.LC8
	.word	exit_larswm
	.word	.LC9
	.word	restart_larswm
	.word	.LC10
	.word	bartext_larswm
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
