	.file	"914521.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"st"
	.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
	lea	rdi, .LC0[rip]
	call	findWindows
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	findWindows
	.type	findWindows, @function
findWindows:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XDefaultRootWindow@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	findWindowsSearch
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	findWindows, .-findWindows
	.globl	findWindowsSearch
	.type	findWindowsSearch, @function
findWindowsSearch:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	QWORD PTR -104[rbp], rdi
	mov	QWORD PTR -112[rbp], rsi
	mov	QWORD PTR -120[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	r8, -84[rbp]
	lea	rdi, -56[rbp]
	lea	rcx, -64[rbp]
	lea	rdx, -72[rbp]
	mov	rsi, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	XQueryTree@PLT
	test	eax, eax
	je	.L5
	lea	rdx, -48[rbp]
	mov	rcx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWMName@PLT
	test	eax, eax
	jle	.L6
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	jne	.L6
	mov	rdx, QWORD PTR -112[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sendEvent
.L6:
	mov	DWORD PTR -80[rbp], 0
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -80[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	findWindowsSearch
	add	DWORD PTR -80[rbp], 1
.L7:
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	cmp	edx, eax
	jb	.L8
.L5:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	XFree@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	findWindowsSearch, .-findWindowsSearch
	.section	.rodata
.LC1:
	.string	"_NEW_BG"
	.text
	.globl	sendEvent
	.type	sendEvent, @function
sendEvent:
.LFB9:
	.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	QWORD PTR -240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC1[rip]
	mov	QWORD PTR -216[rbp], rax
	mov	DWORD PTR -208[rbp], 33
	lea	rdx, -224[rbp]
	lea	rsi, -216[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 1
	mov	rdi, rax
	call	XInternAtoms@PLT
	cdqe
	mov	QWORD PTR -168[rbp], rax
	mov	DWORD PTR -160[rbp], 32
	lea	rdx, -208[rbp]
	mov	rsi, QWORD PTR -240[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rdi, rax
	call	XSendEvent@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	sendEvent, .-sendEvent
	.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	"914521.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"st\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L3
	bl	findWindows
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	main, .-main
	.align	2
	.global	findWindows
	.syntax unified
	.arm
	.fpu softvfp
	.type	findWindows, %function
findWindows:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #0
	bl	XOpenDisplay
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-12]
	bl	XDefaultRootWindow
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	findWindowsSearch
	ldr	r0, [fp, #-12]
	bl	XCloseDisplay
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	findWindows, .-findWindows
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	findWindowsSearch
	.syntax unified
	.arm
	.fpu softvfp
	.type	findWindowsSearch, %function
findWindowsSearch:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r1, fp, #44
	sub	r2, fp, #48
	sub	r3, fp, #36
	str	r3, [sp, #4]
	sub	r3, fp, #40
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	XQueryTree
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	XGetWMName
	mov	r3, r0
	cmp	r3, #0
	ble	.L8
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	strcmp
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L8
	ldr	r1, [fp, #-60]
	ldr	r0, [fp, #-56]
	bl	sendEvent
.L8:
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L9
.L10:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-64]
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	findWindowsSearch
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L9:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bcc	.L10
.L7:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	XFree
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.size	findWindowsSearch, .-findWindowsSearch
	.section	.rodata
	.align	2
.LC2:
	.ascii	"_NEW_BG\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sendEvent
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendEvent, %function
sendEvent:
	@ 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, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L16+4
	str	r3, [fp, #-108]
	mov	r3, #33
	str	r3, [fp, #-104]
	sub	r1, fp, #108
	sub	r3, fp, #112
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-120]
	bl	XInternAtoms
	mov	r3, r0
	str	r3, [fp, #-84]
	mov	r3, #32
	str	r3, [fp, #-80]
	sub	r3, fp, #104
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	XSendEvent
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC3
	.word	.LC2
	.size	sendEvent, .-sendEvent
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
