	.file	"118538.c"
	.intel_syntax noprefix
	.text
	.local	netwmname
	.comm	netwmname,8,8
	.local	dpy
	.comm	dpy,8,8
	.section	.rodata
.LC0:
	.string	"%s: cannot open display\n"
.LC1:
	.string	"_NET_WM_NAME"
	.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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	edi, 0
	call	XOpenDisplay@PLT
	mov	QWORD PTR dpy[rip], rax
	mov	rax, QWORD PTR dpy[rip]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR dpy[rip]
	mov	edx, 0
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	XInternAtom@PLT
	mov	QWORD PTR netwmname[rip], rax
	cmp	DWORD PTR -20[rbp], 1
	jg	.L3
	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	rdi, rax
	call	lsw
	jmp	.L4
.L3:
	mov	DWORD PTR -4[rbp], 1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	rdi, rax
	call	lsw
	add	DWORD PTR -4[rbp], 1
.L5:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L6
.L4:
	mov	rax, QWORD PTR dpy[rip]
	mov	rdi, rax
	call	XCloseDisplay@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC2:
	.string	"0x%07lx %s\n"
	.text
	.type	lsw, @function
lsw:
.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, 192
	mov	QWORD PTR -184[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR dpy[rip]
	lea	r8, -172[rbp]
	lea	rdi, -168[rbp]
	lea	rcx, -160[rbp]
	lea	rdx, -160[rbp]
	mov	rsi, QWORD PTR -184[rbp]
	mov	r9, r8
	mov	r8, rdi
	mov	rdi, rax
	call	XQueryTree@PLT
	test	eax, eax
	je	.L15
	mov	rdx, QWORD PTR -168[rbp]
	mov	eax, DWORD PTR -172[rbp]
	sub	eax, 1
	mov	eax, eax
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR -152[rbp], rax
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -152[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR dpy[rip]
	lea	rdx, -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWindowAttributes@PLT
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 2
	jne	.L12
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	getname
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	sub	QWORD PTR -152[rbp], 8
.L11:
	mov	rax, QWORD PTR -168[rbp]
	cmp	QWORD PTR -152[rbp], rax
	jnb	.L13
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	XFree@PLT
	jmp	.L8
.L15:
	nop
.L8:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	lsw, .-lsw
	.section	.rodata
.LC3:
	.string	""
	.text
	.type	getname, @function
getname:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR netwmname[rip]
	mov	rax, QWORD PTR dpy[rip]
	lea	rdx, -48[rbp]
	mov	rsi, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	XGetTextProperty@PLT
	test	eax, eax
	je	.L17
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	jne	.L18
.L17:
	mov	rax, QWORD PTR dpy[rip]
	lea	rdx, -48[rbp]
	mov	rcx, QWORD PTR -72[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	XGetWMName@PLT
	test	eax, eax
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	test	rax, rax
	jne	.L18
.L19:
	lea	rax, .LC3[rip]
	jmp	.L23
.L18:
	mov	rax, QWORD PTR dpy[rip]
	lea	rcx, -60[rbp]
	lea	rdx, -56[rbp]
	lea	rsi, -48[rbp]
	mov	rdi, rax
	call	XmbTextPropertyToTextList@PLT
	test	eax, eax
	jne	.L21
	mov	eax, DWORD PTR -60[rbp]
	test	eax, eax
	jle	.L21
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, 8192
	mov	rsi, rax
	lea	rdi, buf.0[rip]
	call	strncpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	XFreeStringList@PLT
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 8192
	mov	rsi, rax
	lea	rdi, buf.0[rip]
	call	strncpy@PLT
.L22:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	XFree@PLT
	mov	BYTE PTR buf.0[rip+8191], 0
	lea	rax, buf.0[rip]
.L23:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getname, .-getname
	.local	buf.0
	.comm	buf.0,8192,32
	.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	"118538.c"
	.text
	.local	netwmname
	.comm	netwmname,4,4
	.local	dpy
	.comm	dpy,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: cannot open display\012\000"
	.align	2
.LC1:
	.ascii	"_NET_WM_NAME\000"
	.text
	.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, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r0, #0
	bl	XOpenDisplay
	mov	r3, r0
	ldr	r2, .L8
	str	r3, [r2]
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L8+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L8+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L8+12
	mov	r0, r3
	bl	XInternAtom
	mov	r3, r0
	ldr	r2, .L8+16
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	bgt	.L3
	ldr	r3, .L8
	ldr	r3, [r3]
	ldr	r2, [r3, #140]
	ldr	r3, .L8
	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	r3, [r3, #8]
	mov	r0, r3
	bl	lsw
	b	.L4
.L3:
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L5
.L6:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	mov	r0, r3
	bl	lsw
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L6
.L4:
	ldr	r3, .L8
	ldr	r3, [r3]
	mov	r0, r3
	bl	XCloseDisplay
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	dpy
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	netwmname
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"0x%07lx %s\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lsw, %function
lsw:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #132
	str	r0, [fp, #-128]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L18+4
	ldr	r0, [r3]
	sub	r1, fp, #116
	sub	r2, fp, #116
	sub	r3, fp, #124
	str	r3, [sp, #4]
	sub	r3, fp, #120
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, [fp, #-128]
	bl	XQueryTree
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-124]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-112]
	b	.L13
.L15:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	sub	r2, fp, #108
	mov	r1, r3
	bl	XGetWindowAttributes
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	bne	.L14
	ldr	r3, [fp, #-112]
	ldr	r4, [r3]
	ldr	r3, [fp, #-112]
	ldr	r3, [r3]
	mov	r0, r3
	bl	getname
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L18+8
	bl	printf
.L14:
	ldr	r3, [fp, #-112]
	sub	r3, r3, #4
	str	r3, [fp, #-112]
.L13:
	ldr	r3, [fp, #-120]
	ldr	r2, [fp, #-112]
	cmp	r2, r3
	bcs	.L15
	ldr	r3, [fp, #-120]
	mov	r0, r3
	bl	XFree
	b	.L10
.L17:
	nop
.L10:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	dpy
	.word	.LC2
	.size	lsw, .-lsw
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	getname, %function
getname:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L29+4
	ldr	r0, [r3]
	ldr	r3, .L29+8
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, [fp, #-40]
	bl	XGetTextProperty
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L22
.L21:
	ldr	r3, .L29+4
	ldr	r3, [r3]
	sub	r2, fp, #24
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	XGetWMName
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L22
.L23:
	ldr	r3, .L29+12
	b	.L27
.L22:
	ldr	r3, .L29+4
	ldr	r0, [r3]
	sub	r3, fp, #28
	sub	r2, fp, #32
	sub	r1, fp, #24
	bl	XmbTextPropertyToTextList
	mov	r3, r0
	cmp	r3, #0
	bne	.L25
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	ble	.L25
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, .L29+16
	bl	strncpy
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	XFreeStringList
	b	.L26
.L25:
	ldr	r3, [fp, #-24]
	mov	r2, #8192
	mov	r1, r3
	ldr	r0, .L29+16
	bl	strncpy
.L26:
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	XFree
	ldr	r3, .L29+16
	add	r3, r3, #4096
	mov	r2, #0
	strb	r2, [r3, #4095]
	ldr	r3, .L29+16
.L27:
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L28
	bl	__stack_chk_fail
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC5
	.word	dpy
	.word	netwmname
	.word	.LC4
	.word	buf.8520
	.size	getname, .-getname
	.local	buf.8520
	.comm	buf.8520,8192,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
