	.file	"extr_names.c_parse_window_name.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"exec "
	.text
	.p2align 4
	.globl	parse_window_name
	.type	parse_window_name, @function
parse_window_name:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	xstrdup@PLT
	mov	edx, 5
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	r12, rax
	call	strncmp@PLT
	lea	rbp, 5[r12]
	test	rax, rax
	cmovne	rbp, r12
	movzx	eax, BYTE PTR 0[rbp]
	cmp	al, 32
	jne	.L22
	.p2align 4,,10
	.p2align 3
.L18:
	movzx	eax, BYTE PTR 1[rbp]
	add	rbp, 1
	cmp	al, 32
	je	.L18
.L22:
	cmp	al, 45
	je	.L18
	mov	esi, 32
	mov	rdi, rbp
	call	strchr@PLT
	test	rax, rax
	je	.L6
	mov	BYTE PTR [rax], 0
.L6:
	cmp	BYTE PTR 0[rbp], 0
	jne	.L24
.L7:
	mov	rdi, rbp
	call	xstrdup@PLT
	mov	rdi, r12
	mov	r13, rax
	call	free@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	rdi, rbp
	call	strlen@PLT
	cdqe
	lea	rbx, -1[rbp+rax]
	cmp	rbx, rbp
	ja	.L8
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, r13d
	call	ispunct@PLT
	test	eax, eax
	jne	.L10
	sub	rbx, 1
	mov	BYTE PTR 1[rbx], 0
	cmp	rbx, rbp
	je	.L10
.L8:
	movsx	r13d, BYTE PTR [rbx]
	mov	edi, r13d
	call	isalnum@PLT
	test	eax, eax
	je	.L25
.L10:
	cmp	BYTE PTR 0[rbp], 47
	jne	.L7
	mov	rdi, rbp
	call	basename@PLT
	mov	rbp, rax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	parse_window_name, .-parse_window_name
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_names.c_parse_window_name.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"exec \000"
	.text
	.align	2
	.global	parse_window_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_window_name, %function
parse_window_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	xstrdup
	mov	r2, #5
	ldr	r1, .L28
	mov	r6, r0
	bl	strncmp
	cmp	r0, #0
	movne	r4, r6
	addeq	r4, r6, #5
	ldrb	r3, [r4]	@ zero_extendqisi2
	cmp	r3, #45
	cmpne	r3, #32
	bne	.L3
.L4:
	ldrb	r3, [r4, #1]!	@ zero_extendqisi2
	cmp	r3, #45
	cmpne	r3, #32
	beq	.L4
.L3:
	mov	r1, #32
	mov	r0, r4
	bl	strchr
	cmp	r0, #0
	movne	r3, #0
	strbne	r3, [r0]
	ldrb	r5, [r4]	@ zero_extendqisi2
	cmp	r5, #0
	beq	.L6
	mov	r0, r4
	bl	strlen
	sub	r3, r0, #1
	add	r3, r4, r3
	cmp	r4, r3
	addcc	r5, r4, r0
	addcc	r8, r4, #1
	bcc	.L9
	cmp	r5, #47
	beq	.L27
.L6:
	mov	r0, r4
	bl	xstrdup
	mov	r4, r0
	mov	r0, r6
	bl	free
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r7
	bl	ispunct
	cmp	r0, #0
	bne	.L25
	cmp	r8, r5
	strb	r0, [r5]
	beq	.L25
.L9:
	ldrb	r7, [r5, #-1]!	@ zero_extendqisi2
	mov	r0, r7
	bl	isalnum
	cmp	r0, #0
	beq	.L10
.L25:
	ldrb	r5, [r4]	@ zero_extendqisi2
	cmp	r5, #47
	bne	.L6
.L27:
	mov	r0, r4
	bl	basename
	mov	r4, r0
	b	.L6
.L29:
	.align	2
.L28:
	.word	.LC0
	.size	parse_window_name, .-parse_window_name
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
