	.file	"extr_string.c_fz_cleanname.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	fz_cleanname
	.type	fz_cleanname, @function
fz_cleanname:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	movzx	r13d, BYTE PTR [rdi]
	cmp	r13b, 47
	sete	r14b
	add	r14, rdi
	movzx	eax, BYTE PTR [r14]
	test	al, al
	je	.L19
	mov	r12, r14
	mov	rbp, r14
	mov	rbx, r14
	.p2align 4,,10
	.p2align 3
.L14:
	cmp	al, 47
	je	.L47
	cmp	al, 46
	je	.L51
.L5:
	cmp	BYTE PTR [rbx], 46
	jne	.L6
	cmp	BYTE PTR 1[rbx], 46
	je	.L52
	cmp	r14, rbp
	je	.L53
.L17:
	mov	BYTE PTR 0[rbp], 47
	add	rbp, 1
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L54:
	cmp	al, 47
	je	.L4
.L12:
	add	rbx, 1
	add	rbp, 1
.L48:
	movzx	eax, BYTE PTR [rbx]
	mov	BYTE PTR 0[rbp], al
	test	al, al
	jne	.L54
.L4:
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L14
.L2:
	cmp	r15, rbp
	je	.L55
.L15:
	mov	BYTE PTR 0[rbp], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L51:
	.cfi_restore_state
	movsx	edi, BYTE PTR 1[rbx]
	call	SEP@PLT
	test	rax, rax
	je	.L5
	.p2align 4,,10
	.p2align 3
.L47:
	movzx	eax, BYTE PTR 1[rbx]
	add	rbx, 1
	test	al, al
	jne	.L14
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L6:
	cmp	r14, rbp
	jne	.L17
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L52:
	movsx	edi, BYTE PTR 2[rbx]
	call	SEP@PLT
	test	rax, rax
	je	.L6
	add	rbx, 2
	cmp	rbp, r12
	ja	.L9
	cmp	r13b, 47
	je	.L4
	mov	rax, r15
	cmp	r15, rbp
	je	.L10
	mov	BYTE PTR 0[rbp], 47
	lea	rax, 1[rbp]
.L10:
	mov	edx, 11822
	lea	rbp, 2[rax]
	mov	WORD PTR [rax], dx
	movzx	eax, BYTE PTR [rbx]
	mov	r12, rbp
	test	al, al
	jne	.L14
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L56:
	cmp	BYTE PTR 0[rbp], 47
	je	.L4
.L9:
	sub	rbp, 1
	cmp	rbp, r12
	jne	.L56
	movzx	eax, BYTE PTR [rbx]
	test	al, al
	jne	.L14
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L53:
	mov	BYTE PTR [r14], 46
	jmp	.L12
.L55:
	mov	BYTE PTR [r15], 46
	lea	rbp, 1[r15]
	jmp	.L15
.L19:
	mov	rbp, r14
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	fz_cleanname, .-fz_cleanname
	.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_string.c_fz_cleanname.c"
	.text
	.align	2
	.global	fz_cleanname
	.syntax unified
	.arm
	.fpu softvfp
	.type	fz_cleanname, %function
fz_cleanname:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldrb	r6, [r0]	@ zero_extendqisi2
	mov	r10, r0
	sub	r9, r6, #47
	clz	r9, r9
	lsr	r9, r9, #5
	ldrb	r3, [r0, r9]	@ zero_extendqisi2
	add	r9, r0, r9
	cmp	r3, #0
	beq	.L18
	mov	r4, r9
	mov	fp, r9
	mov	r8, r9
	mov	r5, #47
	mov	r7, #46
.L13:
	cmp	r3, #47
	beq	.L38
	cmp	r3, #46
	beq	.L41
.L5:
	ldrb	r3, [r8]	@ zero_extendqisi2
	cmp	r3, #46
	bne	.L6
	ldrb	r2, [r8, #1]	@ zero_extendqisi2
	cmp	r2, #46
	beq	.L42
	cmp	r9, fp
	beq	.L43
.L16:
	mov	r2, fp
	strb	r5, [r2], #1
.L11:
	ldrb	r3, [r8]	@ zero_extendqisi2
	cmp	r3, #0
	cmpne	r3, #47
	strb	r3, [r2]
	beq	.L21
.L15:
	add	r1, r8, #1
	add	r2, r2, #1
.L12:
	mov	r8, r1
	ldrb	r3, [r1], #1	@ zero_extendqisi2
	mov	fp, r2
	cmp	r3, #0
	cmpne	r3, #47
	strb	r3, [r2], #1
	bne	.L12
.L4:
	ldrb	r3, [r8]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
.L2:
	cmp	r10, fp
	beq	.L44
.L14:
	mov	r3, #0
	mov	r0, r10
	strb	r3, [fp]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L41:
	ldrb	r0, [r8, #1]	@ zero_extendqisi2
	bl	SEP
	cmp	r0, #0
	beq	.L5
.L38:
	ldrb	r3, [r8, #1]	@ zero_extendqisi2
	add	r8, r8, #1
	cmp	r3, #0
	bne	.L13
	b	.L2
.L6:
	cmp	r9, fp
	moveq	r2, r9
	bne	.L16
	b	.L11
.L42:
	ldrb	r0, [r8, #2]	@ zero_extendqisi2
	bl	SEP
	cmp	r0, #0
	beq	.L6
	cmp	fp, r4
	add	r8, r8, #2
	bhi	.L45
	cmp	r6, #47
	beq	.L4
	cmp	r10, fp
	movne	r3, fp
	moveq	r3, r10
	strbne	r5, [r3], #1
	mov	fp, r3
	strb	r7, [fp], #2
	strb	r7, [r3, #1]
	ldrb	r3, [r8]	@ zero_extendqisi2
	mov	r4, fp
	cmp	r3, #0
	bne	.L13
	b	.L2
.L43:
	mov	r2, r9
	strb	r3, [r9]
	b	.L15
.L21:
	ldrb	r3, [r8]	@ zero_extendqisi2
	mov	fp, r2
	cmp	r3, #0
	bne	.L13
	b	.L2
.L44:
	mov	r2, r10
	mov	r3, #46
	strb	r3, [r2], #1
	mov	fp, r2
	b	.L14
.L45:
	sub	r3, fp, #1
	b	.L9
.L46:
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r3, r3, #1
	cmp	r2, #47
	beq	.L4
.L9:
	cmp	r4, r3
	mov	fp, r3
	bne	.L46
	ldrb	r3, [r8]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L13
	b	.L2
.L18:
	mov	fp, r9
	b	.L2
	.size	fz_cleanname, .-fz_cleanname
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
